Skip to main content

(52) _TRAINER_FLAG_RESET

Effect

Resets the trainer flag of the given trainer to false.

Syntax

_TRAINER_FLAG_RESET(trainer)
ArgumentDescriptionTypesRequired
trainerThe trainer id, or the name of the value in the TrainerID enumWork, Float, StringRequired

Example

_LDVAL(@LOCALWORK1, 3)
_TRAINER_FLAG_RESET(@LOCALWORK1)

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 to reset to false. This corresponds to MINI_01 in the TrainerID enum.