DPP Script Commands: Difference between revisions
Jump to navigation
Jump to search
Line 117: | Line 117: | ||
|- style="background: #eee;" align="center" | |- style="background: #eee;" align="center" | ||
|0038 | |0038 | ||
| | |AA | ||
|Type AA textbox | |Type AA textbox | ||
|- style="background: #eee;" align="center" | |- style="background: #eee;" align="center" | ||
Line 149: | Line 149: | ||
|- style="background: #eee;" align="center" | |- style="background: #eee;" align="center" | ||
|0049 | |0049 | ||
| | |AAAA | ||
|Start script upon pressing A | |Start script upon pressing A, AAAA=05DC most of the time | ||
|0 | |||
|- style="background: #eee;" align="center" | |- style="background: #eee;" align="center" | ||
|005E | |005E | ||
Line 186: | Line 187: | ||
|007D | |007D | ||
|80AA 80BB 80CC | |80AA 80BB 80CC | ||
| | |Check if possible to give item 80AA, 80BB of them and store if successful in 80CC | ||
|- style="background: #eee;" align="center" | |||
|00A1 | |||
| | |||
|Used at end of call screen commands | |||
| | |||
|- style="background: #eee;" align="center" | |- style="background: #eee;" align="center" | ||
|00CD | |00CD | ||
Line 242: | Line 248: | ||
|Set obtained badge AA to true | |Set obtained badge AA to true | ||
|50, 72 | |50, 72 | ||
|- style="background: #eee;" align="center" | |||
|0191 | |||
| | |||
|Choose Pokemon Menu | |||
|428 | |||
|- style="background: #eee;" align="center" | |||
|0192 | |||
| | |||
|Choose Pokemon for Battle Tower (everyone banned) | |||
| | |||
|- style="background: #eee;" align="center" | |||
|0194 | |||
| | |||
|Choose Pokemon everyone able | |||
| | |||
|- style="background: #eee;" align="center" | |- style="background: #eee;" align="center" | ||
|0257 | |0257 |
Revision as of 15:35, 28 February 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 | ||
0003? | if | ||
0011 | 80AA BBBB | Compare variable 80AA to value BBBB | 458 |
0014 | AABB | Calls standard function number AABB, see DPP Scripting: Standard Functions for values of BB, AA=07 in all examples we have seen. | 981 |
0016 | AAAAAAAA | Jump AAAAAAAA bytes after the last digit of AAAAAAAA | |
001A | 1603 | Heal Pokemon? | 981 |
001B | Kill Script | 411 | |
001C | XX YYYYYYYY | Compare last result to XX if true goto + BBBBBBBB | |
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 | |
0049 | AAAA | Start script upon pressing A, AAAA=05DC most of the time | 0 |
005E | AAAA BBBB | Move person AAAA acording to movement at BBBB + offset AAAA=FF00 for hero. | |
005F | End Movement Command | ||
0060 | Lock Player | ||
0061 | Release Player | ||
0064 | AA | Remove overworld sprite for person event AA | |
0068 | Face Player | ||
006B | disappear map( Later if press menu disappear hiro) | ||
?0074 | playsong | ||
007D | 80AA 80BB 80CC | Check if possible to give item 80AA, 80BB of them and store if successful in 80CC | |
00A1 | Used at end of call screen commands | ||
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 |
00E5 | AAAA | Start 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 |
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 |
0191 | Choose Pokemon Menu | 428 | |
0192 | Choose Pokemon for Battle Tower (everyone banned) | ||
0194 | Choose Pokemon everyone able | ||
0257 | Exchange Berries for Accessories | 999 |