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

From Final Fantasy Inside
Jump to navigation Jump to search
my_wiki>Aali
(Created page with " == Stack Operations: Arithmetic == 015 push neg 017 push logicnot [[FF7/WorldMap_Module...")
 
m (System Operations)
 
(25 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
== Stack Operations: Arithmetic ==
 
== Stack Operations: Arithmetic ==
  
[[FF7/WorldMap_Module/Script/Opcodes/015|015 push neg]]
+
[[FF7/WorldMap_Module/Script/Opcodes/015|015 push neg]]
[[FF7/WorldMap_Module/Script/Opcodes/017|017 push logicnot]]
+
[[FF7/WorldMap_Module/Script/Opcodes/017|017 push logicnot]]
[[FF7/WorldMap_Module/Script/Opcodes/018|018 push distance from active entity to light]]
+
[[FF7/WorldMap_Module/Script/Opcodes/018|018 push distance from active entity to point]]
[[FF7/WorldMap_Module/Script/Opcodes/019|019 push distance from active entity to entity by model id]]
+
[[FF7/WorldMap_Module/Script/Opcodes/019|019 push distance from active entity to entity by model id]]
[[FF7/WorldMap_Module/Script/Opcodes/01b|01b push unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/01b|01b push unknown]]
[[FF7/WorldMap_Module/Script/Opcodes/030|030 push mul]]
+
[[FF7/WorldMap_Module/Script/Opcodes/030|030 push mul]]
[[FF7/WorldMap_Module/Script/Opcodes/040|040 push add]]
+
[[FF7/WorldMap_Module/Script/Opcodes/040|040 push add]]
[[FF7/WorldMap_Module/Script/Opcodes/041|041 push sub]]
+
[[FF7/WorldMap_Module/Script/Opcodes/041|041 push sub]]
[[FF7/WorldMap_Module/Script/Opcodes/050|050 push shl]]
+
[[FF7/WorldMap_Module/Script/Opcodes/050|050 push shl]]
[[FF7/WorldMap_Module/Script/Opcodes/051|051 push shr]]
+
[[FF7/WorldMap_Module/Script/Opcodes/051|051 push shr]]
[[FF7/WorldMap_Module/Script/Opcodes/060|060 push less]]
+
[[FF7/WorldMap_Module/Script/Opcodes/060|060 push less]]
[[FF7/WorldMap_Module/Script/Opcodes/061|061 push greater]]
+
[[FF7/WorldMap_Module/Script/Opcodes/061|061 push greater]]
[[FF7/WorldMap_Module/Script/Opcodes/062|062 push lessequal]]
+
[[FF7/WorldMap_Module/Script/Opcodes/062|062 push lessequal]]
[[FF7/WorldMap_Module/Script/Opcodes/063|063 push greaterequal]]
+
[[FF7/WorldMap_Module/Script/Opcodes/063|063 push greaterequal]]
[[FF7/WorldMap_Module/Script/Opcodes/070|070 push equal]]
+
[[FF7/WorldMap_Module/Script/Opcodes/070|070 push equal]]
[[FF7/WorldMap_Module/Script/Opcodes/080|080 push and]]
+
[[FF7/WorldMap_Module/Script/Opcodes/080|080 push and]]
[[FF7/WorldMap_Module/Script/Opcodes/0a0|0a0 push or]]
+
[[FF7/WorldMap_Module/Script/Opcodes/0a0|0a0 push or]]
[[FF7/WorldMap_Module/Script/Opcodes/0b0|0b0 push logicand]]
+
[[FF7/WorldMap_Module/Script/Opcodes/0b0|0b0 push logicand]]
[[FF7/WorldMap_Module/Script/Opcodes/0c0|0c0 push logicor]]
+
[[FF7/WorldMap_Module/Script/Opcodes/0c0|0c0 push logicor]]
[[FF7/WorldMap_Module/Script/Opcodes/0e0|0e0 write bank]]
+
[[FF7/WorldMap_Module/Script/Opcodes/0e0|0e0 write bank]]
  
 
== Stack Operations: Data Sources ==
 
== Stack Operations: Data Sources ==
  
[[FF7/WorldMap_Module/Script/Opcodes/100|100 reset stack]]
+
[[FF7/WorldMap_Module/Script/Opcodes/100|100 reset stack]]
[[FF7/WorldMap_Module/Script/Opcodes/110|110 push constant]]
+
[[FF7/WorldMap_Module/Script/Opcodes/110|110 push constant]]
[[FF7/WorldMap_Module/Script/Opcodes/114|114 push bit from bank0]]
+
[[FF7/WorldMap_Module/Script/Opcodes/114|114 push bit from bank0]]
[[FF7/WorldMap_Module/Script/Opcodes/117|117 push special]]
+
[[FF7/WorldMap_Module/Script/Opcodes/117|117 push special]]
[[FF7/WorldMap_Module/Script/Opcodes/118|118 push byte from bank0]]
+
[[FF7/WorldMap_Module/Script/Opcodes/118|118 push byte from bank0]]
[[FF7/WorldMap_Module/Script/Opcodes/119|119 push byte from bank1]]
+
[[FF7/WorldMap_Module/Script/Opcodes/119|119 push byte from bank1]]
[[FF7/WorldMap_Module/Script/Opcodes/11b|11b push special]]
+
[[FF7/WorldMap_Module/Script/Opcodes/117|11b push special]]
[[FF7/WorldMap_Module/Script/Opcodes/11c|11c push word from bank0]]
+
[[FF7/WorldMap_Module/Script/Opcodes/11c|11c push word from bank0]]
[[FF7/WorldMap_Module/Script/Opcodes/11d|11d push word from bank1]]
+
[[FF7/WorldMap_Module/Script/Opcodes/11d|11d push word from bank1]]
[[FF7/WorldMap_Module/Script/Opcodes/11f|11f push special]]
+
[[FF7/WorldMap_Module/Script/Opcodes/117|11f push special]]
  
 
== Flow Control ==
 
== Flow Control ==
  
[[FF7/WorldMap_Module/Script/Opcodes/200|200 jump]]
+
[[FF7/WorldMap_Module/Script/Opcodes/200|200 jump]]
[[FF7/WorldMap_Module/Script/Opcodes/201|201 jump if false]]
+
[[FF7/WorldMap_Module/Script/Opcodes/201|201 jump if false]]
[[FF7/WorldMap_Module/Script/Opcodes/203|203 return]]
+
[[FF7/WorldMap_Module/Script/Opcodes/203|203 return]]
[[FF7/WorldMap_Module/Script/Opcodes/204|204 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/204|204 run function]]
  
 
== System Operations ==
 
== System Operations ==
  
[[FF7/WorldMap_Module/Script/Opcodes/300|300 set active entity from model id]]
+
[[FF7/WorldMap_Module/Script/Opcodes/300|300 load model]]
[[FF7/WorldMap_Module/Script/Opcodes/302|302 move active entity to top of entity list?]]
+
[[FF7/WorldMap_Module/Script/Opcodes/302|302 set player entity]]
[[FF7/WorldMap_Module/Script/Opcodes/303|303 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/303|303 set active entity movespeed]]
[[FF7/WorldMap_Module/Script/Opcodes/304|304 set some value for active entity]]
+
[[FF7/WorldMap_Module/Script/Opcodes/304|304 set active entity direction & facing]]
[[FF7/WorldMap_Module/Script/Opcodes/305|305 set wait frames]]
+
[[FF7/WorldMap_Module/Script/Opcodes/305|305 set wait frames]]
[[FF7/WorldMap_Module/Script/Opcodes/306|306 wait?]]
+
[[FF7/WorldMap_Module/Script/Opcodes/306|306 wait?]]
[[FF7/WorldMap_Module/Script/Opcodes/307|307 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/307|307 set control lock]]
[[FF7/WorldMap_Module/Script/Opcodes/308|308 set active entity mesh coordinates]]
+
[[FF7/WorldMap_Module/Script/Opcodes/308|308 set active entity mesh coordinates]]
[[FF7/WorldMap_Module/Script/Opcodes/309|309 set active entity coordinates in mesh]]
+
[[FF7/WorldMap_Module/Script/Opcodes/309|309 set active entity coordinates in mesh]]
[[FF7/WorldMap_Module/Script/Opcodes/30a|30a unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/30a|30a set active entity vertical speed]]
[[FF7/WorldMap_Module/Script/Opcodes/30b|30b set active entity y offset]]
+
[[FF7/WorldMap_Module/Script/Opcodes/30b|30b set active entity y offset]]
[[FF7/WorldMap_Module/Script/Opcodes/30c|30c enter vehicle?]]
+
[[FF7/WorldMap_Module/Script/Opcodes/30c|30c enter vehicle?]]
[[FF7/WorldMap_Module/Script/Opcodes/30d|30d unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/30d|30d stop entity]]
[[FF7/WorldMap_Module/Script/Opcodes/30e|30e active entity play animation]]
+
[[FF7/WorldMap_Module/Script/Opcodes/30e|30e active entity play animation]]
[[FF7/WorldMap_Module/Script/Opcodes/310|310 set active light]]
+
[[FF7/WorldMap_Module/Script/Opcodes/310|310 set active point]]
[[FF7/WorldMap_Module/Script/Opcodes/311|311 set light mesh coordinates]]
+
[[FF7/WorldMap_Module/Script/Opcodes/311|311 set point mesh coordinates]]
[[FF7/WorldMap_Module/Script/Opcodes/312|312 set light coordinates in mesh]]
+
[[FF7/WorldMap_Module/Script/Opcodes/312|312 set point coordinates in mesh]]
[[FF7/WorldMap_Module/Script/Opcodes/313|313 set light terrain BGR]]
+
[[FF7/WorldMap_Module/Script/Opcodes/313|313 set point terrain BGR]]
[[FF7/WorldMap_Module/Script/Opcodes/314|314 set light dropoff parameters]]
+
[[FF7/WorldMap_Module/Script/Opcodes/314|314 set point dropoff parameters]]
[[FF7/WorldMap_Module/Script/Opcodes/315|315 set light sky BGR]]
+
[[FF7/WorldMap_Module/Script/Opcodes/315|315 set point sky top BGR]]
[[FF7/WorldMap_Module/Script/Opcodes/316|316 set light BGR3?]]
+
[[FF7/WorldMap_Module/Script/Opcodes/316|316 set point sky bottom BGR]]
[[FF7/WorldMap_Module/Script/Opcodes/317|317 trigger battle]]
+
[[FF7/WorldMap_Module/Script/Opcodes/317|317 trigger battle]]
[[FF7/WorldMap_Module/Script/Opcodes/318|318 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/318|318 enter field scene]]
[[FF7/WorldMap_Module/Script/Opcodes/319|319 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/319|319 set map options]]
[[FF7/WorldMap_Module/Script/Opcodes/31b|31b noop]]
+
[[FF7/WorldMap_Module/Script/Opcodes/31b|31b noop]]
[[FF7/WorldMap_Module/Script/Opcodes/31c|31c unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/31c|31c unknown]]
[[FF7/WorldMap_Module/Script/Opcodes/31d|31d play sound effect]]
+
[[FF7/WorldMap_Module/Script/Opcodes/31d|31d play sound effect]]
[[FF7/WorldMap_Module/Script/Opcodes/31f|31f unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/31f|31f set camera rotation speed]]
[[FF7/WorldMap_Module/Script/Opcodes/320|320 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/320|320 unknown]]
[[FF7/WorldMap_Module/Script/Opcodes/321|321 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/321|321 unknown]]
[[FF7/WorldMap_Module/Script/Opcodes/324|324 set window dimensions]]
+
[[FF7/WorldMap_Module/Script/Opcodes/324|324 set window dimensions]]
[[FF7/WorldMap_Module/Script/Opcodes/325|325 set window message]]
+
[[FF7/WorldMap_Module/Script/Opcodes/325|325 set window message]]
[[FF7/WorldMap_Module/Script/Opcodes/326|326 set window prompt]]
+
[[FF7/WorldMap_Module/Script/Opcodes/326|326 set window prompt]]
[[FF7/WorldMap_Module/Script/Opcodes/327|327 wait for prompt acknowledge?]]
+
[[FF7/WorldMap_Module/Script/Opcodes/327|327 wait for prompt acknowledge?]]
[[FF7/WorldMap_Module/Script/Opcodes/328|328 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/328|328 set active entity direction]]
[[FF7/WorldMap_Module/Script/Opcodes/329|329 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/329|329 unknown]]
[[FF7/WorldMap_Module/Script/Opcodes/32a|32a unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/32a|32a unknown]]
[[FF7/WorldMap_Module/Script/Opcodes/32b|32b set battle lock]]
+
[[FF7/WorldMap_Module/Script/Opcodes/32b|32b set battle lock]]
[[FF7/WorldMap_Module/Script/Opcodes/32c|32c set window parameters]]
+
[[FF7/WorldMap_Module/Script/Opcodes/32c|32c set window parameters]]
[[FF7/WorldMap_Module/Script/Opcodes/32d|32d wait for window ready]]
+
[[FF7/WorldMap_Module/Script/Opcodes/32d|32d wait for window ready]]
[[FF7/WorldMap_Module/Script/Opcodes/32e|32e wait for message acknowledge]]
+
[[FF7/WorldMap_Module/Script/Opcodes/32e|32e wait for message acknowledge]]
[[FF7/WorldMap_Module/Script/Opcodes/32f|32f unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/32f|32f set player direction]]
[[FF7/WorldMap_Module/Script/Opcodes/330|330 set active entity from model id]]
+
[[FF7/WorldMap_Module/Script/Opcodes/330|330 set active entity]]
[[FF7/WorldMap_Module/Script/Opcodes/331|331 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/331|331 exit vehicle]]
[[FF7/WorldMap_Module/Script/Opcodes/332|332 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/332|332 chocobo runs away]]
[[FF7/WorldMap_Module/Script/Opcodes/333|333 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/333|333 rotate current entity to model]]
[[FF7/WorldMap_Module/Script/Opcodes/334|334 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/334|334 wait for function]]
[[FF7/WorldMap_Module/Script/Opcodes/336|336 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/336|336 set active entity movespeed (honor walkmesh)]]
[[FF7/WorldMap_Module/Script/Opcodes/339|339 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/339|339 hide active entity model]]
[[FF7/WorldMap_Module/Script/Opcodes/33a|33a unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/33a|33a set active entity vertical speed 2]]
[[FF7/WorldMap_Module/Script/Opcodes/33b|33b fade out?]]
+
[[FF7/WorldMap_Module/Script/Opcodes/33b|33b fade out?]]
[[FF7/WorldMap_Module/Script/Opcodes/33c|33c set field entry point?]]
+
[[FF7/WorldMap_Module/Script/Opcodes/33c|33c set field entry point?]]
[[FF7/WorldMap_Module/Script/Opcodes/33d|33d set field entry point2?]]
+
[[FF7/WorldMap_Module/Script/Opcodes/33d|33d set field entry point2?]]
[[FF7/WorldMap_Module/Script/Opcodes/33e|33e unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/33e|33e play music]]
[[FF7/WorldMap_Module/Script/Opcodes/347|347 move active entity to entity by model id?]]
+
[[FF7/WorldMap_Module/Script/Opcodes/347|347 move active entity to entity by model id?]]
[[FF7/WorldMap_Module/Script/Opcodes/348|348 fade in?]]
+
[[FF7/WorldMap_Module/Script/Opcodes/348|348 fade in?]]
[[FF7/WorldMap_Module/Script/Opcodes/349|349 set world progress]]
+
[[FF7/WorldMap_Module/Script/Opcodes/349|349 set world progress]]
[[FF7/WorldMap_Module/Script/Opcodes/34a|34a unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/34a|34a unknown]]
[[FF7/WorldMap_Module/Script/Opcodes/34b|34b set chocobo type]]
+
[[FF7/WorldMap_Module/Script/Opcodes/34b|34b set chocobo type]]
[[FF7/WorldMap_Module/Script/Opcodes/34c|34c set submarine color]]
+
[[FF7/WorldMap_Module/Script/Opcodes/34c|34c set submarine color]]
[[FF7/WorldMap_Module/Script/Opcodes/34d|34d unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/34d|34d show animation layer]]
[[FF7/WorldMap_Module/Script/Opcodes/34e|34e unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/34e|34e hide animation layer]]
[[FF7/WorldMap_Module/Script/Opcodes/34f|34f set active entity y position]]
+
[[FF7/WorldMap_Module/Script/Opcodes/34f|34f set active entity y position]]
[[FF7/WorldMap_Module/Script/Opcodes/350|350 set meteor texture on/off]]
+
[[FF7/WorldMap_Module/Script/Opcodes/350|350 set meteor texture on/off]]
[[FF7/WorldMap_Module/Script/Opcodes/351|351 set music volume]]
+
[[FF7/WorldMap_Module/Script/Opcodes/351|351 set music volume]]
[[FF7/WorldMap_Module/Script/Opcodes/352|352 shake camera on/off]]
+
[[FF7/WorldMap_Module/Script/Opcodes/352|352 shake camera on/off]]
[[FF7/WorldMap_Module/Script/Opcodes/353|353 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/353|353 unknown]]
[[FF7/WorldMap_Module/Script/Opcodes/354|354 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/354|354 unknown]]
[[FF7/WorldMap_Module/Script/Opcodes/355|355 unknown]]
+
[[FF7/WorldMap_Module/Script/Opcodes/355|355 set battle countdown timer]]

Latest revision as of 11:11, 10 November 2021

Stack Operations: Arithmetic

015 push neg
017 push logicnot
018 push distance from active entity to point
019 push distance from active entity to entity by model id
01b push unknown
030 push mul
040 push add
041 push sub
050 push shl
051 push shr
060 push less
061 push greater
062 push lessequal
063 push greaterequal
070 push equal
080 push and
0a0 push or
0b0 push logicand
0c0 push logicor
0e0 write bank

Stack Operations: Data Sources

100 reset stack
110 push constant
114 push bit from bank0
117 push special
118 push byte from bank0
119 push byte from bank1
11b push special
11c push word from bank0
11d push word from bank1
11f push special

Flow Control

200 jump
201 jump if false
203 return
204 run function

System Operations

300 load model
302 set player entity
303 set active entity movespeed
304 set active entity direction & facing
305 set wait frames
306 wait?
307 set control lock
308 set active entity mesh coordinates
309 set active entity coordinates in mesh
30a set active entity vertical speed
30b set active entity y offset
30c enter vehicle?
30d stop entity
30e active entity play animation
310 set active point
311 set point mesh coordinates
312 set point coordinates in mesh
313 set point terrain BGR
314 set point dropoff parameters
315 set point sky top BGR
316 set point sky bottom BGR
317 trigger battle
318 enter field scene
319 set map options
31b noop
31c unknown
31d play sound effect
31f set camera rotation speed
320 unknown
321 unknown
324 set window dimensions
325 set window message
326 set window prompt
327 wait for prompt acknowledge?
328 set active entity direction
329 unknown
32a unknown
32b set battle lock
32c set window parameters
32d wait for window ready
32e wait for message acknowledge
32f set player direction
330 set active entity
331 exit vehicle
332 chocobo runs away
333 rotate current entity to model
334 wait for function
336 set active entity movespeed (honor walkmesh)
339 hide active entity model
33a set active entity vertical speed 2
33b fade out?
33c set field entry point?
33d set field entry point2?
33e play music
347 move active entity to entity by model id?
348 fade in?
349 set world progress
34a unknown
34b set chocobo type
34c set submarine color
34d show animation layer
34e hide animation layer
34f set active entity y position
350 set meteor texture on/off
351 set music volume
352 shake camera on/off
353 unknown
354 unknown
355 set battle countdown timer