MV [Solved] Escape Modifiers MV?

So four years back when I was still working with VX Ace, I had a script made that let me control when you could leave combat based on turn count or enemy HP, as opposed to a flat "can't escape" or "always able to run". Unfortunately, I haven't seen anything like it since upgrading to MV.

I was thinking of asking for an MV equivalent made, but I don't know where to start.

-----

EDIT:

A friend showed me that all I had to do was add
JavaScript:
BattleManager._canEscape = true;
as a script call in a troop command. That's literally it.

Safe to say this is solved.
I don't know about a plugin specific to escape, but I can think of things to try using Yanfly plugins.

Escape is skill 6 by default, so I *think* you can just apply limitations to it to achieve the effect. One thought I had would be to make a state that seals the Escape skill that is applied with BaseTroopEvents. The troop event you'd use would simply apply the state after X turns, and the state would clear on battle end.

If you wanted a variety of conditions, I'd use AutoPassiveStates to make something that seals the skill and then use custom conditions to cover those bases (unless they can be done with the more basic notetags he offers).
I don't know about a plugin specific to escape, but I can think of things to try using Yanfly plugins.

Escape is skill 6 by default, so I *think* you can just apply limitations to it to achieve the effect. One thought I had would be to make a state that seals the Escape skill that is applied with BaseTroopEvents. The troop event you'd use would simply apply the state after X turns, and the state would clear on battle end.

If you wanted a variety of conditions, I'd use AutoPassiveStates to make something that seals the skill and then use custom conditions to cover those bases (unless they can be done with the more basic notetags he offers).

Hey thanks, Woo, but I... already found an answer, lmao.
I should point out that the escape skill in the database doesn't work well for actors. If you have someone KO'd then everyone else runs via a skill with that Escape feature...you get a Game Over.

I learned this the hard way a few years ago.
Escape is skill 6
the escape skill in the database is different than the escape command in the party menu and imo should remain as an enemy only skill without additional plugins to change it (unless you have a solo actor game or something).
the process behind both are entirely different. the command will properly abort the battle if successful. the skill tries to remove targets from battle, which will present unique problems for the party and not the troop.

Also locking the thread as it's been solved

Original thread: https://forums.rpgmakerweb.com/threads/solved-escape-modifiers-mv.178425/