#Day/Night Script (pauses at 12 & 24)

1 messages · Page 1 of 1 (latest)

polar fog
#

Hey yall, just wanted to see what im doing wrong. I want a day/night cycle that is paused at noon, waits, then goes to 12am and waits, I thought it would be pretty simple but every script I touch breaks it lol. Any advice?

crude topaz
#

youre using = instead of ==

#

youre also missing an end

polar fog
#

ah, so instead of ClockTime = 12 I should use ClockTime == 12?

crude topaz
#

yes

polar fog
#

Thank you, also just saw your thread on the pathfinding npc, I dont know too much but Im trying to get the exact same thing done

polar fog
crude topaz
#

show your updated script

polar fog
crude topaz
#

looks fine

#

might be skipping over 12 or 24

polar fog
#

weird, thats what im thinking too. Also I think I needed to set 24 to 0 because there is no 24

crude topaz
#

yes

polar fog
#

Ill try and figure it out, thank you for the pointers

fast quarry
#

those who know relational operators

polar fog
steel shore
#

there is still a error

#

you missing another "end" i assume.

while true do...