List of Opcodes: Difference between revisions
Happylappy (talk | contribs) m Added Opcode Descriptions (Call, Return, and a few others) |
Happylappy (talk | contribs) m SwitchLives & SwitchRandom |
||
| Line 7,827: | Line 7,827: | ||
|} | |} | ||
=== 0x145 - SwitchLives === | === 0x145 - SwitchLives === | ||
If inside a Switch Case, take the case equal to the species ID of the specified Actor! | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 7,838: | Line 7,838: | ||
|- | |- | ||
|1 | |1 | ||
| | |Entity | ||
| | |actor_id | ||
| | |An entry in the Actor List. | ||
|} | |} | ||
=== 0x146 - SwitchRandom === | === 0x146 - SwitchRandom === | ||
To be used in a switch statement. Will switch to a case of a random number below the specified integer. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 7,856: | Line 7,856: | ||
|uint | |uint | ||
|max_value | |max_value | ||
| | |Largest random output, plus 1 | ||
|} | |} | ||
=== 0x147 - SwitchScenario === | === 0x147 - SwitchScenario === | ||