- Joined
- Jun 25, 2013
- Messages
- 94
- Reaction score
- 16
- First Language
- English
Does anyone know why when I set up a loop that works like:
loop
wait 60
set variable second -1
if second =or< 0
set second = 60
set minute -1
if minute =or< 0
run common event clock out
end loop
And in my common event I have set up a screen fade out, I change the clock back to 10 minutes and enter a text message about the timer had run out, then I use a script command to switch parties in tsukihime's party manager, and then fade back in the screen.
However when I test, the time reaches 0 and the screen fades out, the text message runs but none of the variable changes are made and the screen stays black and the party switch doesn't happen.
When I call the same common event using a button event I set up it works fine, when I use a menu option to call the common event I set up in yanfly's menu manager it also works fine.
I think it has something to do with the fact it is in a loop, but I have tried break loop commands and it doesn't change anything.
Any ideas? If you need more info, Screenshots are below.
Thanks for any advice or help!
loop
wait 60
set variable second -1
if second =or< 0
set second = 60
set minute -1
if minute =or< 0
run common event clock out
end loop
And in my common event I have set up a screen fade out, I change the clock back to 10 minutes and enter a text message about the timer had run out, then I use a script command to switch parties in tsukihime's party manager, and then fade back in the screen.
However when I test, the time reaches 0 and the screen fades out, the text message runs but none of the variable changes are made and the screen stays black and the party switch doesn't happen.
When I call the same common event using a button event I set up it works fine, when I use a menu option to call the common event I set up in yanfly's menu manager it also works fine.
I think it has something to do with the fact it is in a loop, but I have tried break loop commands and it doesn't change anything.
Any ideas? If you need more info, Screenshots are below.
Thanks for any advice or help!
Last edited by a moderator:






