Jump to content

Recommended Posts

Hello! I'm quite new to modding but I'm so glad there's these forums---I have been able to complete my first chara well so far, though I'm stuck on one detail, as I have no idea how it should be coded :')

Since the character I'm modding is very easy to frighten, I had the idea to make him lose sanity much faster when near monsters.

I've been checking if there wasn't already a thread with this problem so I hope to not have made a repeated post. Though in case I missed it please let me know and I'll delete this and go there instead ;v;

Thanks in advance.

 

If Wolfgangs prefab file you can find this piece of code:

inst.components.sanity:SetMax(TUNING.WOLFGANG_SANITY)
inst.components.sanity.night_drain_mult = 1.1 -- This one is a night sanity drain multiplier
inst.components.sanity.neg_aura_mult = 1.1 -- This one is a regular sanity drain multiplier (from any source)

Just keep in mind that these are multipliers and will boost losing sanity quite a bit.

  • Like 1
19 minutes ago, IThatGuyI said:

If Wolfgangs prefab file you can find this piece of code:


inst.components.sanity:SetMax(TUNING.WOLFGANG_SANITY)
inst.components.sanity.night_drain_mult = 1.1 -- This one is a night sanity drain multiplier
inst.components.sanity.neg_aura_mult = 1.1 -- This one is a regular sanity drain multiplier (from any source)

Just keep in mind that these are multipliers and will boost losing sanity quite a bit.

Ooo I see, thank you so much!

  • Like 1

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