Change the inventory icon of a torch(problem)

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
thangtamfive
Posts: 1
Joined: Thu Jul 27, 2017 4:45 pm

Change the inventory icon of a torch(problem)

Post by thangtamfive » Thu Jul 27, 2017 6:11 pm

I dunno. I am trying to make a custom item. I took the everburning torch and changed it's model to look like the orb of radiance. to create an "orb" that burns forever like a torch.

now, I know the graphic has 2 components, the 3d model you see when it's on the ground, and then the 2d icon when you pick it up.

the 3d model on the ground looks right, but when I pick it up, it changes to look like a torch again.

in the past, I just changed the GfxIndex to match the item in the grimrock assets.

but this torch, no matter what I change the GfxIndex to, it still looks like a torch.
is the 2d image hardcoded in, because it's class = TorchItem?

is it because I'm trying to give it a GFXIndex for a class = EquipmentItem?

but I am assuming that to get it to act as an everburning torch, I need this

User avatar
zimberzimber
Posts: 432
Joined: Fri Feb 08, 2013 8:06 pm

Re: Change the inventory icon of a torch(problem)

Post by zimberzimber » Sat Jul 29, 2017 9:42 am

As far as I can tell, its hardcoded to the TorchItemComponent.
My asset pack [v1.10]
Features a bit of everything! :D

Post Reply