barbilou Posted June 23, 2020 Share Posted June 23, 2020 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. Link to comment https://forums.kleientertainment.com/forums/topic/119434-how-to-modify-sanity-loss-rate/ Share on other sites More sharing options...
-LukaS- Posted June 23, 2020 Share Posted June 23, 2020 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. 1 Link to comment https://forums.kleientertainment.com/forums/topic/119434-how-to-modify-sanity-loss-rate/#findComment-1347010 Share on other sites More sharing options...
barbilou Posted June 23, 2020 Author Share Posted June 23, 2020 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! 1 Link to comment https://forums.kleientertainment.com/forums/topic/119434-how-to-modify-sanity-loss-rate/#findComment-1347043 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