Jump to content

[HELP] Sanity drain on character.


AceKitten

Recommended Posts

  • Developer

First of all, welcome to the forums! :D

 

Second of all,

I want to lower her sanity drain at night slightly

Mobbstar is right, Wendy has this line in her code:

inst.components.sanity.night_drain_mult = TUNING.WENDY_SANITY_MULT

If you just want to set it the same as Wendy's, you just input that line in your character's prefab.

 

If you want to modify Wendy's falue, you could do this:

inst.components.sanity.night_drain_mult = (TUNING.WENDY_SANITY_MULT * 2)

This basically tells the game to take Wendy's sanity drain and multiply it by 2, making it even worse.

 

Or you could also just give it a set value, like this:

inst.components.sanity.night_drain_mult = 4

This multiply the damage drain itself, instead of multiplying Wendy's sanity drain.

 

Play around with these settings a bit and see which one you like for your character! :D

I hope I helped!

 

Shamelessly ripped TheDanaAddam's tutorial and modified it to help you, all credit goes to her.

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