Note on item codes in {}: People have had difficulty getting these to work properly.
{
Press 2 for 99 of Inventory slot 1-4 (English)
28616540 FEFF0100
42000000 90000000
007E2744 00000063
007E2754 00000063
007E2764 00000063
007E2774 00000063
E0000000 80008000
These seem to work for anything so far.
Press 2 for 99 of Inventory slot 1-4 (Spanish)
28616540 FEFF0100
42000000 90000000
007E23E4 00000063
007E23F4 00000063
007E2404 00000063
007E2414 00000063
E0000000 80008000
Press 2 for 99 of Inventory slot 1-4 (French)
28616540 FEFF0100
42000000 90000000
007E3544 00000063
007E3554 00000063
007E3564 00000063
007E3574 00000063
E0000000 80008000
Press 2 for 99 of Inventory slot 1-4 (German)
28616540 FEFF0100
42000000 90000000
007E45A4 00000063
007E45B4 00000063
007E45C4 00000063
007E45D4 00000063
E0000000 80008000
Press 2 for 99 of Inventory slot 1-4 (Italian)
28616540 FEFF0100
42000000 90000000
007ED4A4 00000063
007ED4B4 00000063
007ED4C4 00000063
007ED4D4 00000063
E0000000 80008000
}
Infinite Item Code
28616540 9F776008
040F47D0 60000000
28616541 9FFE6001
040F47D0 7C002A14
28616541 9FFD6002
040F47D0 7C050050
E2000001 80008000
Press C+Z+Up to nullify using/dumping items, C+Z+Right to renable, and C+Z+Left to change it to add whatever is being subtracted from items. Don't add too much-it will overflow(over 256 for that item).
Press 1 for Infinite SP
28616540 FDFF0200
044D8C68 60000000
E2000001 80008000
Don't use before loading a save.
The asm for hp works for you and your enemies, and I don't exactly know how to scan for the difference.
You need to add endifs to the last two codes. It's potentially why people were having problems with them.
Your infinite item code is structured like so:
if(1 and any other button is pressed)
{
disableItemStuff;
if(2 and any other button is pressed) //only activates if pressing 1 and 2?
{
reEnableItemStuff;
if(1 and 2 and any other button is pressed)
{
MakeItemStuffAdd;
None of the if's are closed so any codes after it are also influenced by what they were pressing.
What you want is this:
if(1 and not 2 and any/no other button is pressed)
{
disableItemStuff;
}
if(2 and not 1 and any/no other button is pressed)
{
reEnableItemStuff;
}
if(1 and 2 and any/no other button is pressed)
{
MakeItemStuffAdd;
}
In the codetype doc it says 28_____1 for endif then if. So this is what your code will look like:
Infinite Item Code [OneUp]
28616540 F
CFF0200
040F47D0 60000000
2861654
1 F
CFF0100
040F47D0 7C050050
2861654
1 FCFF0300
040F47D0 7C002A14
E2000001 80008000Press 1 for infinite hp just needs the E2000001 80008000 line on the end.
For the ASM, do a breakpoint execute on 804D8C68, when this executes for your health one of the registers will have a value in it that is unique for you. (probably have a 1) When that is executing for an enemy, that register will have a different value. So you can use the C2 codetype to insert asm that checks if it's executing for you. If it is, do nothing, if it's not for you, make it do whatever it normally does.