MakeshiftDemon Posted May 24, 2015 Share Posted May 24, 2015 (edited) 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! Edited May 24, 2015 by MakeshiftDemon Link to comment https://forums.kleientertainment.com/forums/topic/54325-adding-wigfrids-ability-to-characters/ Share on other sites More sharing options...
Blueberrys Posted May 24, 2015 Share Posted May 24, 2015 (edited) @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) Edited May 24, 2015 by Blueberrys Link to comment https://forums.kleientertainment.com/forums/topic/54325-adding-wigfrids-ability-to-characters/#findComment-640081 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 https://forums.kleientertainment.com/forums/topic/54325-adding-wigfrids-ability-to-characters/#findComment-640089 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 https://forums.kleientertainment.com/forums/topic/54325-adding-wigfrids-ability-to-characters/#findComment-640220 Share on other sites More sharing options...
HornetCorset Posted May 24, 2015 Share Posted May 24, 2015 It's wathgrithr.lua. Link to comment https://forums.kleientertainment.com/forums/topic/54325-adding-wigfrids-ability-to-characters/#findComment-640255 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now