Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Random Encounter Escape
Asiant X13
post May 9 2011, 05:51 AM
Post #1


Level 1
Group Icon

Group: Member
Posts: 14
Type: Writer
RM Skill: Skilled




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?
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies (1 - 2)
brewmeister
post May 9 2011, 07:39 AM
Post #2


Paste above Main
Group Icon

Group: Revolutionary
Posts: 408
Type: Scripter
RM Skill: Skilled




$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.

This post has been edited by brewmeister: May 9 2011, 07:45 AM


__________________________
Go to the top of the page
 
+Quote Post
   
Redd
post May 9 2011, 01:51 PM
Post #3


:<
Group Icon

Group: Revolutionary
Posts: 2,314
Type: Developer
RM Skill: Advanced




Moving to RGSS Script Support.
Also, before you ask the community, it is better to ask the original author of the script.


__________________________
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 08:51 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker