Hello!
I'm trying to wrap my head around creating cheats in Atmosphere, but I don't understand it fully how some commands are supposed to work.
This is a simple cheat in Pokémon Sword that will add a Master Ball to the first Poké Ball bag slot, and an Ultra ball to the second slot:
The item values and quantity are 01F38001 and 01F38002, and the memory regions for the bag slots are 45067B88 and 45067B8C (which is shifted 4 bytes from the first address).
I wanted to see if I could add the starting address to a register, and then just offset 4 bytes with each new item, but it doesn't seem to work:
Can someone help me or maybe point me to a tutorial?
I'm trying to wrap my head around creating cheats in Atmosphere, but I don't understand it fully how some commands are supposed to work.
This is a simple cheat in Pokémon Sword that will add a Master Ball to the first Poké Ball bag slot, and an Ultra ball to the second slot:
Code:
[Poké Balls x999]
04100000 45067B88 01F38001
04100000 45067B8C 01F38002
The item values and quantity are 01F38001 and 01F38002, and the memory regions for the bag slots are 45067B88 and 45067B8C (which is shifted 4 bytes from the first address).
I wanted to see if I could add the starting address to a register, and then just offset 4 bytes with each new item, but it doesn't seem to work:
Code:
[Poké Balls x999]
580F0000 45067B88
780F0000 00000000
640F0000 00000000 01F38001
780F0000 00000004
640F0000 00000000 01F38002
Can someone help me or maybe point me to a tutorial?







