- Opcode: 0x06B
- Short name: BATTLEON
- Long name: Battles on
Argument
none
Stack
none
Description
Enables random battles.
Runtime note: this clears the temporary field encounter disable flag checked by the field encounter tick. Random encounters are still blocked by cutscenes, field state, map encounter settings and Enc-None. Concretely it clears the savemap battleOff flag (unless a cutscene lock is active, in which case it just clears the pending disable bit). No stack use. See Encounter Trigger Runtime.
PC handler: SCRIPT_BATTLEON.
Function addresses
| Function | Address | Description |
|---|---|---|
SCRIPT_BATTLEON | 0x523300 | Field script opcode handler (verified IDA function) |