Skip to main content

(56) _IF_TR_FLAGON_CALL

Effect

Checks the trainer flag of the given trainer and calls a script if the trainer is 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)
ArgumentDescriptionTypesRequired
trainerThe trainer id, or the name of the value in the TrainerID enumWork, Float, StringRequired
labelThe label to callStringRequired

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 been defeated.