Events providing immunity?

To make this simpler I'll just explain what the exact interaction I'm having trouble with is.

I have a boulder room in which the player has to quickly run down hallways followed by boulders that are set to EVENT TOUCH

then auto kill the player, a secondary event tells the boulder how to move, makes it invisible to reset it self and sends it out again.

This part works perfectly fine and is not the problem. It does NOT need to be changed.

The problem is there is an item that trigger a secret boulder set up the same as the others.

The issue is the boulder triggers and begins to roll toward the player. If they are still in the

dialogue box for choosing to take the item or not the boulder will STOP right before the player

and politely wait until they finish making their choice to kill them.

This looks awkward and ruins the point of the boulder completely.

Is there a way to fix this?
yes and no - it depends on what you want to do.

One option would be to wait the boulder until the messagebox is finished before starting - if you want to give the player time to read.

If you want to force them to go on and close the message box before the boulder hits, that is a bit more complex.

There is a text code to close the message box, but to use that you have to pre-calculate the time and close it independent of player wishes - and depending on how you do it the player won't be able to close before that.

For really complex timing, you'll probably have to use a plugin for event timers

Original thread: https://forums.rpgmakerweb.com/threads/events-providing-immunity.54167/