Guides:SRAM Glitch ACE Setups (EN): Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
Tags: Mobile edit Mobile web edit |
|||
Line 299: | Line 299: | ||
F6 80 12 13 C9</pre> |
F6 80 12 13 C9</pre> |
||
|} |
|} |
||
====Altering the PokéGiver script so that it is kept after battle==== |
|||
By executing the following two nickname codes, you can ensure that you can keep using the PokéGiver script even after engaging in trainer battles. |
|||
First, execute the following code: |
|||
{| class="wikitable" |
|||
|+ Codes to be used with [https://scotteh.me/ace/nick Scotteh's mail code tool] |
|||
|- |
|||
| <pre>21 42 0A 74 65 |
|||
75 01 FF 00 11 |
|||
53 BA 21 B1 D8 |
|||
C3 B5 00 00 00</pre> |
|||
|} |
|||
Using this code will store a copy of the PokéGiver script in an unused area of memory, located in sram bank 02 at $BA53 (right after box #5). |
|||
Next, execute the following code: |
|||
{| class="wikitable" |
|||
|+ Codes to be used with [https://scotteh.me/ace/nick Scotteh's mail code tool] |
|||
|- |
|||
| <pre>0E 12 11 47 DA |
|||
21 A7 D8 C3 B5 |
|||
00 21 42 0A 74 |
|||
65 75 01 FF 00 |
|||
11 B1 D8 D5 21 |
|||
53 BA C3 B5 00</pre> |
|||
|} |
|||
This code will alter the bootstrap of -g m such that, when it is used, it will look up the copy of the PokéGiver script and once more copy it over to $D8B1, in the middle of enemy trainer data, where it will immediately be executed. |
|||
Please make sure to not use -g m during trainer battles, as it will overwrite buffered trainer data leading to unintended side effects. |
|||
===Changing the gender of pokémon given by the PokéGiver script=== |
===Changing the gender of pokémon given by the PokéGiver script=== |