- 105
- Posts
- 11
- Years
- Seen Apr 17, 2015
Hi everyone . I tried making a script and it compiles
BUT when i try to implement it in game the game freezes after the first dialogue
can someone please help me i set the unknown to 3 also and the var number to 6000 .
here is the script
Please help ASAP!
BUT when i try to implement it in game the game freezes after the first dialogue
can someone please help me i set the unknown to 3 also and the var number to 6000 .
here is the script
Spoiler:
'---------------
#org 0x29F7EB
lock
setvar 0x6000 0x1
msgbox 0x829F8B5 MSG_NORMAL '"Hey! \v\h00ho1 come and help me!"
applymovement MOVE_PLAYER 0x829F8D4
waitmovement 0x0
msgbox 0x829F8DE MSG_NORMAL '"This man has stolen my pokemon!\nb..."
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x829F942 MSG_KEEPOPEN '"You received a Charmander!\nIt sme..."
waitfanfare
closeonkeypress
applymovement 0x5 0x829F974
waitmovement 0x0
applymovement MOVE_PLAYER 0x829FCB1
waitmovement 0x0
waitmovement 0xFF
trainerbattle 0x1 0x1 0x0 0x829F97B 0x829F9DB 0x829FA02
applymovement 0x5 0x829FA74
waitmovement 0x0
applymovement 0x4 0x829FA7D
waitmovement 0x0
msgbox 0x829FA80 MSG_NORMAL '"Thank you [player]! NOW GIMMI MY\n..."
goto 0x829F874
'---------------
#org 0x29FA02
updatecoins 0xE1 0xE1
setdoorclosed 0xAD 0xE3D3
'---------------
#org 0x29F874
msgbox 0x829FB89 MSG_YESNO '"Do you want the fire mouse pokemon..."
compare LASTRESULT 0x1
if 0x1 goto 0x829FB04
msgbox 0x829FBBA MSG_YESNO '"OK. so do you want the water\ncroc..."
compare LASTRESULT 0x1
if 0x1 goto 0x829FB2D
msgbox 0x829FBF5 MSG_YESNO '"OK.OK. Do you want the grass type\..."
compare LASTRESULT 0x1
if 0x1 goto 0x829FB53
goto 0x829FB79
'---------------
#org 0x29FB04
givepokemon 0x9B 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x829FC24 MSG_NORMAL '"You recieved a CINDAQUIL!"
waitfanfare
closeonkeypress
applymovement 0x4 0x829FCB9
waitmovement 0x0
release
end
'---------------
#org 0x29FB2D
givepokemon 0x9E 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x829FC40 MSG_NORMAL '"You recieved a TOTODILE!"
waitfanfare
closeonkeypress
applymovement 0x4 0x829FA7D
release
end
'---------------
#org 0x29FB53
givepokemon 0x98 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x829FC5B MSG_NORMAL '"You recived a CHIKORITA!"
waitfanfare
closeonkeypress
applymovement 0x4 0x829FA7D
release
end
'---------------
#org 0x29FB79
msgbox 0x829FC76 MSG_NORMAL '"Oh you must take a Pokemon I\ninsi..."
goto 0x829F874
'---------
' Strings
'---------
#org 0x29F8B5
= Hey! \v\h00ho1 come and help me!
#org 0x29F8DE
= This man has stolen my pokemon!\nbut luckily I hid this\lriolu in my underpants\lhere take it quick!
#org 0x29F942
= You received a Charmander!\nIt smells funny! Eww
#org 0x29F97B
= Oh! So you want your pokemon back?\nThey are mine now! If you want\lthem you have to battle me!
#org 0x29F9DB
= Here! Take your stupid pokemon\nback!
#org 0x29FA80
= Thank you [player]! NOW GIMMI MY\nRIOLU BACK!! Hmm this riolu does\lnot want to come back. I wonder\lwhy that is.. OK OK you can keep\lhim!
#org 0x29FB89
= Do you want the fire mouse pokemon\ncindaquil?
#org 0x29FBBA
= OK. so do you want the water\ncrocodile pokemon TOTODILE?
#org 0x29FBF5
= OK.OK. Do you want the grass type\nCHIKORITA?
#org 0x29FC24
= You recieved a CINDAQUIL!
#org 0x29FC40
= You recieved a TOTODILE!
#org 0x29FC5B
= You recived a CHIKORITA!
#org 0x29FC76
= Oh you must take a Pokemon I\ninsist! I'll Ask you again.
'-----------
' Movements
'-----------
#org 0x29F8D4
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0xFE 'End of Movements
#org 0x29F974
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0xFE 'End of Movements
#org 0x29FCB1
#raw 0x1F 'Step Left (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0xFE 'End of Movements
#org 0x29FA74
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x60 'Hide
#org 0x29FA7D
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#org 0x29FCB9
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x60 'Hide
#org 0x29F7EB
lock
setvar 0x6000 0x1
msgbox 0x829F8B5 MSG_NORMAL '"Hey! \v\h00ho1 come and help me!"
applymovement MOVE_PLAYER 0x829F8D4
waitmovement 0x0
msgbox 0x829F8DE MSG_NORMAL '"This man has stolen my pokemon!\nb..."
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x829F942 MSG_KEEPOPEN '"You received a Charmander!\nIt sme..."
waitfanfare
closeonkeypress
applymovement 0x5 0x829F974
waitmovement 0x0
applymovement MOVE_PLAYER 0x829FCB1
waitmovement 0x0
waitmovement 0xFF
trainerbattle 0x1 0x1 0x0 0x829F97B 0x829F9DB 0x829FA02
applymovement 0x5 0x829FA74
waitmovement 0x0
applymovement 0x4 0x829FA7D
waitmovement 0x0
msgbox 0x829FA80 MSG_NORMAL '"Thank you [player]! NOW GIMMI MY\n..."
goto 0x829F874
'---------------
#org 0x29FA02
updatecoins 0xE1 0xE1
setdoorclosed 0xAD 0xE3D3
'---------------
#org 0x29F874
msgbox 0x829FB89 MSG_YESNO '"Do you want the fire mouse pokemon..."
compare LASTRESULT 0x1
if 0x1 goto 0x829FB04
msgbox 0x829FBBA MSG_YESNO '"OK. so do you want the water\ncroc..."
compare LASTRESULT 0x1
if 0x1 goto 0x829FB2D
msgbox 0x829FBF5 MSG_YESNO '"OK.OK. Do you want the grass type\..."
compare LASTRESULT 0x1
if 0x1 goto 0x829FB53
goto 0x829FB79
'---------------
#org 0x29FB04
givepokemon 0x9B 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x829FC24 MSG_NORMAL '"You recieved a CINDAQUIL!"
waitfanfare
closeonkeypress
applymovement 0x4 0x829FCB9
waitmovement 0x0
release
end
'---------------
#org 0x29FB2D
givepokemon 0x9E 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x829FC40 MSG_NORMAL '"You recieved a TOTODILE!"
waitfanfare
closeonkeypress
applymovement 0x4 0x829FA7D
release
end
'---------------
#org 0x29FB53
givepokemon 0x98 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x829FC5B MSG_NORMAL '"You recived a CHIKORITA!"
waitfanfare
closeonkeypress
applymovement 0x4 0x829FA7D
release
end
'---------------
#org 0x29FB79
msgbox 0x829FC76 MSG_NORMAL '"Oh you must take a Pokemon I\ninsi..."
goto 0x829F874
'---------
' Strings
'---------
#org 0x29F8B5
= Hey! \v\h00ho1 come and help me!
#org 0x29F8DE
= This man has stolen my pokemon!\nbut luckily I hid this\lriolu in my underpants\lhere take it quick!
#org 0x29F942
= You received a Charmander!\nIt smells funny! Eww
#org 0x29F97B
= Oh! So you want your pokemon back?\nThey are mine now! If you want\lthem you have to battle me!
#org 0x29F9DB
= Here! Take your stupid pokemon\nback!
#org 0x29FA80
= Thank you [player]! NOW GIMMI MY\nRIOLU BACK!! Hmm this riolu does\lnot want to come back. I wonder\lwhy that is.. OK OK you can keep\lhim!
#org 0x29FB89
= Do you want the fire mouse pokemon\ncindaquil?
#org 0x29FBBA
= OK. so do you want the water\ncrocodile pokemon TOTODILE?
#org 0x29FBF5
= OK.OK. Do you want the grass type\nCHIKORITA?
#org 0x29FC24
= You recieved a CINDAQUIL!
#org 0x29FC40
= You recieved a TOTODILE!
#org 0x29FC5B
= You recived a CHIKORITA!
#org 0x29FC76
= Oh you must take a Pokemon I\ninsist! I'll Ask you again.
'-----------
' Movements
'-----------
#org 0x29F8D4
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0xFE 'End of Movements
#org 0x29F974
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0xFE 'End of Movements
#org 0x29FCB1
#raw 0x1F 'Step Left (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0xFE 'End of Movements
#org 0x29FA74
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x60 'Hide
#org 0x29FA7D
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#org 0x29FCB9
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x60 'Hide
Please help ASAP!