Jump to content

ZZAZZ glitch: Difference between revisions

>Torchickens
No edit summary
>Torchickens
Line 19:
In Pokémon Red/Blue/Yellow, money is stored so that a hexadecimal value represents a decimal value, which is related to why the ZZAZZ glitch writes 99 (normally dec:153) to things.
 
Upon encountering a ZZAZZ glitch Trainer, its base money payout will be multiplied by the level of the last Pokémon and the result (the prize money) capped at "009999" will be stored at D079 (D078 in Yellow), capped at "009999".
 
Multiplication in the winning money calculation is implemented as a consecutive addition (like 3*4 is 3+3+3+3), but a glitch occurs when the money caps at 9999. Every time the game resets the payout back to 9999, the game moves the payout money pointer 3 bytes forward, so the game keeps writing hex:9999 to memory addresses located past the winning money bytes.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.