There is a function in rpg_objects inside MV's Game_Interpreter object. However, its implementation is only possible for small amount of cases, because this time we have Game_Interpreter, but we don't have any $gameInterpreter
😀
Anyway, event commands are called via Game_Interpreter prototype. So since this object also has a method called setWaitMode
Code:
Game_Interpreter.prototype.setWaitMode = function(waitMode) {
this._waitMode = waitMode;
};
you can call this in a script field:
Code:
this.setWaitMode(waitMode);
The list of wait modes is hidden inside updateWaitMode.
Code:
Game_Interpreter.prototype.updateWaitMode = function() {
var waiting = false;
switch (this._waitMode) {
case 'message':
waiting = $gameMessage.isBusy();
break;
case 'transfer':
waiting = $gamePlayer.isTransferring();
break;
case 'scroll':
waiting = $gameMap.isScrolling();
break;
case 'route':
waiting = this._character.isMoveRouteForcing();
break;
case 'animation':
waiting = this._character.isAnimationPlaying();
break;
case 'balloon':
waiting = this._character.isBalloonPlaying();
break;
case 'gather':
waiting = $gamePlayer.areFollowersGathering();
break;
case 'action':
waiting = BattleManager.isActionForced();
break;
case 'video':
waiting = Graphics.isVideoPlaying();
break;
case 'image':
waiting = !ImageManager.isReady();
break;
}
if (!waiting) {
this._waitMode = '';
}
return waiting;
};
For messages therefore the script command will be
this.setWaitMode('message');
I'm not sure if one of them is for image scrolling, since I don't use image scrolling at all. But if there is, you should be able to find it.