DevilsRoost Posted February 20, 2021 Share Posted February 20, 2021 (edited) Hey all, thanks for helping out so I'm not floundering around out here! Sanity I'm sure this is easy but I'm not making it happen for me: how do I add it so my character has sanity drain swapped, so it gains in the dark and drains in the day. I tried this code but it always makes it crash <https://forums.kleientertainment.com/forums/topic/93230-tutorial-making-basic-character-perks-ds-rog-sw/?tab=comments#comment-1060637> just can't get it to work! Custom Crafting Tab Also, I want only my character to be able to craft my custom items, like Wigfrid can for example. What code do I need to make it so that only my character can make my custom items from their own tab? Sanity drain for others- Is it possible for a sanity drain to occur for other characters holding my custom item, but not for me? Any help and nudge in the right direction is really appreciated, thanks! King Bacchus.rar Edited February 22, 2021 by DevilsRoost Link to comment https://forums.kleientertainment.com/forums/topic/127267-help-sanity-question-and-custom-crafting-item-tab/ Share on other sites More sharing options...
DevilsRoost Posted February 22, 2021 Author Share Posted February 22, 2021 bump Link to comment https://forums.kleientertainment.com/forums/topic/127267-help-sanity-question-and-custom-crafting-item-tab/#findComment-1431567 Share on other sites More sharing options...
Bigfootmech Posted February 23, 2021 Share Posted February 23, 2021 For reversed sanity: Wolfgang, and Wendy both have night sanity multipliers (check <DST INSTALL LOCATION>/data/scripts/prefabs/wolfgang.lua near the bottom) inst.components.sanity.night_drain_mult = 1.1 Try setting that to -1.0 instead I don't see anything to stop that from working. For the item, I'm assuming look at how Bee Queen crown is coded, but instead of the aura multiplier, make it the night drain multiplier Link to comment https://forums.kleientertainment.com/forums/topic/127267-help-sanity-question-and-custom-crafting-item-tab/#findComment-1432110 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