In RPG Maker, you can present players with a set of choices to select. However, by default, they can wait as long as they want to make a selection.
Using this plugin, you can automatically force a selection, to create a mechanic where the player has a limited amount of time to make a decision.
Once the allotted time has expired, the game will automatically make a selection for the player, and the event will continue as you have designed it.
Plugin: download here (right-click, save-as)
Download ths plugin and place it in the “plugins” folder in your project’s “js” folder. Then open your Plugin Manager (F10), double-click an empty row, and select the HIME_TimedChoiceSelection plugin.
Once it is in your list of plugins, turn the plugin on.
To set a timer for the choice selection, use the script call
HMS.setChoiceTimer( DURATION )
Where the DURATION is the number of frames that the game should wait before it automatically selects a choice.
For example, assuming 60 frames per second, and you wanted to give the player 5 seconds to make a decision, you would make the script call
HMS.setChoiceTimer( 300 )
The “Cancel” choice will be automatically selected when the time runs out. Note that this script call does not automatically display a timer.
Manual Force Cancel
Perhaps the choice timer I provided is not enough for your needs. Instead of using the simple script call, you could instead build your own parallel process event that will act as the choice timer.
So for example, you could have your event start a timer, and then turn on a switch
The switch would enable a parallel process event, say a common event, whose job is to check if the time has run out, and to cancel the choice using the following script call:
Once this script call is made, the game will select the “cancel” choice (assuming it is possible).