MakeshiftDemon Posted May 24, 2015 Share Posted May 24, 2015 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 More sharing options...
Blueberrys Posted May 24, 2015 Share Posted May 24, 2015 @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) Link to comment Share on other sites More sharing options...
MakeshiftDemon Posted May 24, 2015 Author Share Posted May 24, 2015 Worked perfectly! Thank you! Link to comment Share on other sites More sharing options...
Emregca Posted May 24, 2015 Share Posted May 24, 2015 @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 More sharing options...
HornetCorset Posted May 24, 2015 Share Posted May 24, 2015 It's wathgrithr.lua. Link to comment Share on other sites More sharing options...
Recommended Posts
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.