Kuronokun

Villager
Member
Joined
Aug 10, 2014
Messages
21
Reaction score
2
First Language
French
Primarily Uses
Hello !

I'm looking for a way to disable Escape in Random Encounter.

Thank you for your help !
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,197
Reaction score
14,665
First Language
English
Primarily Uses
RMMV
Copy and paste the following into a new .js file in your Plugin folder. Call it whatever you like, and add it to your project.

Code:
Game_Player.prototype.executeEncounter = function() {    if (!$gameMap.isEventRunning() && this._encounterCount <= 0) {        this.makeEncounterCount();        var troopId = this.makeEncounterTroopId();        if ($dataTroops[troopId]) {            BattleManager.setup(troopId, false, false);            BattleManager.onEncounter();            return true;        } else {            return false;        }    } else {        return false;    }};
 

Kuronokun

Villager
Member
Joined
Aug 10, 2014
Messages
21
Reaction score
2
First Language
French
Primarily Uses
It works perfectly.

Thank you so much for this quick answer ! ^^
 

Latest Threads

Latest Posts

Latest Profile Posts

If you're an artist of illustrations, you're doing fine.
If you're an artist of writing, you're doing fine.
If you're an artist of programming, you're doing fine.
But if you are all three above (and more) you cannot allow any distractions in your life.
After working out some initial confusion, I managed to get Yanfly's Improved Battlebacks successfully working on a test battle, changing the battleback and getting it to scroll during combat. This means that I can have graphically dynamic battles on moving platforms, like the roof of a train or the deck of a ship/airship...
Place Events Like Tiles Through Replacement, & Take Notes Free Form | RPG Maker News #41

the singularity is upon us:
1621133810311.png
MV's plugin command setup is the current bane of RETRO's existence. To a degree, so is MZ's. Especially when trying to make MV's plugin command interface play nice with MZ plugin commands with complex arguments.

Forum statistics

Threads
111,395
Messages
1,060,791
Members
144,740
Latest member
Nlove77
Top