DPP Script Commands: Difference between revisions

From ProjectPokemon Wiki
Jump to navigation Jump to search
Line 1,022: Line 1,022:
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0034
|0034
|Spring up one step
|Jump up one step
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0035
|0035
|Spring down one step
|Jump down one step
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0036
|0036
|Spring left one step
|Jump left one step
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0037
|0037
|Spring right one step
|Jump right one step
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|0038
|0038
Line 1,057: Line 1,057:
|Nothing
|Nothing
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|0045
|
|Wait, then disappear
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|004B
|
|Display exclamation mark
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|004C
|
|Wait for a little, then walk slowly up
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|004D
|
|Wait for a little,then walk slowly down
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|004E
|
|Wait for a little, then walk slowly left
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|004F
|
|Wait for a little, then walk slowly right
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|0050
|
|Wait for a little,then walk normal up
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|0051
|
|Wait for a little,then walk normal down
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|0052
|
|Wait for a little,then walk normal left
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|0053
|
|Wait for a little,then walk normal right
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|0054
|
|Wait for a little,then move Overword sprite up
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|0055
|
|Wait for a little,then move Overword sprite down
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|0056
|
|Wait for a little,then move Overword sprite left
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|0057
|
|Wait for a little,then move Overword sprite right
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|0058
|
|Wait for a little,then
|- style="background: #eee;" align="center"
|- style="background: #eee;" align="center"
|00
|00

