Jump to content

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!

Edited by MakeshiftDemon

@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 by Blueberrys

 

@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

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