Jump to content

Adding Wigfrid's Ability to characters.


Recommended Posts

Hi! I've been trying for a while but seem to be having no luck with adding Wigfrid's ability to regenerate health and sanity after fighting monsters to my character. 

 

Is it possible to have both leveling up capabilities and wigfrid's regeneration ability?

 

If anyone can help me with this it'd be greatly appreciated. Sorry if a topic like this has been made before, I looked and wasn't able to find one.

 

Edit: Alternativly, something similar to the Bat bat's effect, only less health and regains sanity instead?

 

Edit 2: Solved!

Link to comment
Share on other sites

 

@MakeshiftDemon You want to regen something (health/sanity) when killing something?

-- where inst is the player instanceinst:ListenForEvent("killed", function(inst, data)	inst.components.health:DoDelta(10)	inst.components.sanity:DoDelta(10)	-- inst.components.hunger:DoDelta(10)end)

 

Wil this make it exactly like wigfrid? I cannot find the wigfrid.lua.

 

Also, is this the only thing that's different about wigfrid?

 

Thank you

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...