Skip to main content

Common Scripts (Diamond/Pearl)

Author(s): Lmaokai


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
-?481Trainer Records
10200 - 10399373332Poké Mart Mystery Gifts
10150 - 101991042562Jubilife TV Interviewer
10100 - 101491041563TV Broadcasts
10000 - 10099375334HM Field Use
9950 - 9999376335Poké Dex Progress Check
-??
9800 - 9899206203Contests
9700 - 9799387378NPC Partners
-377-Game Initialization Script
9500 - 9599464492Day-Care
9400 - 9499391381Poffin WiFi
9300 - 93993723Groups
9200 - 9299388379WiFi Club
9100 - 919909Mix Battles
9000 - 9099207207Pokémon Center Clubs Info
8970 - 89993907Poké Radar
8950 - 8969463486Vs. Seeker
8900 - 8949389380Chatter Field Use
8800 - 8899462485Safari Train/Game End
8000 - 8799374333Hidden Items
7000 - 7999370325Ground Items
5000 - 69991040558Double Battles
3000 - 49991040558Single Battles
2800 - 2999378350Berry Planting
2500 - 2799113Book Shelves
2000 - 2499205199"Common" Scripts
1 - 1999Linked via HeaderLinked via HeaderStandard Scripts
0??Error/dummy script