Jump to content

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?

Edited by yildirim
Link to comment
https://forums.kleientertainment.com/forums/topic/57833-item-error/
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

Edited by EulenMarie

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...