The event will stop after it has finished it's list, in most cases. If you perform an action that requests the map refresh (By default, this is adding/removing actors, changing switches/self-switches/variables, or changing the party's items), and then have the common event go into a waiting period (i.e. using the Wait command or displaying a message or something), then it would stop executing. This is because when the map is requested to refresh, the scene will go through all parallel common events and determine if they still need to be run, and if you disabled their switch and then set the common event to wait, it will be determined to not need to be run.
But why does the event have to wait for it to stop executing?
Events and common events have their lists completed before anything else runs in the game. Nothing else happens while they're running. In order for the map scene to go through the list of common events to determine if they need to be run, no event can be running because otherwise that event would be updated instead of the scene. Having the common event wait will allow the scene to check and see that that event should no longer be running, and it will disable it.
How long a wait would be needed to disable the event?
Waiting any amount is enough to stop the event if its switch is off. Waiting 1 frame will be enough to stop the event.
But what about showing messages, choices, etc?
If you show a message, choices, or any other command that would cause an event to wait for its completion, that command will be the last thing executed before the event stops running. For example,
The above screenshot will result in the text "Hello" appearing in a text box. When the text box is dismissed through user input, the event has already stopped executing. "This shouldn't appear." will not be displayed to the user.
What actions refresh the map scene?
By default, the only actions that will refresh the map, and thus determine if common events should still run, are:
- Adding actors to the party.
- Removing actors from the party.
- Adding or removing items from the party, including equipment.
- Changing any switch's value.
- Changing any variable's value.
- Changing any self-switch's value, on any event.
What are actions that will make the event wait?
By default, the list of actions that cause an event to wait are:
- The wait command.
- Showing a message.
Inputting a number.
- Selecting a choice.
- Selecting an item.
[*]Transferring maps.
[*]Scrolling the map.
[*]Forcing a move route, if "wait for completion" is selected.
[*]Showing an animation, if "wait for completion" is selected.
[*]showing a balloon icon, if "wait for completion" is selected.
[*]Having all the party's followers gather on top of the player character.
[*]A battle action is forced, in a battle event.
[*]Playing a video.
[*]Displaying an image that is not already loaded into the game.
There may be others as well, as I did not inspect every line of the code, just took a glance at part of it.
What do you mean an image not already loaded into the game?
If you haven't displayed a picture before, it isn't loaded into the game. Once a picture is loaded once, it's cached in memory for future uses. If the event's switch is off and you load a new, uncached picture into the game, the event will go into a waiting state, and since it's switch was disabled, it will stop.
Ending Notes
Please keep in mind that this post can only discuss the default engine. If you have a plugin that requests that maps refresh under different conditions, or if any plugin makes events go into a waiting period at any other time, then the results will be different.