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 https://forums.kleientertainment.com/forums/topic/62297-help-sanity-drain-on-character/ 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 https://forums.kleientertainment.com/forums/topic/62297-help-sanity-drain-on-character/#findComment-707945 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 https://forums.kleientertainment.com/forums/topic/62297-help-sanity-drain-on-character/#findComment-707959 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 https://forums.kleientertainment.com/forums/topic/62297-help-sanity-drain-on-character/#findComment-707965 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