Revision as of 10:22, 10 April 2009

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 Script Number
0002 end
000C if
0011 80AA BBBB Compare variable 80AA to value BBBB 458
0014 XXYY Calls standard function number XXYY, see DPP Scripting: Standard Functions for values of YY, XX=07 in all examples we have seen. 981
0016 YYYYYYYY Jump YYYYYYYY bytes after the last digit of YYYYYYYY
001A 1603; XXXX Heal Pokemon?; Jump XXXX bytes push location so we can return here with 001B 981, 458
001B Kill Script, pop back to calling command 411
001C XX YYYYYYYY Compare last result to XX if true goto + YYYYYYYY
001D XX YYYYYYYY Compare Last Result to XX, if true go + YYYYYYYY, push location to return with 001B
001E AAAA Set flag status of AAAA to false.
001F AAAA Set flag status of AAAA to true.
0020 AA Store Flag AA's Status as last result
0028 80AA BBBB Set value of variable 80AA to BBBB 72
0029 80AA 80BB Copy value from variable 80BB to 80AA
002C AAAA Get text entry AAAA from text file corresponding to script file
0031 Wait For Button Press (arrows, A, B,X)
?0033 Remove Text Box after Button Press.
0034 Remove Text box
0036 AA BB CC DD Call textbox with text AA, type BB, picture CC, DD not zero makes picture box transparent. 456
0037 XX Color Text Box
00 Brown
01 Green
02
03 Grey
04 Blacked Out
0038 AA Type AA textbox
02 No border
03 With Border
0039 No Map in text box
003A XX Call Color/Map Textbox with text ID XX
003C Open Menu ?
003E 80AA Bring up yes/no box
003F AAAA Hold for AAAA (units?) then continue
0040 00 XX YY AA BB Put up a list of choices for the player to make.(XX=X Coordinates;YY=Y Coordinates;AA=Cursor position;BB=Determine if B=Cancel 34
0041 00 XX YY AA BB The same as 40, I think 200
0042 AA BB After 40 command, select AA text and BB script link with it 200
0043 AA After 40 command select what happen if you press B comand 200
0044 00 XX YY AA BB The same as 40, I think 200
0049 AAAA Start script upon pressing A, AAAA=05DC most of the time 0
004C AAAA Plays Pokemon Cry(AAAA=Number Pokemon) 1020
004E AAAA Play a sound AAAA
004F Return to default music map
005E AAAA BBBB Move person AAAA acording to movement at BBBB + offset AAAA=FF00 for hero.
005F End Movement Command
0060 Lock All Overword sprite
0061 Release All Overword sprite
0062 Lock only player
0063 Release only player
0064 AA Add overworld sprite for person event AA
0065 AA Remove overworld sprite for person event AA
0066 Lock camera
0068 Face Player
006F AAAA Give amount of money to player
0070 AAAA Take amount of money from player 124
0072 XXXX YYYY Show money box 124
0073 Hide money box 124
0074 Update money box 124
0075 XXXX YYYY Show coins box
0076 Hide coins box
0077 Update coins box 124
0079 AAAA Give amount of coins to player
007A AAAA Take amount of coins to player
007B AAAA 00BB Receive 00BB quantity of AAAA item
007C AAAA 00BB Give 00BB quantity of AAAA item
007D 80AA 80BB 80CC Check if possible to give item 80AA, 80BB of them and store if successful in 80CC
007E 00AA 00BB Check if you have a item AA with BB quantity 8
0099 80XX YYYY Check if party pokemon 80XX knows move YYYY 458
00A1 Used at end of call screen commands
00A3 Nintendo Wi-fi connection
00A5 Start Interview
00A6 Start Wearing Pokemon
00A9 Capsule Editor
00AA Open Sinnoh Maps
00AB Box Storage Deposite Pokemon
00B0 Game Ending
00B1 Hall of fame memorial
00B3 Nintendo Wi-fi Connection
00B4 Choose starter pokemon
00BA Choose player name
00BB Choose egg nickname
00BD Calls preset events 50,72
00BE? II II 00 00 XX xx YY yy PP Warp to a map(XX: X Coordinates into map. xx=X Coordinates in word map, same for YY.PP=People sprite position) 1035
00CD AA Set Text Var AA = Hero 342
00CE AA Set Text Var AA = Rival 342
00CF AA Set Text Var AA = Male\Female alter ego. 342
00D0 AA 80BB Set text var AA to name of pokemon number 80BB 458
00D1 AA 80BB Get the name for item number = value of variable 80BB and store it in text variable AA 72
00D3 AA 80BB Get attack corresponding to item number = value of variable 80BB store in text variable AA 72
00D4 AA 0000 Set text var AA to an attack
00D5 AA 0000 Set text var AA to a number
00D6 AA 0000 Set text var AA to a pokemon nickname in team
00D7 AA 0000 Set text var AA to an object?
00D8 AA 0000 Set text var AA to a type of trainer
00DB AA Set text var AA to Starter Hiro
00DC AA Set text var AA to Starter Rival
00DD AA Set text var AA to Starter Alter ego.
00E5 AAAA Start Battle AAAA 50,72
00E6 AAAA End Trainer Battle AAAA 50,72
00EB Lost battle go to pokemon center. 50,72
00EC 80AA Check if lost battle, store result in variable 80AA 50,72
00EF Repeat Last Battle?
00F2 Open Choose Friend for Wireless Trade screen
00F3 Open Wireless Battle Waiting
00F7 Start Pokemon Contest
0101 Fade screen
0111 Some Flash into the scene
0116 Show Link Contest Record Box
0120 XX xx YY yy Set player position after a ship animation
0124 AAAA LL XX Start Wild Battle (AAAA=Pokemon Numeber LL=Level XX=Item)
0125 Last Wild Battle
0126 First Wild Battle Explanation
0129 Random Wurmple Battle(Change Level)
012B Show Write Autograph Scene
0131 Give Poketch First time
0133 00AA Give Poketch Application AA
0147 Show Pokemart 1(Pokeball)
0148 Show Pokemart 2(Mail)
0149 Show Pokemart 3(Accessories)
014A Show Pokemart 4(Seal)
014B Player defeated go to Pc
014E Player Pokemon are healed
0153 Player go to Union Room
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
0173 Change solidity of object?
0178 Open Berry Pouch
0191 Choose Pokemon Menu, store number as last result 458
0192 Choose Pokemon for Battle Tower (everyone banned)
0193 80AA Store Last Result in 80AA, 80AA=00FF means no pokemon was chosen 458
0194 Choose Pokemon everyone able
0196 Open Pokemon Info
0198 80AA 80BB Store the pokemon number of party pokemon 80AA, in 80BB If the pokemon is an egg the value is 0000. 458
01B2 NN Hide leg of a person NN, then if you talk with her, he disappear completely
01B3 Open Mailbox
01B5 AA Open Record List AA
01B9 80XX 80YY Store happiness of pokemon 80YY into 80XX 458
01C6 AA Open Battle Moves of Pokemon AA in the party
01C7 AA80 Store data move in AA80
01C9 Delete move chosen in 01C6
01D7 Open Berry Pouch for Poffin
01D9 Open Battle Room Result
01E8 Check if have completed Sinnoh pokedex
01E9 Check if have completed National pokedex
01EA Show Sinnoh Pokedex Sheet
01EB Show National Pokedex Sheet
01F8 Black screen(Only Up Screen)
0204 Warp to last elevator
0205 Open Geonet
0206 Great Marsh Bynocule Pokemon
0208 AAAA Show box with Pokemon AAAA sprite
0221 AA Remember Move for Pokemon AA in the party
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
0239 Rules decide in Battle Link
023B AA Do healing animation in Pokecenter(AA=Number of Pokeball)
023D AA Do a AA animation for a ship(00=Ship sail under 01=Ship sail up 02=Ship sail left 03=Canalave ship)
0243 Show Phrase Box(1 Word)
0244 Show Phrase Box(2 Word)
024C Do Pc Animation in Pokemon Center
0257 Exchange Berries for Accessories 999
0258 Change Sprite Player to one ready to fly
025C Do animation of elevator in League Corridor
0267 Start Pokecasino
026D Open Unown Text Box
0271 Open Thank Who? Name Insert
027A Show View of League Castle
028C AA Show AA Party Sprite Pokemon in Box
0294 XX YY Show Battle Points Box
0295 Hide Battle Points Box
029E AA Apply Rock Smash effect to AA people
029F Camera Bump Effect
02A0 Start Double Battle
02A1 AA BBBB Move AA person with BBBB Movement
02A5 Choose a Pokemon for a Trade
02BD AAAA LL XX Start Wild Battle with AAAA PKMN, at LL Level and XX object
02BF Mount Hiro on the Bike
02C1 Show Save Box

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
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00