- Opcode: 0x127
- Short name: SETODIN
- Long name: Unlock Odin
Argument
none
Stack
none
Description
Unlocks Odin (as if you beat him).
Runtime note: the handler takes no stack arguments and calls the “Odin possessed” setter, which sets bit 0x02 in SG_ODIN_ANGEL_GILGA_FLAG. During battle init, rollOdinAutoSummon (current IDA name; previously mis-labeled ZANTETSUKEN_sub_482DF0 on this page) checks this bit and can queue Odin with a 32/255 RNG check if enemies do not block death. See GF Summon Runtime.
PC handler: SCRIPT_SETODIN.
Function addresses
| Function | Address | Description |
|---|---|---|
SCRIPT_SETODIN | 0x5231C0 | Field script opcode handler (verified IDA function) |
SG_ODIN_ANGEL_GILGA_FLAG | 0x1CFE97A | Global byte, not a function |
rollOdinAutoSummon | 0x482E00 | Battle-init Odin auto-summon roll (verified IDA function) |