Skip to main content

(335) _TRAINER_BTL_SET

Effect

Initiates a trainer battle.

Syntax

_TRAINER_BTL_SET(trainer1, trainer2?)
ArgumentDescriptionTypesRequired
trainer1The ID of the trainer to battleWork, Float, StringRequired
trainer2The ID of the trainer to battleWork, Float, StringOptional

Example

ev_dummy:
_LDVAL(@SCWK_TEMP1, 780)
_TRAINER_BTL_SET(@SCWK_TEMP1)

The above script will battle the trainer stored in the work @SCWK_TEMP1. In this case 780.