ff3:ff3us:doc:asm:codes:overworld_vehicle_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ff3:ff3us:doc:asm:codes:overworld_vehicle_script [2016/04/03 08:54]
m06 created
ff3:ff3us:doc:asm:codes:overworld_vehicle_script [2019/02/12 10:00]
Line 1: Line 1:
-===== Overworld Vehicle Script Commands ===== 
  
-<code> 
- 
-Movement (00-7F): 
-  0dulrf?t nnnnnnnn 
-  |||||||| ________ 
-  ||||||||     |_____ number of units to move/turn 
-  |||||||| 
-  ||||||||___________ t: double speed of turns 
-  |||||||____________ ?: ?? 
-  ||||||_____________ f: move forward (0xFF + 0xFF + 0x08 [518] units = 1 full revolution) 
-  |||||______________ r: turn right (0xAB [171] units = 1 full rotation) 
-  ||||_______________ l: turn left (0xAB [171] units = 1 full rotation) 
-  |||________________ u: go up 
-  ||_________________ d: go down 
-  |__________________ always 0 
- 
-Conditionals (B0-BF): 
-  ci: sbbbbbbb bbbbbiii 
-      _ ___________ ___ 
-      |      |       |__ i: bit index (0-7) 
-      |      |__________ b: byte (added to $1E80) 
-      |_________________ s: if 1, check that bit is set; else, check that bit is clear 
- 
-Summary: 
-B0 c1 aaaaaa                        if(c1), goto aaaaaa 
-B1 c1 c2 aaaaaa                     if(c1 || c2), goto aaaaaa 
-B2 c1 c2 c3 aaaaaa                  if(c1 || c2 || c3), goto aaaaaa 
-B3 c1 c2 c3 c4 aaaaaa               if(c1 || c2 || c3 || c4), goto aaaaaa 
-B4 c1 c2 c3 c4 c5 aaaaaa            if(c1 || c2 || c3 || c4 || c5), goto aaaaaa 
-B5 c1 c2 c3 c4 c5 c6 aaaaaa         if(c1 || c2 || c3 || c4 || c5 || c6), goto aaaaaa 
-B6 c1 c2 c3 c4 c5 c6 c7 aaaaaa      if(c1 || c2 || c3 || c4 || c5 || c6 || c7), goto aaaaaa 
-B7 c1 c2 c3 c4 c5 c6 c7 c8 aaaaaa   if(c1 || c2 || c3 || c4 || c5 || c6 || c7 || c8), goto aaaaaa 
-B8 c1 aaaaaa                        if(c1), goto aaaaaa 
-B9 c1 c2 aaaaaa                     if(c1 && c2), goto aaaaaa 
-BA c1 c2 c3 aaaaaa                  if(c1 && c2 && c3), goto aaaaaa 
-BB c1 c2 c3 c4 aaaaaa               if(c1 && c2 && c3 && c4), goto aaaaaa 
-BC c1 c2 c3 c4 c5 aaaaaa            if(c1 && c2 && c3 && c4 && c5), goto aaaaaa 
-BD c1 c2 c3 c4 c5 c6 aaaaaa         if(c1 && c2 && c3 && c4 && c5 && c6), goto aaaaaa 
-BE c1 c2 c3 c4 c5 c6 c7 aaaaaa      if(c1 && c2 && c3 && c4 && c5 && c6 && c7), goto aaaaaa 
-BF c1 c2 c3 c4 c5 c6 c7 c8 aaaaaa   if(c1 && c2 && c3 && c4 && c5 && c6 && c7 && c8), goto aaaaaa 
- 
-C0 xx                   $EE71FB 
-C1 xx yy                $EE7209 
-C2 xx yy                $EE721C 
-C3 xx yy                $EE722F 
-C4 xx yy                $EE7242 
-C5 xx yy                $EE7255     Set altitude to yy (xx?) 
-C6 xx yy                $EE7268     Go forward  
-C7 xx yy                $EE727B 
- 
-Bit manipulation (C8-C9): 
-  bbbbbbbb bbbbbiii 
-   ____________ ___ 
-               |__ i: bit index (0-7) 
-         |__________ b: byte (added to $1E80) 
- 
-C8 xxxx                 $EE7292     Set event bit 
-C9 xxxx                 $EE72BB     Clear event bit 
- 
-CA xx bb                $EE72EA     Battle enemy set xx, background image bb 
-D0                      $EE732F     Show vehicle 
-D1                      $EE733A     Hide vehicle 
-D2 nnnn xx yy mm        $EE7345     Load map nnnn, position (xx, yy), mode mm 
-D3 nnnn xx yy mm        $EE73A2     Load map nnnn, position (xx, yy), mode mm 
-D8                      $EE7402     Unfade screen 
-D9                      $EE740B     Fade screen 
-DA                      $EE7412     Show flashing arrows indicating the direction you're turning 
-DB                      $EE7423 
-DC                      $EE742E 
-DD                      $EE7439     Hide mini-map 
-DE xx yy                $EE744E      
-DF                      $EE7461     Show mini-map 
-E0 xx                   $EE7473     Pause for xx units 
-E1-F2                   $EE74A4                       
-F3                      $EE74B0     Show part of world getting zapped 
-F4                      $EE74C4     Change graphic to Falcon 
-F5                      $EE753D     Show part of world getting zapped 
-F6                      $EE7551 
-F7                      $EE755D     Change graphic to pidgeon 
-F8                      $EE7568     Show part of world getting blown up 
-F9                      $EE7574 
-FA                      $EE7580 
-FB                      $EE758C     Show Airship smoking 
-FC                      $EE759B     Show Airship crashing 
-FD                      $EE75AF     Change graphic to Esper Terra 
-FE                      $EE75BA     Show Airship headed for Vector 
-FF                      $EE75C8     End map script 
-</code> 
  • ff3/ff3us/doc/asm/codes/overworld_vehicle_script.txt
  • Last modified: 5 years ago
  • (external edit)