AceKitten Posted January 11, 2016 Share Posted January 11, 2016 I'm currently working on a playable cat, and I want to lower her sanity drain at night slightly, and make her lose sanity while wet. I'm not very skilled at Lua, but i did manage to make night vision for her. Link to comment Share on other sites More sharing options...
Mobbstar Posted January 11, 2016 Share Posted January 11, 2016 Wendy has something along the lines of that. Whandler regains sanity in rain, it should be easy to invert the effect. Link to comment Share on other sites More sharing options...
Developer ImDaMisterL Posted January 11, 2016 Developer Share Posted January 11, 2016 First of all, welcome to the forums! 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_MULTIf 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 = 4This 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! 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 More sharing options...
AceKitten Posted January 11, 2016 Author Share Posted January 11, 2016 Thanks for the sanity drain help, currently trying to fiddle with losing sanity in rain. Link to comment Share on other sites More sharing options...
Recommended Posts
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.