Jump to content

Item Error


yildirim

Recommended Posts

Hi,

 

Could you please take a look at the codes that I used and tell me what is wrong with them? The item that I want to add is similar to Willow's lighter.

 

-- snip --

 

Is it possible to use something like "inst.components.equippable.equipslot = EQUIPSLOTS.HAND" by the way?

Link to comment
Share on other sites

Hi,

 

I've just tried to add a item to my character and apparently I need some help. There is always a forest fire and whenever I equip my item, the game gives an in-game error which forces me to exit the game or disable the mod.

 

The item that I want to add is similar to Willow's lighter. Here is the codes that I used, could you please take a look at them and tell me what is wrong?

 

 

 

Is "inst.components.equippable.equipslot = EQUIPSLOTS.HAND" correct by the way?

 

I'm not god at coding but I see something, maybe this is a problem

 

I think you need this too

 

    Asset("ATLAS", "images/inventoryimages/cutehat.xml"),

    Asset("IMAGE", "images/inventoryimages/cutehat.tex"),

}

 

 

 

 

 

local function onequip(inst, owner) 
        owner.AnimState:OverrideSymbol("swap_object", "swap_cutehat", "swap_object")
 
 
Local function fn  (sim) looks not correct for me.. but I don't know :/
In my Tardis key I havent this:
"inst.components.equippable.equipslot = EQUIPSLOTS.HAND"
 
 
 
Did you look in the willow mod for dst?

lighter.lua

lighterfire.lua

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...