Jump to content

Recommended Posts

I am having troubles finding a way to code a mod for Wolfgang. You see, I want to mod Wolfgang to that his health is consistently 150 at wimpy form, 200 at normal form, and 300 at mighty form. It also want his consistently 75% speed at wimpy, 100% at normal, and 125% at mighty. His hunger will stay. I would also like him to lose sanity at 1.5 rate when near monsters and the night. I know it's a lot to ask for, but I am bad at coding and don't really know what I'm doing when it comes to Wolfgang. If you are going to help me, please leave the whole thread of code for Notepad++ for the modmain.lua, thanks to all.

Link to comment
https://forums.kleientertainment.com/forums/topic/116824-help-with-wolfgang-mod/
Share on other sites

Would I have to put in the modmain.lua folder for the consistent health for Wolfgang depending on his forms...

health= TUNING.WOLFGANG_HEALTH_MULT_NORMAL = 200
health= TUNING.WOLFGANG_HEALTH_MULT_MIGHTY = 300
health= TUNING.WOLFGANG_HEALTH_MULT_WIMPY = 150
 
or
 
if inst.components.hunger.current > 220 then inst.components.health:DoDelta(100, false)

would this cancel out his default health situations, and how would I bring it down to 200 once again?

 

if inst.components.hunger.current > 220 then SetExternalSpeedMultiplier(inst, "???", 1.25)

that is for the speed boosts, don't really now what to put in the one spot, please help.

 
or would there be more, and what would I have to do for consistent speed at wimpy?
 
(I used the hunger files, so it probably doesn't look right.)
Edited by thegreatJash

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