Difference between revisions of "FF7/WorldMap Module/Script/Opcodes/117"
< FF7 | WorldMap Module | Script | Opcodes
Jump to navigation
Jump to search
my_wiki>Aali |
m (→Notes) |
||
| (14 intermediate revisions by 6 users not shown) | |||
| Line 17: | Line 17: | ||
==== Notes ==== | ==== Notes ==== | ||
| − | There are 21 different special variables accessible to the script engine. There are several opcodes that access these variables in the same way, presumably they were supposed to be bit, byte and word versions of the instruction but there is absolutely no difference. | + | There are 21 different special variables accessible to the script engine. There are several opcodes that access these variables in the same way, presumably they were supposed to be bit, byte and word versions of the instruction but there is absolutely no difference in the way they work. |
The variables you can access through this instruction are: | The variables you can access through this instruction are: | ||
| Line 38: | Line 38: | ||
|- | |- | ||
| 4 | | 4 | ||
| − | | | + | | Active entity direction (0-255) |
|- | |- | ||
| 5 | | 5 | ||
| − | | | + | | Scenario parameter when entering WM from a field (see [[FF7/WorldMap_Module/Script/Opcodes/318|opcode 0x318]]) |
|- | |- | ||
| 6 | | 6 | ||
| − | | | + | | Field ID of "wm" field that jumped to the WM |
|- | |- | ||
| 7 | | 7 | ||
| − | | | + | | Map options (eg. minimap & camera settings) |
|- | |- | ||
| 8 | | 8 | ||
| − | | Model ID of entity | + | | Model ID of the player entity |
|- | |- | ||
| 9 | | 9 | ||
| − | | | + | | Current wild chocobo rating |
|- | |- | ||
| 10 | | 10 | ||
| − | | | + | | Player is currently riding a chocobo |
|- | |- | ||
| 11 | | 11 | ||
| − | | Battle result | + | | Battle result - whether player escaped last battle (1: place party on the stables side, 0: place party on the cave side) |
|- | |- | ||
| 12 | | 12 | ||
| − | | | + | | Prompt window result |
|- | |- | ||
| 13 | | 13 | ||
| − | | | + | | Script index of current mesh triangle of active entity |
|- | |- | ||
| 14 | | 14 | ||
| − | | | + | | Player party member model ID (0=Cloud, 1=Tifa, 2=Cid) |
|- | |- | ||
| 15 | | 15 | ||
| − | | | + | | Active Entity Model ID |
|- | |- | ||
| 16 | | 16 | ||
| − | | | + | | Random byte (from World Map RNG) |
|- | |- | ||
| 17 | | 17 | ||
Latest revision as of 20:44, 13 September 2025
- Opcode: 0x117, 0x11b & 0x11f
- Name: push special
- Two-word opcode: Yes
Parameters
| Location | Name | Description |
|---|---|---|
| Code | Address | "Address" to the special variable |
Notes
There are 21 different special variables accessible to the script engine. There are several opcodes that access these variables in the same way, presumably they were supposed to be bit, byte and word versions of the instruction but there is absolutely no difference in the way they work.
The variables you can access through this instruction are:
| Address | Description |
|---|---|
| 0 | Active entity X mesh coordinate |
| 1 | Active entity Y mesh coordinate |
| 2 | Active entity X coordinate in mesh |
| 3 | Active entity Y coordinate in mesh |
| 4 | Active entity direction (0-255) |
| 5 | Scenario parameter when entering WM from a field (see opcode 0x318) |
| 6 | Field ID of "wm" field that jumped to the WM |
| 7 | Map options (eg. minimap & camera settings) |
| 8 | Model ID of the player entity |
| 9 | Current wild chocobo rating |
| 10 | Player is currently riding a chocobo |
| 11 | Battle result - whether player escaped last battle (1: place party on the stables side, 0: place party on the cave side) |
| 12 | Prompt window result |
| 13 | Script index of current mesh triangle of active entity |
| 14 | Player party member model ID (0=Cloud, 1=Tifa, 2=Cid) |
| 15 | Active Entity Model ID |
| 16 | Random byte (from World Map RNG) |
| 17 | Unknown |
| 18 | Unknown |
| 19 | Unknown |
| 20 | Unknown |