Skip to main content

Common Scripts (PT)

Author(s): AdAstra, 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 - 65535499541Battle Frontier Scratch-Off Corner
10450 - 1048950016Trainer Records
10400 - 10449400203Pokémon Center Roaming Trainers
10200 - 10399407379Poké Mart Mystery Gifts
10150 - 101991116621Jubilife TV Interviewer
10100 - 101491115622TV Broadcasts
10000 - 10099409381HM Field Use
9950 - 9999411383Poké Dex Progress Check
9900 - 9949397213
9800 - 9899212217Contests
9700 - 9799422429NPC Partners
9600 - 9699412213Game Initialization Script
9500 - 9599501547Day-Care
9400 - 9499426432Poffin WiFi
9300 - 9399406374Groups
9200 - 9299423430WiFi Club
9100 - 9199011Mix Battles
9000 - 9099213221Pokémon Center Clubs Info
8970 - 89994257Poké Radar
8950 - 8969498539Vs. Seeker
8900 - 8949424431Chatter Field Use
8800 - 8899497538Safari Train/Game End
8000 - 8799408380Hidden Items
7000 - 7999404369Ground Items
5000 - 69991114213Double Battles
3000 - 49991114213Single Battles
2800 - 2999413397Berry Planting
2500 - 2799117Book Shelves
2000 - 2499211213"Common" scripts
1 - 1999Linked via HeaderLinked via HeaderStandard scripts
0402355Error/dummy script