- Opcode: 0x0126
- Short name: SETWITCH
- Long name: Set Rinoa as Sorceress
Argument
none
Stack
1
SETWITCH
Description
This is only called once in the whole game - the first time you enter the Ragnarok in space. It unlocks Rinoa’s alternate limit break after she becomes a sorceress.
Runtime note: the handler pops one value; if it is non-zero it calls the sorceress-unlock setter (which sets bit 0x20 in SG_ODIN_ANGEL_GILGA_FLAG), otherwise it calls the clear routine. The same byte also stores Odin, Phoenix, Gilgamesh and Angelo-related battle flags. See GF Summon Runtime.
PC handler: SCRIPT_SETWITCH.
Function addresses
| Function | Address | Description |
|---|---|---|
SCRIPT_SETWITCH | 0x523180 | Field script opcode handler (verified IDA function) |
SG_ODIN_ANGEL_GILGA_FLAG | 0x1CFE97A | Global byte, not a function |