Skip to main content

Common Scripts (HGSS)

Author(s): Mikelan, Eternity, MrHam88 (reformat for Wiki)


How to Use

Common scripts are used in Generation IV Pokemon games to repeatedly call scripted behaviour from "local" script files. Although they are referred to (using DSPRE's scripting nomenclature) using common script IDs, they are simple scripts within script files. One difficulty with working with them, is that these script files do not have a header to easily find the associated Text Archive.

This mapping table allows quick lookup of the Common Script ID, to find the script being used (in a given Script File), and the texts that may be invoked (from a given Text Archive).


Common Script Mapping

Common Script ID RangeScript FileText ArchiveNotes
10490 - 65535263433Scratch cards (Battle Frontier)
10450 - 1048926419VS Recorder (Battle Frontier)
10440 - 104492748Move tutors (Frontier Access)
10400 - 10439151246Bug contests
10350 - 10399952726Viridian trainer house
10300 - 10349734444
10200 - 10299144209Mystery gifts, mom's savings deliveries
10150 - 10199955732TV broadcasts
10100 - 10149954733
10000 - 10099146211Field moves (Hidden Machines, HMs)
9950 - 9999148666Pokédex evaluation (Professor Oak)
9900 - 994913640
9850 - 9899167312Pokéathlon
9800 - 984916643
9700 - 9799163266Following Pokémon interaction
9600 - 969914940Game initialization
9500 - 9599265439Day-Care
9300 - 9499143204Union Groups
9200 - 9299164267Wi-Fi Club
9100 - 9199014Colosseum
9000 - 9099446Communication Club
8900 - 8999165268Chatot
8800 - 8899262427Safari Game
8000 - 8799145210Hidden Items
7000 - 7999141199Ground Items
5000 - 699995340Trainer battles (Doubles)
3000 - 499995340Trainer battles
2800 - 299915023Apricorn trees
2500 - 2799120Bookshelves
2000 - 2499340Pokémon Center, Save Menu, PC, Whiteout, Fishing, Sweet Scent, Bike, Egg Hatching, Special Pokémon form changes
1 - 1999Linked via HeaderLinked via Header
0??