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

Significance

now_life is the game code's identifier for Link's life energy reservoir.

Syntax

  • zs $filepath -L 1 -- Prints the current value from the file data.
  • zs $filepath -L 1 (int16_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 halfword in MIPS (-32768 <= x <= +32767).

Example Inputs

zs $filepath -L 1 0x030 # Have 3 full hearts of health.
zs $filepath -L 1 0x140 # Have 20 full hearts of health.
zs $filepath -L 1 -0x8000 # Have -2048 full hearts.
zs $filepath -L 1 32767 # Have +2047.9375 hearts.

Notes

One health point in this game seems to be one-sixteenth of a heart, so 16 H.P. = 1 heart, or max_life >> 4 heart containers. Setting 0 to this field seems to result in Link dying instantly after the moment the game is loaded from the save file.

Relevant Bits

file[0x0036:0x0037]15..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