Skip to content
cxd4 edited this page Oct 23, 2015 · 1 revision

Significance

magic_max is the game code's identifier for Link's magic reservoir.

Syntax

  • zs $filepath -M 0 -- Prints the current value from the file data.
  • zs $filepath -M 0 (int8_t) -- Interprets the extra string parameter as a whole number (any base) and stores the resulting integer to the relevant bits, if said integer falls within the range of values representable by a sign-extended byte in MIPS (-128 <= x <= +127).

Example Inputs

zs $filepath -M 0 0 # Magic power is disabled (new game).
zs $filepath -M 0 1 # Have magic power bar with 48 MP max.
zs $filepath -M 0 99 # same effect as -M 0 1

Notes

Unlike as with the case of magic_now, there seems to be no flexibility in giving Link's maximum magic points reservoir a precise limit. The game just sets this field to 0 before Link has obtained the ability to use any magic at all and to 1 once magic power has become available. Doubling the magic power limit (as done through the upgrade in returning all Snowhead Temple fairies) seems to write to a separate field, magic_ability, which is used to remember this upgrade.

Relevant Bits

file[0x0038]7..0

Derived Cheat Codes

GameShark ROM Version
JAP (1.0)
JAP (1.1)
JAP (GC)
USA (preview)
USA
USA (GC)
EUR (1.0)
EUR (1.1)
EUR (GC)
EUR (debug)
Clone this wiki locally