Global Scripts (HeartGold/SoulSilver)
How to Use
Global 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 Global Script IDs, they are scripts within various 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 Global 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).
Global Script Mapping
| Global Script ID Range | Script File | Text Archive | Notes |
|---|---|---|---|
10490 - 65535 | 263 | 433 | Scratch cards (Battle Frontier) |
10450 - 10489 | 264 | 19 | VS Recorder (Battle Frontier) |
10440 - 10449 | 2 | 748 | Move tutors (Frontier Access) |
10400 - 10439 | 151 | 246 | Bug contests |
10350 - 10399 | 952 | 726 | Viridian trainer house |
10300 - 10349 | 734 | 444 | |
10200 - 10299 | 144 | 209 | Mystery gifts, mom's savings deliveries |
10150 - 10199 | 955 | 732 | TV broadcasts |
10100 - 10149 | 954 | 733 | |
10000 - 10099 | 146 | 211 | Field moves (Hidden Machines, HMs) |
9950 - 9999 | 148 | 666 | Pokédex evaluation (Professor Oak) |
9900 - 9949 | 136 | 40 | |
9850 - 9899 | 167 | 312 | Pokéathlon |
9800 - 9849 | 166 | 43 | |
9700 - 9799 | 163 | 266 | Following Pokémon interaction |
9600 - 9699 | 149 | 40 | Game initialization |
9500 - 9599 | 265 | 439 | Day-Care |
9300 - 9499 | 143 | 204 | Union Groups |
9200 - 9299 | 164 | 267 | Wi-Fi Club |
9100 - 9199 | 0 | 14 | Colosseum |
9000 - 9099 | 4 | 46 | Communication Club |
8900 - 8999 | 165 | 268 | Chatot |
8800 - 8899 | 262 | 427 | Safari Game |
8000 - 8799 | 145 | 210 | Hidden Items |
7000 - 7999 | 141 | 199 | Ground Items |
5000 - 6999 | 953 | 40 | Trainer battles (Doubles) |
3000 - 4999 | 953 | 40 | Trainer battles |
2800 - 2999 | 150 | 23 | Apricorn trees |
2500 - 2799 | 1 | 20 | Bookshelves |
2000 - 2499 | 3 | 40 | Pokémon Center, Save Menu, PC, Whiteout, Fishing, Sweet Scent, Bike, Egg Hatching, Special Pokémon form changes |
1 - 1999 | Linked via Header | Linked via Header | |
0 | ? | ? |