tayla Posted April 23, 2019 Share Posted April 23, 2019 I'm making a custom character mod and was wondering if there was a way i could make the character's stats (hunger/health/sanity) lower at night. Eg if the base health is 150, make it 100 at night. thanks. Link to comment https://forums.kleientertainment.com/forums/topic/105269-change-health-hunger-and-sanity-at-night/ Share on other sites More sharing options...
Ultroman Posted April 24, 2019 Share Posted April 24, 2019 (edited) In DS yuo can listen for the events pushed when the phase changes. local myDayFunction = function() -- Do something when it becomes day end local myDuskFunction = function() -- Do something when it becomes dusk end local myNightFunction = function() -- Do something when it becomes night end inst:ListenForEvent( "daytime", myDayFunction, GetWorld()) inst:ListenForEvent( "dusktime", myDuskFunction, GetWorld()) inst:ListenForEvent( "nighttime", myNightFunction, GetWorld()) Edited May 5, 2019 by Ultroman Link to comment https://forums.kleientertainment.com/forums/topic/105269-change-health-hunger-and-sanity-at-night/#findComment-1183581 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