ff3:ff3us:doc:asm:fmt:warp

Differences

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

Link to this comparison view

Next revision
Previous revision
ff3:ff3us:doc:asm:fmt:warp [2016/03/03 11:24]
hatzen08 created
ff3:ff3us:doc:asm:fmt:warp [2019/02/12 10:29] (current)
Line 1: Line 1:
-====== Warp Triggers ======+====== Location Exits ====== 
 +aka. Warp Triggers, Entrance Triggers
  
 ===== Overview ===== ===== Overview =====
  
-When the player steps in a specific coordinate in the map, he is transported in a new map with new coordinates.+When the player steps in a specific coordinate on the map, he is transported to a new map with new coordinates.
  
 ===== Offsets ===== ===== Offsets =====
  
-^  Description          ^  Value    +^ Exits (short)                     ^^ 
-Base offset (SNES   |  $DFBB00 +^  Description          ^  Value     
-| Block size            |  $02      +Pointers (16-bit    |  $DFBB00   | 
-Number of blocks      |  $01A0    +| Nr of Pointers (bytes) |  $0201 ($0402)  
-Total size            |  $0340    |+| Data Address          |  $DFBF02   
 +| Block size            |  $06       | 
 + 
 +^ Exits (long)                      ^^ 
 +^  Description          ^  Value     ^ 
 +Pointers (16-bit)      $EDF480   | 
 +| Nr of Pointers (bytes) |  $0201 ($0402)  
 +Data Address          |  $EDF882   | 
 +| Block size            |  $07       |
  
 The structure is a sequence of two-byte pointers. The index of the pointer is relative to the map number. The structure is a sequence of two-byte pointers. The index of the pointer is relative to the map number.
  
-The actual offset of the appointed data is the pointer value plus the base offset.+The actual offset of the appointed data is the pointer value plus the pointer offset.
  
 The game system checks the actual pointer and the next pointer to determinate the amount of data to read. It can include multiple data blocks. The game system checks the actual pointer and the next pointer to determinate the amount of data to read. It can include multiple data blocks.
Line 21: Line 30:
 ===== Data ===== ===== Data =====
  
-^  Offset    Mask     Description               +^ Exits (short)                                   ^^^ 
-|  $00      |  $FF      | x position, actual map    +^  Offset   Description                          ^^ 
-|  $01      |  $FF      | y position, actual map    +|  $00      | position, actual map               |
-|  $02       $FF      | new map, low byte         |+|  $01      | position, actual map               |
 +|  $02      | new map, low byte                    ||
 |  $03      |  $01      | new map, high bit         | |  $03      |  $01      | new map, high bit         |
-|  :::      |  $02      | ?                         +|  :::      |  $02      | refresh parent map (from world map) 
-|  :::      |  $04      | ?                         |+|  :::      |  $04      | enter on low Z-level?                         |
 |  :::      |  $08      | display location name     | |  :::      |  $08      | display location name     |
 |  :::      |  $30      | direction facing          | |  :::      |  $30      | direction facing          |
 |  :::      |  $40      | ?                         | |  :::      |  $40      | ?                         |
 |  :::      |  $80      | ?                         | |  :::      |  $80      | ?                         |
-|  $04      |  $FF      position, new map       | +|  $04      | X position, new map                  || 
-|  $05      |  $FF      position, new map       |+|  $05      position, new map                  || 
 + 
 +^ Exits (long)                                    ^^^ 
 +^  Offset   ^ Description                          ^^ 
 +|  $00      | X position, actual map               || 
 +|  $01      | Y position, actual map               || 
 +|  $02      |  $7F      | Spread Size               | 
 +|  :::      |  $80      | Horizontal/Vertical       
 +|  $03      | new map, low byte                    || 
 +|  $04      |  $01      | new map, high bit         | 
 +|  :::      |  $02      | refresh parent map (from world map) | 
 +|  :::      |  $04      | enter on low Z-level?                         | 
 +|  :::      |  $08      | display location name     | 
 +|  :::      |  $30      | direction facing          | 
 +|  :::      |  $40      | ?                         | 
 +|  :::      |  $80      | ?                         
 +|  $05      | X position, new map                  || 
 +|  $06      position, new map                  |
  
 ===== Notes ===== ===== Notes =====
  • ff3/ff3us/doc/asm/fmt/warp.1457004246.txt.gz
  • Last modified: 5 years ago
  • (external edit)