I'm trying to figure out how to make the "Escape" command not always work successfully, but I can't figure out how to do it. Changing the Escape skill only affects enemies, and I didn't see any results from changing Agility.
MV How to change chance to successfully flee?
RPG Maker MV Supportthe escape chance for the party uses agi, but it only uses agi values at the start of the battle. if you were changing agi during battle, it doesnt help/hurt the odds of running.
then, the odds of escape itself is half the ratio of the average agi of your actors to that of your enemies. if the average agi of your party is twice that of the enemy troop's, you cannot fail an escape attempt.
you can tune your agi to make that more relevant, or you can change the escape rate with a plugin
The bit of code that handles escape chance is in the manager plugin.
If escaping is too easy, you can change the odds (0.5) to a lower number to make it less likely it'll work. You can also use something like adding * Math.random() to the agility checks as well if you want more rng in there?
Code:
BattleManager.makeEscapeRatio = function() {
this._escapeRatio = (0.5 * $gameParty.agility()) / $gameTroop.agility();
};
If escaping is too easy, you can change the odds (0.5) to a lower number to make it less likely it'll work. You can also use something like adding * Math.random() to the agility checks as well if you want more rng in there?
I'm surprised, because I when I changed the Success rate in the Skill command in the database. It was very hard for my escape to always work.
the escape skill effect (which really should only done by enemies if used with the intention of it being an "escape" and not something like an "eject") triggers a completely different process than the escape command used by the player from the party command window. there isnt a connection between the two without a plugin
Wow, I never knew that.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-chance-to-successfully-flee.182999/