In previous versions of the Maker, your flee chances increased by 10% each time you fail. In RMXP, it doesn't do that anymore so if the enemy is very fast you're pretty much screwed.
This little thing will revive the +10% thing. It's actually very small edits, yet I'm sure it'll be helpful. First, go to Scene_Battle (1) and insert this somewhere under def main:
This should initialize the extra escape chance to 0% when battle begins.
Now, go to Scene_Battle (2) and go down to this part:
Put parenthesis around actors_agi / enemies_agi, and then type + @extra_escape after them. It should look like this:
Now go under the else case (i.e. if escape is failure) but BEFORE start_phase4 and insert @escape_chance += 10.
Annnd you should be done. Now if you fail multiple times because of a fast enemy you should eventually be able to run away, or able to run away sooner. Of course if you still miss a lot of times you'd might as well stay and fight, having taken so much damage and all.
This little thing will revive the +10% thing. It's actually very small edits, yet I'm sure it'll be helpful. First, go to Scene_Battle (1) and insert this somewhere under def main:
This should initialize the extra escape chance to 0% when battle begins.
Now, go to Scene_Battle (2) and go down to this part:
#--------------------------------------------------------------------------
# * Frame Update (party command phase: escape)
#--------------------------------------------------------------------------
def update_phase2_escape
# Calculate enemy agility average
enemies_agi = 0
enemies_number = 0
for enemy in $game_troop.enemies
if enemy.exist?
enemies_agi += enemy.agi
enemies_number += 1
end
end
if enemies_number > 0
enemies_agi /= enemies_number
end
# Calculate actor agility average
actors_agi = 0
actors_number = 0
for actor in $game_party.actors
if actor.exist?
actors_agi += actor.agi
actors_number += 1
end
end
if actors_number > 0
actors_agi /= actors_number
end
# Determine if escape is successful
success = rand(100) < 50 * (actors_agi / enemies_agi) + @extra_escape
# If escape is successful
if success
@extra_escape = 0
# Play escape SE
$game_system.se_play($data_system.escape_se)
# Return to BGM before battle started
$game_system.bgm_play($game_temp.map_bgm)
# Battle ends
battle_end(1)
# If escape is failure
else
@extra_escape += 10
# Clear all party member actions
$game_party.clear_actions
# Start main phase
start_phase4
end
end
# * Frame Update (party command phase: escape)
#--------------------------------------------------------------------------
def update_phase2_escape
# Calculate enemy agility average
enemies_agi = 0
enemies_number = 0
for enemy in $game_troop.enemies
if enemy.exist?
enemies_agi += enemy.agi
enemies_number += 1
end
end
if enemies_number > 0
enemies_agi /= enemies_number
end
# Calculate actor agility average
actors_agi = 0
actors_number = 0
for actor in $game_party.actors
if actor.exist?
actors_agi += actor.agi
actors_number += 1
end
end
if actors_number > 0
actors_agi /= actors_number
end
# Determine if escape is successful
success = rand(100) < 50 * (actors_agi / enemies_agi) + @extra_escape
# If escape is successful
if success
@extra_escape = 0
# Play escape SE
$game_system.se_play($data_system.escape_se)
# Return to BGM before battle started
$game_system.bgm_play($game_temp.map_bgm)
# Battle ends
battle_end(1)
# If escape is failure
else
@extra_escape += 10
# Clear all party member actions
$game_party.clear_actions
# Start main phase
start_phase4
end
end
Expand to see the code.
Put parenthesis around actors_agi / enemies_agi, and then type + @extra_escape after them. It should look like this:
success = rand(100) < 50 * [COLOR=Red]([/COLOR]actors_agi / enemies_agi[COLOR=Red])[/COLOR] [COLOR=Red]+ @extra_escape[/COLOR]
Expand to see the code.
Now go under the else case (i.e. if escape is failure) but BEFORE start_phase4 and insert @escape_chance += 10.
Annnd you should be done. Now if you fail multiple times because of a fast enemy you should eventually be able to run away, or able to run away sooner. Of course if you still miss a lot of times you'd might as well stay and fight, having taken so much damage and all.