Points of Required Attention™
Smaghetti, a new Super Mario Advance 4 editor, is currently in development! Check out the thread HERE!

Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,313,717
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 03-28-24 06:12 PM
Guest: Register | Login

0 users currently in ROM Hacking | 4 guests

Main - ROM Hacking - Hacking health New thread | New reply


Chaobomr
Posted on 06-15-13 05:49 AM Link | Quote | ID: 154111


Buster Beetle
Banned: Spammer takeover?
Level: 45

Posts: 15/467
EXP: 636506
Next: 23658

Since: 05-07-13
From: The dirty south

Last post: 3451 days
Last view: 3450 days
Is there any way to start the player character (I.E. Link from Legend of Zelda or Samus from Metroid) on full health?

____________________
Sorry for the stupidity. That jerk will be dealt with in the most insane way possible.

puzzledude
Posted on 06-15-13 12:57 PM Link | Quote | ID: 154112


Porcupo
Level: 38

Posts: 259/302
EXP: 370104
Next: 343

Since: 08-16-10

Last post: 2245 days
Last view: 2245 days
Yes, there is. Every game is specific. This is editable in hex, using the hex editor. Usually there is one byte or two bytes, which control the health. In A link to the past, there are two bytes at around 27000. Value is 18 18 = 3 hearts. 20 20 = start with 4 hearts, 28 28 = start with 5 hearts etc. So just need to calculate what value for 20 hearts. Collecting heart pieces or containers is NOP automatically.

You can actually control the entire starting srm. Nintendo made a custom sequence of bytes for Alttp, which starts the game with practically all items and 15 hearts. So you can also make Super Metroid start the game with high jump boots for instance. This is one byte only. Default is 00, edit is 01.

Complex values. Start the game with 444 rupees. This needs two bytes, to determine the value. Or values 00 to 07 = bottle (empty, with fairy, green, blue, red potion, bee) etc. So when you find the starting "srm" values, everything is possible. These values usually stand together cronologically. For instance in Alttp: once you find the bow, it follows as in the inventory, boomerang, hookshot etc, eventually comming to magic and health.

Chaobomr
Posted on 06-15-13 03:50 PM Link | Quote | ID: 154115


Buster Beetle
Banned: Spammer takeover?
Level: 45

Posts: 16/467
EXP: 636506
Next: 23658

Since: 05-07-13
From: The dirty south

Last post: 3451 days
Last view: 3450 days
I was actually referring to the original NES games. Using the SNES references works. I just don't know how to hack into the SRAM

____________________
Sorry for the stupidity. That jerk will be dealt with in the most insane way possible.

infidelity
Posted on 06-15-13 06:56 PM Link | Quote | ID: 154116


Fuzz Ball
Level: 66

Posts: 366/968
EXP: 2362559
Next: 99292

Since: 05-24-07

Last post: 930 days
Last view: 786 days
Links health is somewhere in the $600 area within ram. If you start a new player, look for either 22FF or 23FF, I forget.

Chaobomr
Posted on 06-17-13 01:50 AM Link | Quote | ID: 154119


Buster Beetle
Banned: Spammer takeover?
Level: 45

Posts: 17/467
EXP: 636506
Next: 23658

Since: 05-07-13
From: The dirty south

Last post: 3451 days
Last view: 3450 days
I'm aware that this might be under ASM, but I want to start the characters on full health each time a game is started, whether through password or starting from a save

____________________
Sorry for the stupidity. That jerk will be dealt with in the most insane way possible.

Main - ROM Hacking - Hacking health New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.020 seconds. (339KB of memory used)
MySQL - queries: 57, rows: 81/82, time: 0.016 seconds.