Common Scripts (PT)
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 Range | Script File | Text Archive | Notes |
|---|---|---|---|
10490 - 65535 | 499 | 541 | Battle Frontier Scratch-Off Corner |
10450 - 10489 | 500 | 16 | Trainer Records |
10400 - 10449 | 400 | 203 | Pokémon Center Roaming Trainers |
10200 - 10399 | 407 | 379 | Poké Mart Mystery Gifts |
10150 - 10199 | 1116 | 621 | Jubilife TV Interviewer |
10100 - 10149 | 1115 | 622 | TV Broadcasts |
10000 - 10099 | 409 | 381 | HM Field Use |
9950 - 9999 | 411 | 383 | Poké Dex Progress Check |
9900 - 9949 | 397 | 213 | |
9800 - 9899 | 212 | 217 | Contests |
9700 - 9799 | 422 | 429 | NPC Partners |
9600 - 9699 | 412 | 213 | Game Initialization Script |
9500 - 9599 | 501 | 547 | Day-Care |
9400 - 9499 | 426 | 432 | Poffin WiFi |
9300 - 9399 | 406 | 374 | Groups |
9200 - 9299 | 423 | 430 | WiFi Club |
9100 - 9199 | 0 | 11 | Mix Battles |
9000 - 9099 | 213 | 221 | Pokémon Center Clubs Info |
8970 - 8999 | 425 | 7 | Poké Radar |
8950 - 8969 | 498 | 539 | Vs. Seeker |
8900 - 8949 | 424 | 431 | Chatter Field Use |
8800 - 8899 | 497 | 538 | Safari Train/Game End |
8000 - 8799 | 408 | 380 | Hidden Items |
7000 - 7999 | 404 | 369 | Ground Items |
5000 - 6999 | 1114 | 213 | Double Battles |
3000 - 4999 | 1114 | 213 | Single Battles |
2800 - 2999 | 413 | 397 | Berry Planting |
2500 - 2799 | 1 | 17 | Book Shelves |
2000 - 2499 | 211 | 213 | "Common" scripts |
1 - 1999 | Linked via Header | Linked via Header | Standard scripts |
0 | 402 | 355 | Error/dummy script |