how to make this 6pm animation and stop the running (autorun) event ?

how to make the 6pm animation and stop the running (autorun) event ?

i don't know how to make it.

I used .rar because .mp4 is not allowed to upload. idk why but still
if you use an autorun event, do you have a selfswitch at the end
of the event?

because that seems to be the best logic if you didn't add that.
if you use an autorun event, do you have a selfswitch at the end
of the event?

because that seems to be the best logic if you didn't add that.
there is no "end" of the event. it's like an infite text loop that needs to end when the clock variable reaches value 22 (it's 6pm then)
than make a conditional branch. (2 methodes)

wait 60 frames (1 second)
if: variableX = 22
selfswitch A = ON
else
sound
variableX +1
end


OR

wait 60 Frames
variableX += 1
if: variableX = 22
selfswitch A = ON
end

both methodes works and this is the very basics of autorun or parallel event.
if you didn't have this kind, it keeps looping. specially in autorun event.
ok so if i have the animation for 6pm as a common event, and timeforward also as common event, do i need to just put common events into the code ? so it would check for variableX=22 after every time forward ?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-this-6pm-animation-and-stop-the-running-autorun-event.144516/