DPP Script Commands: Difference between revisions

From ProjectPokemon Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 182: Line 182:
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0036
|0036
|XXXX YYYY ZZQQ
|XXXX YYYY ZZZZ
|Call textbox with text XXXX, type YYYY, picture ZZ, QQ not zero makes picture box transparent.
|Call Message Box with text XXXX, type YYYY. Saving calling result on ZZZZ.
|   
|   
|Callmsgbox
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0037  
|0037  
|XX YYYY   
|XX YYYY   
|Color Text Box
|Set color XX of Message Box
|   
|   
|Colormsgbox
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|     
|     
|00 0000 
|00  
|Brown
|Brown
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|     
|     
|01 0000
|01  
|Green
|Green
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|
|
|02 0000  
|02   
|     
|     
|
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|   
|   
|03 0000
|03  
|Grey
|Grey
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|
|
|04 0000    
|04   
|Blacked Out
|Blacked Out
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0038  
|0038  
|XX   
|XX   
|Type XX textbox
|Set type of Message Box
|   
|   
|Typemsgbox
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|   
|   
Line 230: Line 226:
|0039
|0039
|
|
|No Map in text box
|No Map in Message Box
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|003A  
|003A  
|XX   
|XX YYYY    
|Call Color/Map Textbox with text ID XX
|Call Message Box with text ID XX. Saving calling result on YYYY
|   
|   
|Callmsgboxtext
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|003B
|003B
|80XX    
|XXXX    
|
|
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
Line 246: Line 241:
|Open Menu
|Open Menu
|   
|   
|Menu
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|003E
|003E
|80XX
|XXXX
|Bring up yes/no box
|Show Yes/No Box. Saving choice on XXXX
|   
|   
|Yesnobox
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|003F  
|003F  
Line 258: Line 251:
|Wait for XXXX, then continue.
|Wait for XXXX, then continue.
|   
|   
|Waitfor
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0040  
|0040  
|00 XX YY ZZ WW 80TT
|XX YY ZZ WW TTTT
|Put up a list of choices for the player to make.(XX=X Coordinates;YY=Y Coordinates;ZZ=Cursor position;WW=Determine if B=Cancel
|Put up a list of choices for the player to make, saving choice on TTTT.(XX = X Screen Coordinates, YY = Y Screen Coordinates; ZZ = Cursor position; WW = Determine if B=Cancel)
|   
|   
|Multi
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0041  
|0041  
|00 XX YY ZZ WW 80TT QQQQ PPPP
|XX YY ZZ WW TTTT
|Apparently similar to 40, but different.
|Put up a list of choices for the player to make, saving choice on TTTT.(XX = X Screen Coordinates, YY = Y Screen Coordinates; ZZ = Cursor position; WW = Determine if B=Cancel)
|  
|  
|Multi2
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0042  
|0042  
|XXXX YYYY
|XXXX YYYY
|After 40 command, select XXXX text and YYYY script link with it
|Set choice entry after previous commands (One for each choice), with Text Id XXXX, and Choice Id YYYY.
|   
|   
|Txrscrmulti
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0044  
|0044  
|00 XX YY ZZ WW 80TT QQQQ PPPP
|XX YY ZZ WW TTTT
|The same as 40, I think
|Put up a list of choices for the player to make, saving choice on TTTT.(XX = X Screen Coordinates, YY = Y Screen Coordinates; ZZ = Cursor position; WW = Determine if B=Cancel)
|  
|Multi3
|- style="background: #eee;" align="center"  
|- style="background: #eee;" align="center"  
|0045
|0045  
|00 XX YY ZZ WW 80TT QQQQ PPPP
|XX YY ZZ WW TTTT
|The same as 40, I think
|Put up a list of choices for the player to make, saving choice on TTTT.(XX = X Screen Coordinates, YY = Y Screen Coordinates; ZZ = Cursor position; WW = Determine if B=Cancel)
|  
|Multi4
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0046
|0046  
|XXXX YYYY ZZZZ
|XXXX YYYY ZZZZ
|After 40 or 44 command, select XXXX text into box, YYYY text into msgbox, and ZZZZ script link with it
|Similar to 0x42, set choice entry after previous commands (One for each choice), with Text Id XXXX, Message Box Id YYYY, and Choice Id ZZZZ.
|
|
|- style="background: #eee;" align="center"  
|- style="background: #eee;" align="center"  
|0047
|0047

Revision as of 10:15, 1 June 2013

This page will contain the script commands for DPP. Movement commands used in the scripts will also be listed.

Please include an example of which script file the command is used in so we can double check

DPP Script Commands

Hex Value (decimal) Parameters Descriptions Example map Number
0000 No operation
0001 No operation
0002 Finish script
0003 XXXX YYYY Stop script for XXXX millisecond
0011 XXXX YYYY Compare variable XXXX to YYYY
0012 XXXX YYYY Compare variable XXXX to YYYY
0014 XX YY Calls standard function number YY, see DPP Scripting: Standard Functions for values of YY
0015 Exit from standard function
0016 XXXXXXXX Jump at offset XXXXXXXXX (relative to actual position in script file).
001A XXXXXXXX Call routine at offset XXXXXXXX (relative), pushing the calling command position.
001B Kill Script, pop back to calling command
001C XX YYYYYYYY Compare last result to XX if true goto + YYYYYYYY (relative)
001D XX YYYYYYYY Compare Last Result to XX, if true go + YYYYYYYY (relative), pushing the callind command position
001E XXXX Set Flag XXXX.
001F XXXX Clear Flag XXXX.
0020 XXXX Store Flag XXXX status as last result
0022 XXXX
0023 XXXX Disable trainer with XXXX Id, so you cannot rebattle.
0024 XXXX Active trainer with XXXX Id.
0025 XXXX Store trainer XXXX status as last result.
0026 XXXX YYYY Add YYYY to XXXX variable (storing result on XXXX)
0027 XXXX YYYY Substract YYYY to XXXX variable (storing result on XXXX)
0028 XXXX YYYY Set value of variable XXXX to YYYY
0029 XXXX yyyy Set value of variable XXXX to YYYY
002B XX Show Message Box with string XX (corresponding to text id in text file associated with script)
002C XX Show Message Box with string XX (corresponding to text id in text file associated with script)
002D XXXX Show Message Box with string XXXX (corresponding to text id in text file associated with script)
002E XXXX Show Message Box with string XXXX (corresponding to text id in text file associated with script)
002F XX Show Message Box with string XX (corresponding to text id in text file associated with script)
0030
0031 Wait For Button Press (arrows, A, B, X, Y)
0033 Wait for Button Press (A, B)
0034 Close Message after Button Press
0035 Freeze Message Box
0036 XXXX YYYY ZZZZ Call Message Box with text XXXX, type YYYY. Saving calling result on ZZZZ.
0037 XX YYYY Set color XX of Message Box
00 Brown
01 Green
02
03 Grey
04 Blacked Out
0038 XX Set type of Message Box
02 No border
03 With Border
0039 No Map in Message Box
003A XX YYYY Call Message Box with text ID XX. Saving calling result on YYYY
003B XXXX
003C Open Menu
003E XXXX Show Yes/No Box. Saving choice on XXXX
003F XXXX Wait for XXXX, then continue.
0040 XX YY ZZ WW TTTT Put up a list of choices for the player to make, saving choice on TTTT.(XX = X Screen Coordinates, YY = Y Screen Coordinates; ZZ = Cursor position; WW = Determine if B=Cancel)
0041 XX YY ZZ WW TTTT Put up a list of choices for the player to make, saving choice on TTTT.(XX = X Screen Coordinates, YY = Y Screen Coordinates; ZZ = Cursor position; WW = Determine if B=Cancel)
0042 XXXX YYYY Set choice entry after previous commands (One for each choice), with Text Id XXXX, and Choice Id YYYY.
0044 XX YY ZZ WW TTTT Put up a list of choices for the player to make, saving choice on TTTT.(XX = X Screen Coordinates, YY = Y Screen Coordinates; ZZ = Cursor position; WW = Determine if B=Cancel)
0045 XX YY ZZ WW TTTT Put up a list of choices for the player to make, saving choice on TTTT.(XX = X Screen Coordinates, YY = Y Screen Coordinates; ZZ = Cursor position; WW = Determine if B=Cancel)
0046 XXXX YYYY ZZZZ Similar to 0x42, set choice entry after previous commands (One for each choice), with Text Id XXXX, Message Box Id YYYY, and Choice Id ZZZZ.
0047 Close generally 46 multibox CloseMulti4
0048 XX After 42 command, display words in XX column 200
0049 XXXX Play a sound XXXX as fanfare 0 Fanfare
004A XXXX Play a sound XXXX as fanfare Fanfare2
004B XXXX Wait sound XXXX finish WaitFanfare
004C XXXX Plays Pokemon Cry(XXXX=Number Pokemon) 1020 Cryfr
004D Wait Pokemon Cry 1020 WaitCry
004E XXXX Play a sound XXXX Soundfr
004F Return to default music map Fadedef
0050 XXXX Play a XXXX music Playsound
0051 XXXX Stop music Stop
0052 Restart music Restart
0054 XXXX YYYY Switch XXXX music to YYYY music SwitchMusic
0055 XXXX YYYY
005A XXXX YYYY Switch XXXX music to YYYY music SwitchMusic2
005D S=237
005E XXXX YYYY Move person XXXX acording to movement at YYYY + offset XXXX=FF00 for hero. Applymovement
005F Wait Movement Command Waitmovement
0060 Lock All Overword sprite LockAll
0061 Release all Overword sprite Releaseall
0062 XXXX Lock XXXX Overword Lock
0063 XXXX Release XXXX Overword sprite Release
0064 XXXX Add overworld sprite for person event XXXX Addpeople
0065 XXXX Remove overworld sprite for person event XXXX Removepeople
0066 XXXX YYYY Lock camera Lockcam
0068 Face Player Faceplayer
0069 80XX 80YY Check position of hiro and store on 80XX 80YY CheckHiroPosition
006B XXXX YYYY ZZZZ Check position of XXXX person and store onto YYYY-ZZZZ S=370 CheckIdSpritePosition
006C XXXX YYYY Continue Followhero for XXXX people(When change map) Continuefollow
006D XXXX YYYY ZZZZ Followhero for XXXX people Followhero
006E XXXX Stop followhero StopFollowhero
006F XXXX Give XXXX amount of money to player Givemoney
0070 XXXX Take XXXX amount of money from player 124 Takemoney
0071 80XX 80YY ZZZZ Check if possible to give money 80XX, 80YY of them and store if successful in 80ZZ Checkmoney
0072 XXXX YYYY Show money box with XXXX and YYYY coordinates 124 Showmoney
0073 Hide money box 124 Hidemoney
0074 Update money box 124 Updatemoney
0075 XXXX YYYY Show coins box with XXXX and YYYY coordinates Showcoins
0076 Hide coins box Hidecoins
0077 Update coins box 124 Updatecoins
0078 XXXX YYYY ZZZZ Check if is possible to give XXXX coins with YYYY quantity and store into ZZZZ. Checkcoins
0079 XXXX Give XXXX amount of coins to player Givecoins
007A XXXX Take XXXX amount of coins to player Takecoins
007B XXXX YYYY Receive YYYY quantity of XXXX item Giveitem
007C XXXX YYYY Give XXXX quantity of YYYY item Takeitem
007D 80XX 80YY 80ZZ Check if possible to give item 80XX, 80YY of them and store if successful in 80ZZ Checkstoreditem
007E XXXX YYYY 4000 Check if you have a item XXXX with YYYY quantity and store in 4000 8 Checkitem
007F 80XX 80YY S=408
0080 80XX 80YY S=211,408
0083 80XX 80YY 80ZZ S=211
0085 XXXX YYYY ZZZZ Check underground Pc status. CheckUndPcStatus
0087 80XX 80YY 80ZZ S=211
008F 80XX 80YY 80ZZ S=211
0093 XXXX YYYY Check Pokemon Party. CheckPkmnParty
0094 80XX YYYY Store Pokemon Party StorePkmnParty
0095 80XX 80YY Initialize 80XX 80YY for Pokemon Party. SetPkmnPartyStored
0096 80XX YYYY ZZZZ 80WW Give Pokemon stored in 80XX at YYYY level and store in 80WW GivePokemon
0097 XXXX YYYY GiveEgg
0099 80XX YYYY Check if party pokemon 80XX knows move YYYY 458 Checkmove
009A 80XX YYYY Check YYYY place visited and store result in 80XX CheckPlaceStored
009B 80XX 80YY
00A1 Used at end of call screen commands
00A3 Nintendo Wi-fi connection
00A5 Start Interview
00A6 XXXX YYYY ZZZZ Start Wearing Pokemon DressPokemon
00A7 XXXX 80YY Display 80YY dressed Pokemon in XXXX picture DisplayDressedPokemon
00A8 XXXX 80YY Display 80YY contest winner Pokemon in XXXX picture DisplayContestPokemon
00A9 Capsule Editor CapsuleEditor
00AA Open Sinnoh Maps SinnohMaps
00AB XX Box Storage Pokemon (XX Function Box) BoxPkmn
00 Deposite Pokemon
01 Withdraw Pokemon
02 Move Pokemon
03 Move Item
04 Compare Pokemon
00AC Open Draw function into Union Room DrawUnion
00AD Show Trainer Case into Union Room TrainerCaseUnion
00AE Trade into Union Room TradeUnion
00AF Exchange Records into Union Room RecordMixingUnion
00B0 Game Ending EndGame
00B1 Hall of fame memorial HallFameData
00B2 80XX 80YY
00B3 80XX Nintendo Wi-fi Connection
00B4 Choose starter pokemon ChooseStarter
00B5 Close choose starter pokemon BattleStarter
00B6 80XX
00B7 XXXX 80YY
00B8 80XX
00B9 XXXX 80YY
00BA XXXX 80YY Choose player name ChoosePlayerName
00BB XXXX 80YY Choose pokemon nickname ChoosePokmnName
00BC XXXX YYYY ZZZZ WWWW Fadescreen Fadescreen
00BD Resetscreen 50,72 Resetscreen
00BE II II 00 00 XX xx YY yy PP PP Warp to a map(XX: X Coordinates into map. xx=X Coordinates in word map, same for YY.PP=People sprite position) in PPRE 006 0xM 0x0 0xX 0xY 0xZ: M=Map 0=not yet known X=X coordinates Y=Y coordinates Z=Z coordinates 1035 Warp
00BF XXXX Use Rock Climb RockClimbAnimation
00C0 XXXX Use Surf SurfAnimation
00C1 XXXX Use Waterfall WaterfallAnimation
00C2 XXXX Use Fly FlyAnimation
00C4 S=409
00C5 80XX Arrange 80XX for 029E animation 375
00C6 Change to tuxedo
00C7 80XX Check if hero is onto bike and store in 80XX
00C8 XX Set hero XX bike(00=on,01=off) 205
00C9 XX
00CB XXXX
00CD XX Set Text Var XX = Hero 342
00CE XX Set Text Var XX = Rival 342
00CF XX Set Text Var XX = Male\Female alter ego. 342
00D0 XX 80YY Set text var XX to name of pokemon number 80YY 458
00D1 XX 80YY Get the name for item number = value of variable 80YY and store it in text variable XX 72
00D2 XX 80YY S=408
00D3 XX 80YY Get attack corresponding to item number = value of variable 80YY store in text variable XX 72
00D4 XX 0000 Set text var XX to an attack
00D5 XX 0000 Set text var XX to a number
00D6 XX YYYY Set text var XX to a pokemon nickname in team
00D7 XX YYYY Set text var XX to an object?
00D8 XX YYYY Set text var XX to a type of trainer
00D9 XX
00DA XX 40YY ZZZZ WWWW
00DB XX Set text var AA to Starter Hiro
00DC XX Set text var XX to Starter Rival
00DD XX Set text var XX to Starter Alter ego.
00DE 80XX Store Pokemon Starter into 80XX
00DF XX 80YY
00E0 XX 80YY S=211
00E1 XX 80YY S=211
00E2 XX 40YY
00E3 40XX 40YY
00E4 80XX
00E5 XXXX YYYY Start Battle XXXX 50,72
00E6 80XX 80YY End Trainer Battle 80XX 50,72
00E7 80XX 80YY 80ZZ
00E8 80XX 80YY 80ZZ
00E9 80XX
00EA 80XX
00EB Lost battle go to pokemon center. 50,72
00EC 80XX Check if lost battle, store result in variable 80XX 50,72
00ED 80XX
00EE 80XX S=236,400
00EF Repeat Last Battle?
00F2 XXXX 80YY 80ZZ 80WW Open Choose Friend for Wireless Trade screen
00F3 Open Wireless Battle Waiting
00F6 S=213
00F7 Start Pokemon Contest
00F8 XXXX S=212
00F9 XXXX S=212
00FA 80XX 80YY 80ZZ 40WW
00FB 40XX
00FD 80XX YYYY S=212
00FE 80XX YYYY
00FF 80XX YYYY
0102 XX YY
0103 XX YY
0104 XXXX S=212
0106 XXXX S=212
0107 80XX
0108 80XX S=212
0109 80XX
010A XXXX 40YY S=212
010B XXXX 80YY S=212
010C 40XX S=212
010E S=212
0110 80XX 80YY 80ZZ 40WW S=212
0111 XXXX Some Flash into the scene S=212
0112 Stop 0111 command S=212
0113 Fade screen as a curtain S=212
0114 40XX 40YY S=212
0115 80XX 80YY S=212
0116 Show Link Contest Record Box
0117 S=212
0119 80XX S=211
011B XXXX YYYY Set Warp for a Elevator(XXXX=map YYYY=coordinates
011C 40XX Check Floor in a Elevator and Store into 40XX
011E 80XX
0121 80XX S=411
0123 XXXX 80YY S=411
0124 XXXX YYYY ZZZZ Start Wild Battle (XXXX=Pokemon Numeber YYYY=Level ZZZZ=Item)
0125 XXXX YYYY ZZZZ WWWW Starter Battle
0126 First Wild Battle Explanation
0127 XXXX YYYY ZZZZ Honey Tree Battle
0128 80XX S=211
0129 Random Wurmple Battle(Change Level)
012A S=211
012B Show Write Autograph Scene
012C 80XX S=211
012D 80XX YYYY Save Game Data S=205,211,362,372,378,379
012E XXXX 80YY Check if is stored a dressed pokemon picture?
0130 80XX
0131 Give Poketch First time
0132 80XX Check if Poketch is activated and stored into 80XX
0133 XXXX Give Poketch Application XXXX
0134 XXXX 80YY Store Poketch Application XXXX to 80YY
0135 XXXX S=362,372,379
0136 S=362,372,379
0138 80XX
0139 XXXX
013B XXXX
013C XXXX
013F XXXX 80YY
0140 80XX
0141 80XX
0142 XXXX
0146 80XX 80YY
0147 XXXX Show Pokemart with XXXX items
0148 XXXX Show Pokemart 2 with XXXX items
0149 XXXX Show Pokemart 3 with XXXX items
014A AAAA Show Pokemart 4 with AAAA items
014B Player defeated go to Pc
014C XXXX
014D 80XX
014E Player Pokemon are healed
0150 S=213,379,426
0151 S=213,399
0152 XXXX
0153 Player go to Union Room
0155 80XX 80YY
0156 80XX
015B AA 80BB Check if obtained badge AA and store result in variable 0x80BB 50, 72, 411
015C AA Set obtained badge AA to true 50, 72
015D AA Set badge AA to false
0160 80XX S=409
0161 S=427
0162 S=351,427
0164 S=427
0166 40XX S=285,456
0168 XXXX YYYY ZZZZ WWWW 4D
016A 4D
016B 4D
016C 4D
0173 Change solidity of object?
0175 XXXX YYYY ZZZZ
0176 XXXX YYYY
0177 80XX Check Pokemon Party quantity and store into 80XX
0178 Open Berry Pouch
0179 80XX S=413
017A XXXX 80YY S=413
017B XXXX YYYY ZZZZ S=413
017C XX 80YY
017D 80XX S=413
017E 80XX S=413
017F 80XX S=413
0181 80XX S=413
0182 80XX S=413
0183 80XX S=413
0184 XXXX S=413
0185 S=413
0186 XXXX YYYY 80ZZ Move Owerword XXXX, on YYYY-ZZZZ coordinates into map ChangeOwPosition
0188 XXXX YYYY Change Overword XXXX default movement to YYYY movement.
0189 XXXX YYYY Reset attributes for Overworld XXXX
018A XXXX YYYY ZZZZ
018B XXXX YYYY ZZZZ
018C XXXX YYYY S=236
018D Show little clock while save game S=205
018E Hide little clock while save game S=205
018F 80XX S=211
0190 XXXX S=367
0191 Choose Pokemon Menu, store number as last result 458
0192 Choose Pokemon for Battle Tower (everyone banned)
0193 80XX Store Last Result in 80XX, 80XX=00FF means no pokemon was chosen 458
0194 80XX 80YY 80ZZ WWWW Choose Pokemon everyone able
0195 40XX 80YY
0196 80XX Open Pokemon Info
0197 80XX
0198 80XX 80YY Store the pokemon number of party pokemon 80XX, in 80YY If the pokemon is an egg the value is 0000. 458
0199 80XX 80YY
019A 80XX
019B 80XX YYYY S=211,417
019D 80XX
019E XXXX 80YY
019F XXXX
01A3 80XX S=148,277,448
01AB 80XX YYYY S=148
01AC Egg animation 205
01B1 XXXX S=213,370
01B2 XXXX S=213,370
01B3 Open Mailbox
01B4 80XX S=211
01B5 XXXX Open Record List AA
01B6 80XX Check time and stored into 80XX
01B7 80XX YYYY
01B8 80XX YYYY S=417
01B9 80XX 80YY Store happiness of pokemon 80YY into 80XX 458
01BA XXXX 40YY
01BD 80XX
01BF 40XX
01C0 80XX
01C1 80XX 80YY
01C2 80XX
01C3 XXXX YYYY 80ZZ
01C4 XXXX YYYY
01C5 XXXX YYYY
01C6 XXXX Open Battle Moves of Pokemon AA in the party
01C7 80XX Store data move in AA80
01C8 80XX 80YY S=83,458
01C9 XXXX YYYY Delete move chosen in 01C6
01CA 80XX 80YY 80ZZ S=83,458
01CB XXXX YYYY ZZZZ
01CD XXXX 80YY ZZZZ WWWW QQQQ S=409
01CF Variable S=409
01D0 XXXX S=409
01D1 XXXX S=409
01D2 80XX 80YY S=211
01D3 80XX 80YY 80ZZ S=274,479
01D5 80XX S=211
01D6 80XX 80YY S=479
01D7 Open Berry Pouch for Poffin S=426
01D8 80XX S=426
01D9 80XX 80YY Open Battle Room Result
01DA S=367
01DB XXXX YYYY S=367
01DC S=371,372
01DD XXXX 40YY ZZZZ S=371,372,373
01DE 40XX YYYY 80ZZ 80WW S=373
01DF 40XX
01E0 40XX
01E1 XXXX YYYY 80ZZ S=367,372
01E2 XXXX 40YY S=367,372
01E3 XXXX
01E4 80XX S=367
01E5 XXXX S=379
01E8 80XX Check if have completed Sinnoh pokedex and store into 80XX
01E9 80XX Check if have completed National pokedex and store into 80XX
01EA XXXX Show Sinnoh Pokedex Sheet
01EB XXXX Show National Pokedex Sheet
01EC S=456
01ED 80XX S=456
01F1 80XX
01F4 40XX 80YY
01F5 80XX 80YY ZZZZ
01F6 80XX YYYY
01F7 80XX 80YY S=211
01F8 S=368,379,423
01F9 80XX S=211,236,423
01FB 80XX 80YY S=408
01FE XX S=372
01FF XXXX YYYY ZZZZ S=379
0200 40XX
0201 40XX S=211,400,409,423
0202 XXXX S=497
0203 XXXX YYYY 80ZZ QQQQ PPPP S=213
0204 Warp to last elevator
0205 Open Geonet
0206 Great Marsh Bynocule Pokemon
0207 40XX S=213,370,372
0208 XXXX YYYY Show box with Pokemon XXXX sprite
0209 Hide box showed with 0208
020A 80XX S=498
020C S=211
020D XXXX 80YY S=237
020E S=497
020F 80XX YYYY S=497
0210 XXXX 80YY S=497
0211 XX S=497
0212 80XX 80YY
0213 80XX YYYY
0214 80XX
0215 S=274
0216 80XX S=274
0217 40XX 40YY S=274
0218 80XX
021A 80XX
021C XXXX S=282
021D Variable S=406
021F 80XX 80YY
0221 XXXX Remember Move for Pokemon XXXX in the party
0223 80XX
0224 80XX 80YY Teach Pokemon 80XX move 80YY 458
0225 80XX Store check whether 0224 resulted in teaching the new move, if not let 80XX = 00FF 458
0226 XXXX
0228 80XX Check Pokemon for trade and store into 80XX
0229 80XX Trade Pokemon stored into 80XX
022A Stop trade? 458
022C S=476
022D XXXX 80YY 022D 0x1 0x800c gives National Dex. Stores that info in 800c (a commonly used variable that varies from map to map and use to use) 0x2 0x4000 checks to see if the National Dex is acquired. M=422, M=220
022F 80XX 022F 0x8004 stores the amount of Ribbons on current Pokemon party in 0x8004. M=461
0230 80XX 80YY ZZZZ S=461
0231 80XX XXXX S=461
0232 XXXX YYYY
0233 80XX 80YY
0234 40XX S=216,400
0235 Variable
0236 80XX S=408
0237 XXXX 80YY 80ZZ 80WW
0238 XXXX 40YY
0239 XXXX Rules decide in Battle Link
023A 80XX 80YY 80ZZ S=461
023B XXXX Do healing animation in Pokecenter(XXXX=Number of Pokeball)
023C 80XX YYYY
023D XXXX YYYY ZZZZ WWWW Do a XXXX animation for a ship(00=Ship sail under 01=Ship sail up 02=Ship sail left 03=Canalave ship)
023E Variable S=408
0243 XXXX 80YY 80ZZ Show Phrase Box(1 Word)
0244 XXXX 80YY 80ZZ Show Phrase Box(2 Word)
0245 XXXX 80YY
0246 80XX S=236
0247 80XX
0248 80XX 80YY 40ZZ S=450
0249 80XX 80YY 80ZZ 80WW 80PP
024A 80XX
024B Prepare Pc in Pokemon Center for animation 205
024C Do Pc Animation in Pokemon Center(When opening) 205
024D Do Pc Animation in Pokemon Center(When closing) 205
024E 80XX Check Loto ticket number and stored into 80XX 11
024F 80XX 80YY 80ZZ 80WW Compare 80WW loto number with 80XX 80YY 80ZZ. 11
0250 XX YYYY
0251 XX 80YY
0252 80XX
0253 XXXX S=273
0254 80XX S=479
0255 S=479
0256 XXXX 80YY S=479
0257 Exchange Berries for Accessories 999
0258 Change Sprite Position while save game 205
0259 Return to Original Overword Sprite after 0258 command 205
025A 80XX
025B S=330
025C S=330
025D 40XX S=195
025E S=347
0260 XXXX S=211,419
0261 XX YYYY
0263 XXXX
0264 80XX
0267 Start Pokecasino
0268 40XX S=456
0269 XXXX YYYY S=317
026A XXXX YYYY ZZZZ S=282
026B 80XX
026C 80XX
026D XXXX Open Unown Text Box
026E 80XX S=479
0270 XXXX YYYY S=198,281,362,389,485
0271 80XX Open Thank Who? Name Insert S=485
0272 XXXX S=485
0273 XXXX 80YY S=211
0275 80XX
0276 80XX YYYY ZZZZ
0277 80XX S=480
0278 80XX 80YY S=480
027A Show View of League Castle
027C XXXX 80YY S=274
027D 80XX
027E 80XX
027F 80XX
0280 XXXX 80YY ZZZZ WWWW
0281 80XX YYYY 80ZZ
0282 80XX
0283 XXXX
0284 80XX S=321,466,467
0285 XXXX YYYY S=308,309
0286 80XX
0287 80XX
0288 80XX
0289 80XX 80YY 80ZZ 80WW 80PP 80QQ 80TT S=148
028A 80XX
028B XX 40YY Checks for Mystery Gift trade. (Directly related to Nintendo Wi-Fi events.) S=83,310,363
028C XXXX Show XXXX Party Sprite Pokemon in Box
028F 80XX
0292 XXXX 40YY S=339
0293 80XX
0294 XX YY Show Battle Points Box
0295 Hide Battle Points Box
0296 S=499
0299 XXXX S=499
029A XXXX 80YY
029C 80XX 80YY
029D XXXX YYYY
029E XXXX 80YY Apply effect XXXX
00 Cut effect
01 Rock Smash effect
029F XXXX Camera Bump Effect
02A0 80XX YYYY ZZZZ Start Double Battle
02A1 AA BBBB Move AA person with BBBB Movement
02A2 80XX S=404
02A3 80XX S=423
02A4 80XX S=423
02A5 Choose a Pokemon for a Trade
02A6 80XX 80YY 80ZZ
02A7 80XX 80YY S=404,408
02A8 80XX YYYY
02A9 80XX 80YY
02AA 80XX 80YY 80ZZ 80WW 80QQ
02AB 80XX S=211
02AD 80XX 80YY
02B1 S=212
02B3 XXXX 80YY
02B5 XXXX YYYY ZZZZ
02B6 XXXX YYYY S=329
02B7 80XX
02B8 80XX
02BA 80XX
02BB S=212
02BC 80XX
02BD XXXX YYYY ZZZZ Start Wild Battle with XXXXPKMN, at YYYY Level and ZZZZ object
02BE 80XX S=211
02BF Mount Hiro on the Bike
02C0 80XX or XXXX
02C1 Show Save Box
02C2 Hide Save Box 205
02C4 XX S=368,377,379
02C5 40XX 40YY S=376
02C7 80XX
02C8 80XX 80YY 80ZZ
02CA(Platinum) Floral clock animation
02CB 80XX YYYY S=83
02CC XXXX 80YY 80ZZ S=377
02CF 40XX 80YY S=377
02D0 40XX 40YY
02D1 40XX S=377
02D2 XXXX 40YY 80ZZ S=378
02D3 80XX 80YY 80ZZ S=378
02D4 40XX 40YY 40ZZ S=378
02D5 40XX
02D6 S=211
02D7 80XX S=211
XX S=365
02D9 XXXX 40YY 80ZZ S=379
02DA 80XX 80YY 80ZZ S=379
02DB 40XX 40YY 40ZZ S=379
02DC 40XX S=379
02DD 80XX YYYY S=83
02DE 80XX 80YY 80ZZ 80WW 80QQ
02DF 40XX S=274
02E0 40XX 80YY S=274
02E1 40XX 80YY S=274
02E2 Dysplay Card Game Scratch S=499
02E3 Close Card Game Scratch S=499
02E4 XXXX 40YY 40ZZ Choose Cards in Card Game S=499
02E5 80XX YYYY 80ZZ S=458
02E6 80XX YYYY 80ZZ S=458
02E7 80XX 80YY S=83,458
02E8 80XX S=83,458
02E9 80XX 80YY 80ZZ S=458
02EA 80XX 80YY S=458
02EB 80XX S=458
02EC XXXX 80YY 80ZZ S=211
02ED S=211
02EE 80XX 80YY 80ZZ 80WW S=367
02F2 S=388,389,390
02F3 XXXX 80YY S=454
02F4 40XX 40YY 40ZZ 40WW
02F5 XXXX YYYY ZZZZ WWWW S=1112
02F6 80XX 80YY 80ZZ S=211
02F7 80XX S=410
02F9 80XX S=1112
02FA 80XX
02FC 80XX S=1112
02FD XX 80XX
02FE XXXX 80XX S=221
02FF 80XX 80YY
0302 40XX 40YY 40ZZ 40WW 40PP S=83
0303 80XX 80YY S=83
0304 80XX 80YY 80ZZ 80WW S=83
0305 80XX 80YY S=83
0306 80XX 80YY S=500
0307 80XX S=148
0309 S=428
030A XXXX S=379
030B S=211,428
030D 80XX S=1112
030E 80XX S=28
030F XXXX 80YY S=1112
0311 XXXX S=380,381,383,389
0312 XXXX S=380,381,383,387,388,389
0313 XXXX S=377,379
0314 80XX S=389
0315 80XX S=459
0317 80XX 80YY 80ZZ S=382
0318 XXXX YYYY Starts a simpler wild Battle than Wildbattle2. XXXX = Pokemon, YYYY = Level. S=310;M=267
0319 XXXX YYYY S=389
031A XXXX S=236
031B 40XX S=129
031C 80XX S=1068
031D 80XX S=213,423
031E 40XX 80YY S=377,379
031F S=389
0320 S=237
0321 XXXX S=380
0322 S=380
0323 80XX S=423
0324 XXXX YYYY 40ZZ 80WW S=377
0325 40XX or 80XX S=377
0326 40XX S=377
0327 XXXX S=377
0328 XXXX S=380
0329 40XX 40YY 40ZZ 40WW S=374
032A 40XX S=377
032B 80XX Checks whether an Event Regigigas is in the party and stores it in 80XX (0 or 1) M=592
032C 40XX YYYY 80ZZ 80WW S=392,396
032D S=201,274
032E S=201,274
032F XXXX 40YY S=231
0332 S=428
0333 XXXX S=485
0334 S=148,440,448
0335 XXXX YYYY ZZZZ S=1109
0336 80XX S=211
0337 S=456
0338 S=274
0339 S=274
033A XX S=423,426
033C XX 80YY S=404,408,441
033D XX 80YY S=211,274,499
033E XX 80YY S=211
0341 XX 80YY ZZZZ WW S=373
0342 XX S=1064
0343 XX 80YY Set var as Pokemon stored into 80YY S=12
0344 XX 80YY Copy var as Wi-fi Sprite stored from 80YY to XX 53 Copyvarwi-fisprite
0345 XX 80YY Copy var as Seal store from 80YY to XX S=1085;M= SetvarSealStored2
0346 XX Set var as Wi-fi Sprite Id(XX) S=413,441;M=No Setvarwi-fisprite
0347 XXXX In a elevator, display into box XXXX Floor S=18;M=18 DysplayFloor

DPP Movements Commands

Hex Value (decimal) Parameters
0000 See up
0001 See down
0002 See left
0003 See right
0004 Walk slowly up
0005 Walk slowly down
0006 Walk slowly left
0007 Walk slowly right
0008 Walk normal up
0009 Walk normal down
000A Walk normal left
000B Walk normal right
000C Walk fast up
000D Walk fast down
000E Walk fast left
000F Walk fast right
0010 Walk very fast up
0011 Walk very fast down
0012 Walk very fast left
0013 Walk very fast right
0014 Run up
0015 Run down
0016 Run left
0017 Run right
0018 Move up slowly on site
0019 Move down slowly on site
001A Move left slownly on site
001B Move right slowly on site
001C Move up normal on site
001D Move down normal on site
001E Move left normal on site
001F Move right normal on site
0020 Move up fast on site
0021 Move down fast on site
0022 Move left fast on site
0023 Move right fast on site
0024 Move up very fast on site
0025 Move down very fast on site
0026 Move left very fast on site
0027 Move right very fast on site
0028 Run up on site
0029 Run down on site
002A Run left on site
002B Run right on site
002C Jump up slowly on site
002D Jump down slowly on site
002E Jump left slowly on site
002F Jump right slowly on site
0030 Jump up normal on site
0031 Jump down normal on site
0032 Jump left normal on site
0033 Jump right normal on site
0034 Jump up one step
0035 Jump down one step
0036 Jump left one step
0037 Jump right one step
0038 Jump up two step
0039 Jump down two step
003A Jump left two step
003B Jump right two step
003C Nothing
003D Nothing
003E Nothing
003F Nothing
0045 Wait, then disappear
004B Display exclamation mark
004C Wait for a little, then walk slowly up
004D Wait for a little,then walk slowly down
004E Wait for a little, then walk slowly left
004F Wait for a little, then walk slowly right
0050 Wait for a little,then walk normal up
0051 Wait for a little,then walk normal down
0052 Wait for a little,then walk normal left
0053 Wait for a little,then walk normal right
0054 Wait for a little,then move Overword sprite up
0055 Wait for a little,then move Overword sprite down
0056 Wait for a little,then move Overword sprite left
0057 Wait for a little,then move Overword sprite right
0058 Wait for a little,then walk backward up
0059 Wait for a little,then walk backward down
005A Wait for a little,then walk backward left
005B Wait for a little,then walk backward right
005C Wait for a little,then jump left one step
005D Wait for a little,then jump right one step
005E Wait for a little,then jump left two step
005F Wait for a little,then jump right two step
0060 Wait for a little,then walk normal up
0061 Wait for a little,then walk normal down
0062 Wait for a little,then walk normal left
0063 Wait for a little,then walk normal right
0064 Wait for a little,then move on site
0065 Wait for a little,then jump on site
0066 Nothing
0067 Wait for a little,then show two exclamation mark
0068 Wait for a little,then move on site forever
0069-to 00FF Rom crashed

Platinum Known Flags

Flag Descriptions Example PPRE map Number
01 Flag will active if you don't go outside after a certain script
02 Flag will active when 414
6E Flag will active when Rival go out from his home 412
70 Flag will active when you choose Wi-fi Sprite 48
75 Flag will active when you received 193 item 47
76 Flag will active when you received the Tm Recycle 79
7A Flag will active when you talked with Gym Leader into Mine
7B Flag will active when you use Defog 361
7C Flag will active when you received the EE item 52
7E Flag will active when you received the 27
81 Flag will active when you beat Team Galactic in Eterna City 61
82 Flag will active when you received the Bicy 71
84 Flag will active when you received Super Rod 389
85 Flag will active after trade 54
86 Flag will active after trade 76
87 Flag will active when you go down first 414
8A Flag will active when the Leader was into Coal Mine 45
8C Flag will active when you received the FD item 104
8D Flag will active when you go into Pokemon Fan Club 106
8E Flag will active when you start a Legendary Battle 510,316
8F Flag will active when you received the Parcel 414
90 Flag will active when you received the Pokedex 422
92 Flag will active when you receive 1A2 object 35
97 Flag will active when you beat Galactic on Veilstone 147
A1 Flag will active when you received F7 item 361
A2 Flag will active when you received 356
AB Flag will active when you complete Sinnoh Pokedex 339
AC Flag will active when you complete National Pokedex 339
AD Flag will active when you beated Grunt 499
B5 Flag will active when you received Porygon 147
BC Flag will active when you received Coin Case 145
BE Flag will active when you talk first with Victory Man into Battle Castle 563
BF Flag will active when you received the Quick Claw 24
C0 Flag will active when you received the Dusk Ball 51
C1 Flag will active when you show a Geodude to man 55
C4 Flag will active when you talk with Hidden Power Man 144
C6 Flag will active when you received the Tm 366
C7 Flag will active when you received 17A item 414
C9 Flag will active when you received the Tm Skill Swap 41
CA Flag will active when you received the Tm Trick Room 378
CB Flag will active when you received the Tm Facade 455
CD Flag will active when you received the Tm Payback 382
CE Flag will active when you received the Tm Fling 395
D0 Flag will active when you beat Dialga 584
D1 Flag will active when you beat Palkia 585
D5 Flag will active when you received E8 item 191
D9 Flag will active when you received A1 item 498
DE Flag will active when you received the Icicle Plate 386
DF Flag will active when you joined with Marley 247
E0 Flag will active when you joined with Mira 284
E1 Flag will active when you joined with Riley 293
E2 Flag will active when you don't have enough space for Riley's Egg 293
E4 Flag will active when Mira go out 284
ED Flag will active when you receive First Coupon 2
EE Flag will active when you receive Second Coupon 2
EF Flag will active when you receive Third Coupon 2
F0 Flag will active when you talk with alter's sister after Nat.Pkdx 423
F1 Flag will active when you finish talking with Rival 29
F3 Flag will active when you active Poketch(2) 2
F5 Flag will active after trade 499
F6 Flag will active when you talk for the first time with the Master 499
F9 Flag will active when you talk for the first time with the FootMan 375
FB Flag will active after Manaphy pic 370
100 Flag will active when you talk for the first time with Grandma Wilma 365
105 Flag will active when you receive Sticky Barb 141
107 Flag will active when you give SecretPotion to Psyduck 149
108 Flag will active when talk first with Move Man 502
109 Flag will active when you receive 1A item 54
10C Flag will active after beating right trainer 29
10D Flag will active after beating left trainer 29
10E Flag will active when you use the Storage Key 143
10F Flag will active when you use the Works Key 200
112 Flag will active when you receive the Potion 29
116 Flag will active when you received E0 item 361
11C Flag will active when you give the Coombe 128
11D Flag will active when you received E9 item from Byron 514
11E Flag will active after Arceus Battle 510
126 Flag will active after Azelf Battle 390
129 Flag will active when you received Accessories 137
12E Flag will active when you received 20 coins from Man 136
12F Flag will active when you received 32 coins from Man 136
131 Flag will active when you talked first with Bebe 24
139 Flag will active when you received DA item 369
13A Flag will active when you received White Flute 338
13B Flag will active when you received Spell Tag 387
13D Flag will active when you receive Accessories 12
13E Flag will active when you beated team Galactic in Verity Lakefront 334
13F Flag will active when you received 6F Item 354
149 Flag will active when you beated Rotom 300
15C Flag will active when you talk after League with Mum without NatPkdx 414
15D Flag will active when you talk after League with Mum with NatPkdx 414
181 Flag will active when you active Poketch 2
196 Flag will active when you don't have Pokeball 311
198 Flag will active when you receive a Badge 47,141
19C Flag will active when you decide to battle with alter against Grunts 2
1A3 Flag will active when you beated Galactic on Valley Windworks 201
1DF Flag will active when Mesprit flew up 313
1E5 Flag will active when you give receive egg from Riley 293
1EC-1ED-1EE-1EF-1F0 Flag are linked with Battle Tower 493
21C Flag will active when you received National Pokedex 390
224 Flag will active when you use Galactic Key 305
225 Flag will active when you use Galactic Key 307
226 Flag will active when you use Galacric Key 308
227 Flag will active when you use Galactic Key 310
24E Flag used for Arceus Battle 510
260 to 267 Flag will active linked with clock time 367
26C to 26F Flag will active linked with clock time 79
270-271 Flag will active linked with clock time 362
27D Flag will active when you talk with Rowan when U.A.M. returned into cave 422
290-291 Flag used when enter first in Battle Frontier 560
294 Flag will active when you talk with Oak in Rowan's lab 422
2A1 Flag will active when you choose a Pokemon during Amity Square 253
2A7 to 2B9 Flag linked with Gym Leader Rebattle 1122(Script)
2BB-2BC-2BD-2BE-2BF Flag linked with Rotom Change Room 571
2C1 Flag will active when you enter in Battle Castle 563
2C3 Flag will active when you enter first into Battle Frontier 559
2CB Flag will active when you enter into Battle Frontier 559
964 Flag used for League Victory 165
97D Flag will active when you save Azelf,Mesprit,Uxie 494
97E Flag will active when you received Eeeve from Bebe 24
98E Flag will active when you beat Mars 312
9CC Flag will active when you enter into Amiry Square 253
AA3 Flag will active when you received a Berry 127
AA9 Flag will active when you pick up a Loto Ticket 11
AAC Flag will active when you already massage your Pokemon 148
AAE Flag will active when you received Belt from Man 394
AB0 Flag will active when you clicking on Tv in Old Chateau 300
AB3 Flag will active when you pick up a Loro Prize 11
AB4 Flag will active when you receive Shards on Great Marsh 509
AB5 Flag will active when you receive an Item from Amity Man 253

Heart Gold/Soul Silver Known Flags

Flag Descriptions Example PPRE map Number
69 Flag set at the start of Union Function 2
2CA Flag set when register Morty Number 2