• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Fixed [Indev 0.49.1] CanRun Function Functionless Alone In GameMode

J

jianmingyong

Guest
* This is more for the GameModes since there is no similar script in official game *

What I expected to happen:
Player cannot run from wild battle.

What actually happened:
Player can run from wild battle if @Battle.setvar(cancatch,false) does not exist.

Steps to reproduce:
@Battle.setvar(canrun,false) alone will not work...
A mini test:

Code:
version=2
@Pokemon.add(252,5)
@Battle.setvar(canrun,false)
@Battle.wild(263,2)
:end
 

nilllzz

Original Developer
Administrator
P3D Developer
Also, forgot to add: I confused the two values for "canrun" and "cancatch" in this version.
So if you want to test your script right now, use the opposing one from what you want to accomplish.
 
Top