change the inventory icon of a torch(problem)
Posted: Fri Nov 06, 2015 3:37 am
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
if I change it to equipmentItem then it won't act like a torch anymore?
Am I missing something here?
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
Code: Select all
{
class = "TorchItem",
fuel = math.huge,
},
Am I missing something here?