Difference between revisions of "FF7/WorldMap Module/Script/Opcodes/117"

From Final Fantasy Inside
Jump to navigation Jump to search
my_wiki>Aali
(Created page with "* Opcode: '''0x117''', '''0x11b''' & '''0x11f''' * Name: push special * Two-word opcode: Yes ==== Parameters ==== {| border="1" cellspacing="1" cellpadding="3" style="border...")
 
 
(12 intermediate revisions by 6 users not shown)
Line 12: Line 12:
 
| Code
 
| Code
 
| Address
 
| Address
| "Address" to the special variables
+
| "Address" to the special variable
 
|}
 
|}
  
 
==== 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
| Unknown
+
| Active entity direction (0-255)
 
|-
 
|-
 
| 5
 
| 5
| Unknown
+
| Scenario parameter when entering WM from a field (see [[FF7/WorldMap_Module/Script/Opcodes/318|opcode 0x318]])
 
|-
 
|-
 
| 6
 
| 6
| Unknown
+
| Field ID of "wm" field that jumped to the WM
 
|-
 
|-
 
| 7
 
| 7
Line 56: Line 56:
 
|-
 
|-
 
| 10
 
| 10
| Wild chocobo type
+
| Check if ran from battle
 
|-
 
|-
 
| 11
 
| 11
| Battle result
+
| Zolom escape result flag (1: place party on the stables side, 0: place party on the cave side)
 
|-
 
|-
 
| 12
 
| 12
| Unknown
+
| Prompt window result
 
|-
 
|-
 
| 13
 
| 13
| Prompt window result
+
| Script index of current mesh triangle of active entity
 
|-
 
|-
 
| 14
 
| 14
Line 74: Line 74:
 
|-
 
|-
 
| 16
 
| 16
| Unknown
+
| Random byte (from World Map RNG)
 
|-
 
|-
 
| 17
 
| 17

Latest revision as of 08:43, 10 October 2024

  • 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 Unknown
8 Model ID of entity at top of entity list
9 Model ID of active entity
10 Check if ran from battle
11 Zolom escape result flag (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 Unknown
15 Unknown
16 Random byte (from World Map RNG)
17 Unknown
18 Unknown
19 Unknown
20 Unknown