class Game_Player < Game_Character #random escapable encounter def encounter return false if $game_map.interpreter.running? return false if $game_system.encounter_disabled return false if @encounter_count > 0 make_encounter_count troop_id = make_encounter_troop_id return false unless $data_troops[troop_id] #Change 50 for the percentage you want, 100% = not escapable, 0% = always escapable BattleManager.setup(troop_id,isEscapable?(50)) BattleManager.on_encounter return true end def isEscapable?(percentage) if ($game_switches[10] == true) #CHANGE THIS SWITCH ID[10] BY THE ONE OF YOU CHOICE r = rand(100) if (r < percentage) return true else return false end return true end return true end endChange the 50 of isEscapable?(50) by the percentage you want 100 = impossible to escape always, and 0 = escape is always possible, 50 = 1 chance on 2
and change the 10 of $game_switches[10] by your switch id you want to activate non-escapable random battle