AzurasLight Posted August 19, 2016 Share Posted August 19, 2016 Hi, I'm pretty new at making mods, and I might need your help. I'd like to make my character gain sanity when he is near a campire during the night (because the character will find it reassuring). Is there a way to do it ? Thanks a lot ! Link to comment https://forums.kleientertainment.com/forums/topic/69659-sanity-aura-near-fire/ Share on other sites More sharing options...
Joachim Posted August 19, 2016 Share Posted August 19, 2016 Yeah, copy Willow's code. Link to comment https://forums.kleientertainment.com/forums/topic/69659-sanity-aura-near-fire/#findComment-804959 Share on other sites More sharing options...
AzurasLight Posted August 19, 2016 Author Share Posted August 19, 2016 Okay, thanks, does it only work during night ? Link to comment https://forums.kleientertainment.com/forums/topic/69659-sanity-aura-near-fire/#findComment-804960 Share on other sites More sharing options...
glitterfr33ze Posted August 19, 2016 Share Posted August 19, 2016 33 minutes ago, AzurasLight said: Okay, thanks, does it only work during night ? No, Willow's sanity gain from the campfire isn't dependant on the time of day Link to comment https://forums.kleientertainment.com/forums/topic/69659-sanity-aura-near-fire/#findComment-804968 Share on other sites More sharing options...
Joachim Posted August 19, 2016 Share Posted August 19, 2016 If you want your character to gain sanity during dusk and night only, then you can simply do this: if not TheWorld.state.iscaveday then -- Sanity gain code end Link to comment https://forums.kleientertainment.com/forums/topic/69659-sanity-aura-near-fire/#findComment-804998 Share on other sites More sharing options...
AzurasLight Posted August 19, 2016 Author Share Posted August 19, 2016 I see, thank you ! Link to comment https://forums.kleientertainment.com/forums/topic/69659-sanity-aura-near-fire/#findComment-805009 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