Jump to content

Recommended Posts

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 by DevilsRoost

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

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