Help with customizing the escape command

I'm trying to alter how the escape command on my game works, and was wondering if there was a conditional branch, script command, event page (anything really) that I could use to insert commands after the player selects escape. If I were able to alter the formula for when Escape is successful that would work too.

Basically what I am wanting to do is make escape successful if actor 1 has enough TP. I tried to create a work around by temporarily adding agility to Actor 1 at the end of my battle turns if $gameActors.actor(1).tp > 99. But that didn't work. It seems like the engine only takes into account the player's agility prior to the battle processing when calculating his/her success chances to escape.

I know I could just make my own escape options. But I would like to make use of the current escape command if possible so it doesn't become a third wheel.
keyboard config plugin is 1 or write your own with the keyCode.
there are some threads how to alter keys for specific things or how
they should behave (as doing so, you overwrite the function of the key).

this way, you can use that in your conditional branch or use a keymapper
like ET_Keymapper or ZE_KeyMapper to use all keys to your liking.
keyboard config plugin is 1 or write your own with the keyCode.
He didn't say anything about the escape key on the keyboard, he asked about the Escape command to get out of battle 😛

I'm trying to alter how the escape command on my game works
There are a number of plugins that allow you to alter the formula. I know off the top of my head that Yanfly's Battle Engine Core has it as a plugin parameter. There are probably others you can find via Google.
I know I could just make my own escape options. But I would like to make use of the current escape command if possible so it doesn't become a third wheel.
The other option that many people do is to get rid of that Fight/Escape selection entirely, and then use a skill (or added battle command coded the way you want) to escape. Really, who wants to have to choose that every round in every fight for the whole game?
He didn't say anything about the escape key on the keyboard, he asked about the Escape command to get out of battle 😛


There are a number of plugins that allow you to alter the formula. I know off the top of my head that Yanfly's Battle Engine Core has it as a plugin parameter. There are probably others you can find via Google.

The other option that many people do is to get rid of that Fight/Escape selection entirely, and then use a skill (or added battle command coded the way you want) to escape. Really, who wants to have to choose that every round in every fight for the whole game?

Thanks for the response. I guess I'll just make retreat skill then.

How do people remove the Fight/Escape selection? I didn't know you could do that.
Just give it a Google, there are a bunch of threads on here with a little plugin that removes that window from the beginning of each round of combat.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-customizing-the-escape-command.145464/