Map Interaction Items

From Terranigma Wiki
Revision as of 17:22, 2 October 2018 by Nethraz (talk | contribs) (Description of currents)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Several items (Rock Spear, Turbo Boots, Magic Anchor, ...) interact with the map and thereby open new paths.

Relevant Offsets are listed in the following table:

Name Pointer: EN JP
Currents Control Script 91BD9E 91B6F7
Currents Table 91BE17 91B770

Currents (Magic Anchor)

The Currents Control Script operates the currents on any map it is paced on. It checks the Currents Table, which is shared for all maps, to decide if and where to apply currents. Currents can be avoided if the player has the Magic Anchor (item 0x49) in his inventory, in which case the script does nothing.

Currents Table

Offset Length Description
0 2 Map ID (the current entry only applies to that map)
2 2 region left
4 2 region top
6 2 region right
8 2 region bottom
10 2 forced X-movement
12 2 forced Y-movement