Difference between revisions of "FF7/WorldMap Module/Script/Opcodes/204"
< FF7 | WorldMap Module | Script | Opcodes
Jump to navigation
Jump to search
my_wiki>Aali |
m (→Notes) |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
* Opcode: '''0x204''' & the rest of the 200 series of opcodes | * Opcode: '''0x204''' & the rest of the 200 series of opcodes | ||
− | * Name: run | + | * Name: run function |
* Two-word opcode: No | * Two-word opcode: No | ||
Line 18: | Line 18: | ||
Runs the function (opcode - 0x204) in the context of the specified model. Opcode 204 runs function 0, opcode 205 runs function 1 etc. | Runs the function (opcode - 0x204) in the context of the specified model. Opcode 204 runs function 0, opcode 205 runs function 1 etc. | ||
− | An invalid model ID (>=64) causes it to run the | + | |
+ | An invalid model ID (>=64) causes it to run a system function in the context of the current active entity. This is used throughout the worldmap scripts where certain model functions call system functions (model ID is then set to 65535, or 0xFFFF in hex). |
Latest revision as of 11:09, 10 November 2021
- Opcode: 0x204 & the rest of the 200 series of opcodes
- Name: run function
- Two-word opcode: No
Parameters
Location | Name | Description |
---|---|---|
Stack | Model | Model ID |
Notes
Runs the function (opcode - 0x204) in the context of the specified model. Opcode 204 runs function 0, opcode 205 runs function 1 etc.
An invalid model ID (>=64) causes it to run a system function in the context of the current active entity. This is used throughout the worldmap scripts where certain model functions call system functions (model ID is then set to 65535, or 0xFFFF in hex).