//============================================================================= // WaitForVideoEndFix.js //============================================================================= /*: * @plugindesc Fixes the bug where the event doens't wait for the video to end to continue its instructions * @author Orcomarcio */ Game_Interpreter.prototype._isVideoStarted = false; 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': if (this._isVideoStarted && !Graphics.isVideoPlaying()) { waiting = false; this._isVideoStarted = false; } else { waiting = true; if (Graphics.isVideoPlaying()) this._isVideoStarted = true; } break; case 'image': waiting = !ImageManager.isReady(); break; } if (!waiting) { this._waitMode = ''; } return waiting; };