User:TimoVM/TM codes

From Glitch City Wiki
Jump to navigation Jump to search

This page serves as a repository for a list of modular TM codes for use in Gold/Silver. These consists of two segments:

  • Write a small program using the quantities of TM01 through TM18 that either runs a modular code or, when holding select while activating ACE, resets the quantities of TM19 through TM50 to x255.
  • Write out a modular code in the quantities of TM19 onward and run it using the first program.

This page assumes that you have previously set the quantiities of all TMs to x255 and have a way to redirect execution to the TM/HM pocket.

Setup

  • Sell the following TMs until you reach the following final quantities:
TM Final quantity Amount sold for
TM01 33 3300000
TM02 144 111000
TM03 213 63000
TM04 240 15000
TM05 170 42500
TM06 203 78000
TM07 71 184000
TM08 202 26500
TM09 72 91500
TM10 39 324000
TM11 01 254000
TM12 32 127500
TM13 00 127500
TM14 62 289500
TM15 255 0
TM16 195 90000
TM17 76 268500
TM18 49 206000

Do not execute the ACE item yet!! This code only works properly when combined with one of the modular codes from the next section.

This code has two main functions:

  • By using the ACE item normally, the game will set up everything necessary to execute a set of script commands. When you close the start menu and return to the overworld, the game will execute script commands from the quantities of TM19 onward.
  • By using the ACE item while holding SELECT, the code immediately resets the quantities of TM19 through TM50. This erases the current modular code, allowing you to write a new modular code.

Please note that there are a few things to look out for:

  • Do NOT execute the setup without having written a modular code from the quantities of TM19 onward. Doing this will cause the game to freeze.
  • In a similar vein, do NOT reset the modular code if you have already queued up a script to execute after closing the start menu. Doing this will cause the game to freeze.
  • Ensure to properly read usage note for every modular code.

List of modular codes

Here you can find a list of modular codes to be used in combination with the above setup to execute a specific effect.

Better ACE environment (and fixing effects of earlier glitches)

This single use code adds a wrong pocket TM33 to your key item pack, along with installing everything so that using this TM33 will execute the setup code and modular code.

This means that you will no longer need specific pokémon in the first and second party slot to use ACE.

the non-EN version of this code also fixes the effect that duplicate key item swap has on the key item pocket along with removing the last party pokémon. This allows you to safely remove the glitch pokémon you got while obtaining duplicate key items.

With the exception of the quantities of TM43 through TM47, both the EN version of the code and the non-EN version of the code are exactly the same.

TM EN: final quantity EN: amount sold for non-EN: final quantity non-EN: amount sold for
TM19 14 361500
TM20 00 382500
TM21 149 53000
TM22 213 63000
TM23 144 166500
TM24 46 313500
TM25 173 82000
TM26 17 357000
TM27 24 115500
TM28 212 43000
TM29 14 241000
TM30 03 378000
TM31 205 75000
TM32 26 229000
TM33 49 309000
TM34 46 104500
TM35 225 15000
TM36 52 101500
TM37 125 130000
TM38 78 177000
TM39 09 246000
TM40 34 110500
TM41 54 301500
TM42 255 0
TM43 33 111000 201 81000
TM44 34 331500 255 0
TM45 218 55500 255 0
TM46 53 303000 255 0
TM47 201 81000 255 0
TM48 195 90000
TM49 126 193500
TM50 213 42000

Usage notes

  • This code is intended to only be used once.
  • For non-EN versions, ensure that you put the glitch pokémon in the bottommost party slot.
  • For non-EN versions, ensure you have at least two pokémon in your party.

Get any item

This code, when executed, will add a certain quantity of a certain item to the correct item pocket.

TM Final quantity Amount sold for
TM19 31 336000
TM20 XX item ID
TM21 YY item quantity
TM22 144 166500

Usage notes

  • The quantities of TM20 and TM21 need to be filled in yourself. You can find item IDs in the The Big HEX List big hex list]]. Some interesting values to get started:
Item ID Final quantity Amount sold for
Master Ball 01 381000
Rare Candy 32 334500
Exp. Share 57 297000
Lucky Egg 126 193500
  • Do NOT use this code to obtain TMs. There is another modular code a bit further in that allows you to directly edit the moves of a pokémon.
  • Please ensure that you have enough space in your item packs to actually be able to add them.

Encounter shiny wild pokémon of XX species at YY level

This code, when executed, will trigger a wild encounter with a shiny wild pokémon of a specific species at a specific level.

TM Final quantity Amount sold for
TM19 92 244500
TM20 XX pokémon species
TM21 YY pokémon level
TM22 30 337500
TM23 03 378000
TM24 07 372000
TM25 94 161000
TM26 95 240000
TM27 144 55500

Usage notes

  • The encounter triggers immediately after exiting the start menu. Please note that you cannot run from this encounter.
  • The DVs of the encountered wild pokémon will always be 14/10/10/10. There is another modular code further on that allows you to edit the DVs of your party pokémon to another value if desired.
  • The value of TM20 corresponds to the pokémon's species and is directly related to the pokédex number. e.g. a quantity of 152 will result in an encounter with Chikorita.
  • The value of TM21 corresponds to the pokémon's level. e.g. a quantity of 5 will result in an encounter with a lvl 5 pokémon. It is recommended to set this quantity to 100 or less.

Encounter wild pokémon of XX species at YY level

This code, when executed, will trigger a wild encounter with a wild pokémon of a specific species at a specific level.

TM Final quantity Amount sold for
TM19 92 244500
TM20 XX pokémon species
TM21 YY pokémon level
TM22 94 161000
TM23 95 240000
TM24 144 55500

Usage notes

  • The encounter triggers immediately after exiting the start menu. Please note that you cannot run from this encounter.
  • The DVs of the encountered wild pokémon will be random. There is another modular code further on that allows you to edit the DVs of your party pokémon to another value if desired.
  • The value of TM20 corresponds to the pokémon's species and is directly related to the pokédex number. e.g. a quantity of 152 will result in an encounter with Chikorita.
  • The value of TM21 corresponds to the pokémon's level. e.g. a quantity of 5 will result in an encounter with a lvl 5 pokémon. It is recommended to set this quantity to 100 or less.