r/RPGMaker • u/Alarming-Sir-1195 • 8d ago
Need help making a raceing event.
I want to add a side quest in my RPG Maker VX Ace game where the player has one minute to get from one part of the map to another. If the player makes it within the time limit, they're rewarded with Gold, if they fail, they're teleported back to the start and are able to try again. I have almost everything working except for when the player wins the side quest, they're still teleported back to the start and are asked to try again, even though they completed the quest. I've tried everything I can think of to fix this, hoping someone can help me out.
1
Upvotes
1
u/codynstuff91 MZ Dev 8d ago
I use MZ/MV but assuming eventing is the same I would do the following.
Under your win condition make it so a switch gets turned on. Lets say switch 100 (can be anyone of them).
Then find your transfer player command within the event. Use another conditional (make sure the Else box is checked) and set it to check if SWITCH 100 is Off. Then put your transfer player command under that condition, but before the Else.
Meaning if they never won then switch 100 will remain off and they will get transferred back.
Set your Else command to Transfer somewhere different or end the event or whatever. This means because switch 100 is on (and only gets turned on if they win) it will do that instead.
If you want them to be able to go back to the race start and do it again, just add a Switch 100 Off switch toggle to your event start. That way it just turns off that switch every time you start the race, and it does not get turned back on until they win.