Disable Escape on Random Encounter

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

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
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 ! ^^
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top