Articuno23
Sub-Zero
- 16
- Posts
- 13
- Years
- Seen May 31, 2012
#org 0x71C7CC
lockall
setvar 0x7001 0x0
goto 0x71C830
end
'-----------------------
#org 0x1C830
textcolor 0x0
msgbox 0x71CBB0 '"come here message."
callstd 0x4
closeonkeypress
playsong 0x110 0x0
compare 0x7001 0x0
if 0x1 call 0x71CC2C
compare 0x7001 0x1
if 0x1 call 0x8C458C
compare 0x7001 0x2
if 0x1 call 0x8C45F0
msgbox 0x93788C 'going to boat msg
callstd 0x4
closeonkeypress
applymovement 0x5 0x937760 'disappear off screen sequence
waitmovement 0x0
fadedefault
clearflag 0x9000
releaseall
end
'-----------------------
#org 0x1CC2C 'nearest tile
applymovement MOVE_PLAYER 0x7200B0 'player move
waitmovement 0x0
return
'-----------------------
#org 0xC458C '2 nearest tile
applymovement MOVE_PLAYER 0x8C4654 'move player
waitmovement 0x0
return
'-----------------------
#org 0xC45F0 '3 tile away
applymovement MOVE_PLAYER 0x8C471C 'move player
waitmovement 0x0
return
'-----------
' Movements
#org 0x37760 'diasapear
#raw 12 'Step Left (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw FE 'End of Movements
#org 0x200B0 '1 tile
#raw 11 'Step Up (Normal)
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw FE 'End of Movements
#org 0xC4654 '2 tile
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw FE 'End of Movements
#org 0xC471C '3 tile
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw FE 'End of Movements
'---------
' Messages
#org 0x1CBB0
= Hello v\h01, come quick.
#org 0x3788C
= I'm heading to the boat now.
This script I wrote isn't working at all, I have tried to make the player as soon as he enters the building to go up and see prof OAK. But when ever he steps on the green scripting tiles I have set with this code on them the game freezes. I am using XSE version 1.0.0 and AdvancedMap 1.95(Latest version) and running the Rom for testing on VisualBoyAdvanced version 1.72. Please help I have watched several videos, read loads of tutorials but still it doesn't work. I have also analyzed in-game scripts and tried to adapt them but with no success, I would be very, very grateful for any help, and thanks in advance.
lockall
setvar 0x7001 0x0
goto 0x71C830
end
'-----------------------
#org 0x1C830
textcolor 0x0
msgbox 0x71CBB0 '"come here message."
callstd 0x4
closeonkeypress
playsong 0x110 0x0
compare 0x7001 0x0
if 0x1 call 0x71CC2C
compare 0x7001 0x1
if 0x1 call 0x8C458C
compare 0x7001 0x2
if 0x1 call 0x8C45F0
msgbox 0x93788C 'going to boat msg
callstd 0x4
closeonkeypress
applymovement 0x5 0x937760 'disappear off screen sequence
waitmovement 0x0
fadedefault
clearflag 0x9000
releaseall
end
'-----------------------
#org 0x1CC2C 'nearest tile
applymovement MOVE_PLAYER 0x7200B0 'player move
waitmovement 0x0
return
'-----------------------
#org 0xC458C '2 nearest tile
applymovement MOVE_PLAYER 0x8C4654 'move player
waitmovement 0x0
return
'-----------------------
#org 0xC45F0 '3 tile away
applymovement MOVE_PLAYER 0x8C471C 'move player
waitmovement 0x0
return
'-----------
' Movements
#org 0x37760 'diasapear
#raw 12 'Step Left (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw FE 'End of Movements
#org 0x200B0 '1 tile
#raw 11 'Step Up (Normal)
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw FE 'End of Movements
#org 0xC4654 '2 tile
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw FE 'End of Movements
#org 0xC471C '3 tile
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw FE 'End of Movements
'---------
' Messages
#org 0x1CBB0
= Hello v\h01, come quick.
#org 0x3788C
= I'm heading to the boat now.
This script I wrote isn't working at all, I have tried to make the player as soon as he enters the building to go up and see prof OAK. But when ever he steps on the green scripting tiles I have set with this code on them the game freezes. I am using XSE version 1.0.0 and AdvancedMap 1.95(Latest version) and running the Rom for testing on VisualBoyAdvanced version 1.72. Please help I have watched several videos, read loads of tutorials but still it doesn't work. I have also analyzed in-game scripts and tried to adapt them but with no success, I would be very, very grateful for any help, and thanks in advance.