Help - Search - Members - Calendar
Full Version: Random Encounter Escape
RPG RPG Revolution Forums > Scripting > Script Development and Support > RGSS
Asiant X13
So I found the script to disable the escape feature for random encounters. But now I can't enable it for some maps I want the player to be able to run from random encounters. Is there a way to enable escape in some maps and disable it in the others?
brewmeister
$game_temp.battle_can_escape = true

Just set the variable to 'true' in an autorun event on the map where you want it enabled.
Or, in the transport events that send the player to that map.
Set it back to 'false' in the transport events leaving the map.

Comment out line 124 in Scene_Map to prevent it from resetting to 'true' when an encounter starts.

Edit line 208 in Scene_Title to set the default for Battle Testing.
Redd
Moving to RGSS Script Support.
Also, before you ask the community, it is better to ask the original author of the script.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.