So for my game, I wanted to add a random event that will happen once. I also wanted it only to trigger if some specific characters were already in the party. I think I should mention that the characters live in a different world, that you use a item to visit them.
random events
RPG Maker MZ Supportthat is pure eventing - every condition you mentioned can be created and checked with event command, including a random chance (it's in control variable)
If you have no idea how to start, I suggest you go to the build-in tutorials and search this forum for some of the event tutorial games.
if you are familiar with event commands and need specific help, then pleas ask specific questions.
If you have no idea how to start, I suggest you go to the build-in tutorials and search this forum for some of the event tutorial games.
if you are familiar with event commands and need specific help, then pleas ask specific questions.
You need to also set it up so that after the event plays it erases itself.
For example, make it so when the event plays a switch is activated and
so that when that switch is on after the event finishes the event erases itself
so that whenever people go to that map it doesn't repeatedly keep playing.
If you're confused by that I know the feeling; it took me a while to understand
how switches worked in RPG Maker too.
For example, make it so when the event plays a switch is activated and
so that when that switch is on after the event finishes the event erases itself
so that whenever people go to that map it doesn't repeatedly keep playing.
If you're confused by that I know the feeling; it took me a while to understand
how switches worked in RPG Maker too.
Be careful when saying "Erase" because Erase event is a Very different, and temporary, command compared to toggling a (self) switch to ensure the event doesn't play again.
Well you can make it so as long as the switch is activated, it erases the event every time it generates again so it doesn't happen twice. That's what I meant. You CAN also do it with a self-switch too, though.
Even if you're using a global switch, rather than a self switch, the best way to do this is still not via Erase Event.
If it's a map event, you would have the highest-numbered page with a condition of that switch and leave the rest of it blank.
If it's a common event, you'd turn off the associated switch so it doesn't run anymore.
Erase Event is only the correct thing to use when you do want that event to happen again when the map is reloaded.
is there a specific command to check if the play left the map
Just make your events that transfer the player off the map also turn a switch on.
Or off. I don't know what you're trying to do.
Or off. I don't know what you're trying to do.
no need, because only the events on the current map events and common events exist.
events from previous maps are deleted the moment you leave that map.
Original thread: https://forums.rpgmakerweb.com/threads/random-events.160208/