i want to pass time at a stage in my game (The player gets to pick between 1-24 hours), is it possible to make it so that when gTimeHours hits 24, it will add on the remainder of the time instead of going to 0 like i've set it to? I'm just not really sure how to do it.
(method (changeTimeHours addTimeHours)
= gTimeHours + gTimeHours addTimeHours
(if(> addTimeHours 0)
)
(if(>= gTimeHours 24)
= gTimeHours 0
++ gTimeDays
)
)
*edit*
I just decided to make my own script to deal with all this. Only thing is, i've never made my own before. When i call it i have a box appear and you type in how long you want to rest... " (= lTimeHours(GetNumber("How Long?"))"
I just have a problem where every time i enter a number i get the little box popping back up, how do i leave a script once you've called it and finished using it?