more scripting adventures; this time: warping
other commands functions I've finally nailed down:
2F 00 - clear dialog box
After recording that video, I realized I forgot to clear the text from the screen. So, I added that line right before the warp script after the 0030... so the proper ending part of her script was
0030 - do instant
002F - clear dialog
00C2 - warpto with fadetoblack (64 bits following with conditions m,x,y,f)
0078 - map
01A9 - x coord
00AE - y coord
0000 - facedirection (0 up, 1 down, 2 left, 3 right)
0002 - end
======
I looked at other scripts and there's some that determine the variables for the displayed text. The Rotom for Ditto trade has this:
57 00 01 DF 01 Trade Recieve Rotom -- TextVar1 = Rotom
57 00 00 84 00 Trade Give Ditto -- TextVar0 = Ditto
thus, 0057 xx YYYY is the structure of this function
0057 - get-text pokedex(i)
01 - text variable number
01DF - i ~ pokemon hex
This makes it display what Pokemon the person wants to trade.
edit: some more instructions similar to the warp command, haven't bothered figuring out the condition structure after the instruction though:
C1 SandPit Falling (directionals?)->position
C2 WarpTo M,X,Y,Face (auto level) With FadeToblack/Sound
C3 WarpTo Union Room
C4 WarpTo MXYZ,Face No FadeToBlack/Sound change
C5 Start Surfing?
C6 Gooey Directional? (Bug Gym)
C7 Cut Animation and Subsequent text?
C8 Warp Out animation.... maybe the undersea "out of breath"?