(57) _IF_TR_FLAGOFF_CALL
Effect
Checks the trainer flag of the given trainer and calls a script if the trainer is not defeated.
The position of the call is saved. Execution returns to this command once a _RET is executed.
info
Needs investigation on how the VS. Seeker affects this result.
Syntax
_IF_TR_FLAGON_CALL(trainer, label)
Argument | Description | Types | Required |
---|---|---|---|
trainer | The trainer id, or the name of the value in the TrainerID enum | Work, Float, String | Required |
label | The label to call | String | Required |
Example
_LDVAL(@LOCALWORK1, 3)
_IF_TR_FLAGON_CALL(@LOCALWORK1, 'ev_dummy')
The above script will set the work variable @LOCALWORK1 to 3.
Then, the trainer id contained in @LOCALWORK1 (in this case 3) is the one that is checked. This corresponds to MINI_01 in the TrainerID enum.
The call to ev_dummy will only occur if MINI_01 has not been defeated.