The Preemptive/Surprise mechanic just does not vibe with my projects. How do I remove it? Can I just go somewhere directly into the core javascript files and replace it with ye ol' reliable "return 1.0" like in VX Ace, or am I gonna need a plugin for this?
How to Remove Preemptive/Surprise from an MV Project
RPG Maker MV SupportIn rpg_managers there is this code
You can probably remove everything but first line and last line };
If not change rate somehow to never appear.
Code:
BattleManager.onEncounter = function() {
this._preemptive = (Math.random() < this.ratePreemptive());
this._surprise = (Math.random() < this.rateSurprise() && !this._preemptive);
};
If not change rate somehow to never appear.
Instead of removing code I would set them to zero:
Code:
BattleManager.onEncounter = function() {
this._preemptive = 0;
this._surprise = 0;
};
Original thread: https://forums.rpgmakerweb.com/threads/how-to-remove-preemptive-surprise-from-an-mv-project.117810/