McPaul
On my way to become a controversial and hated memb
- 289
- Posts
- 7
- Years
- He/ Him
- Switzerland
- Seen May 18, 2025
Hello!
I opened and modified a script. I got this error while trying to compile. I didn't know why so I tried to reopen the unmodified original script and tried to compile it. Same error message.
So Game Freak itself made a mistake while scripting?
Here is the script:
Thanks for your answer.
I opened and modified a script. I got this error while trying to compile. I didn't know why so I tried to reopen the unmodified original script and tried to compile it. Same error message.
So Game Freak itself made a mistake while scripting?
Here is the script:
Spoiler:
'---------------
#org 0x22CEA0
call 0x800F4F68
setmaptile 0x2725 0x5108 0x0 0x26C
lockall
compare 0x4001 0x1
if 0x1 call 0x822CFA7
compare 0x4001 0x2
if 0x1 call 0x822CFBC
compare 0x4001 0x3
if 0x1 call 0x822CFC7
call 0x822CFFF
msgbox 0x822D65C MSG_KEEPOPEN '"Wow! You shattered that boulder\nb..."
compare 0x4001 0x2
if 0x1 call 0x822CFC8
compare 0x4001 0x3
if 0x1 call 0x822CFC8
giveitem 0x156 0x1 MSG_OBTAIN
setflag 0x6A
msgbox 0x822D6D2 MSG_KEEPOPEN '"That HM contains STRENGTH.\pIf a m..."
closeonkeypress
compare 0x4001 0x1
if 0x1 call 0x822CF5D
compare 0x4001 0x2
if 0x1 call 0x822CF6F
compare 0x4001 0x3
if 0x1 call 0x822CF8B
msgbox 0x822D745 MSG_KEEPOPEN '"WANDA!\nNow I can see you anytime!..."
closeonkeypress
compare 0x4001 0x1
if 0x1 call 0x822CFD4
compare 0x4001 0x2
if 0x1 call 0x822CFE6
compare 0x4001 0x3
if 0x1 call 0x822CFE6
call 0x8272216
releaseall
end
'---------------
#org 0x22CFA7
applymovement 0x1 0x82725A6
waitmovement 0x0
applymovement MOVE_PLAYER 0x82725AA
waitmovement 0x0
return
'---------------
#org 0x22CFBC
applymovement 0x1 0x822D048
waitmovement 0x0
return
'---------------
#org 0x22CFC7
return
'---------------
#org 0x22CFFF
sound 0x15
applymovement 0x1 0x8272598
waitmovement 0x0
applymovement 0x1 0x827259A
waitmovement 0x0
return
'---------------
#org 0x22CFC8
closeonkeypress
applymovement 0x1 0x822D065
waitmovement 0x0
return
'---------------
#org 0x22CF5D
applymovement MOVE_PLAYER 0x822D042
applymovement 0x1 0x822D067
waitmovement 0x0
return
'---------------
#org 0x22CF6F
applymovement MOVE_PLAYER 0x822D045
applymovement 0x1 0x822D06C
waitmovement 0x0
applymovement 0xA 0x82725AA
waitmovement 0x0
return
'---------------
#org 0x22CF8B
applymovement MOVE_PLAYER 0x822D045
applymovement 0x1 0x822D06C
waitmovement 0x0
applymovement 0xA 0x82725AA
waitmovement 0x0
return
'---------------
#org 0x22CFD4
applymovement 0xA 0x822D017
applymovement 0x1 0x822D04B
waitmovement 0x0
return
'---------------
#org 0x22CFE6
applymovement MOVE_PLAYER 0x822D02F
applymovement 0xA 0x822D023
applymovement 0x1 0x822D058
waitmovement 0x0
return
'---------------
#org 0x272216
hidesprite 0x1
hidesprite 0xA
clearflag 0x328
clearflag 0x3D8
setvar 0x409A 0x6
setflag 0xC7
return
'---------
' Strings
'---------
#org 0x22D65C
= Wow! You shattered that boulder\nblocking the way.\pTo show you how much I appreciate it,\nI'd like you to have this HM.
#org 0x22D6D2
= That HM contains STRENGTH.\pIf a muscular POKéMON were to learn\nthat, it would be able to move even\llarge boulders.
#org 0x22D745
= WANDA!\nNow I can see you anytime!\pWANDA: That's[.]wonderful.\pPlease, take some rest at my home.
'-----------
' Movements
'-----------
#org 0x2725A6
#raw 0x26 'Step on the Spot Up (Fastest)
#raw 0xFE 'End of Movements
#org 0x2725AA
#raw 0x25 'Step on the Spot Down (Fastest)
#raw 0xFE 'End of Movements
#org 0x22D048
#raw 0x9 'Step Up (Normal)
#raw 0x28 'Step on the Spot Right (Fastest)
#raw 0xFE 'End of Movements
#org 0x272598
#raw 0x56 'Exclamation Mark (!)
#raw 0xFE 'End of Movements
#org 0x27259A
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0xFE 'End of Movements
#org 0x22D065
#raw 0xB 'Step Right (Normal)
#raw 0xFE 'End of Movements
#org 0x22D042
#raw 0xA 'Step Left (Normal)
#raw 0x28 'Step on the Spot Right (Fastest)
#raw 0xFE 'End of Movements
#org 0x22D067
#raw 0x22 'Step on the Spot Up (Faster)
#raw 0x22 'Step on the Spot Up (Faster)
#raw 0x16 'Slide Up
#raw 0x18 'Slide Right
#raw 0xFE 'End of Movements
#org 0x22D045
#raw 0xB 'Step Right (Normal)
#raw 0x27 'Step on the Spot Left (Fastest)
#raw 0xFE 'End of Movements
#org 0x22D06C
#raw 0x24 'Step on the Spot Right (Faster)
#raw 0x24 'Step on the Spot Right (Faster)
#raw 0x18 'Slide Right
#raw 0x26 'Step on the Spot Up (Fastest)
#raw 0xFE 'End of Movements
#org 0x22D017
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements
#org 0x22D04B
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements
#org 0x22D02F
#raw 0x13 'Delay4
#raw 0x26 'Step on the Spot Up (Fastest)
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0x28 'Step on the Spot Right (Fastest)
#raw 0xFE 'End of Movements
#org 0x22D023
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements
#org 0x22D058
#raw 0x9 'Step Up (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements
#org 0x22CEA0
call 0x800F4F68
setmaptile 0x2725 0x5108 0x0 0x26C
lockall
compare 0x4001 0x1
if 0x1 call 0x822CFA7
compare 0x4001 0x2
if 0x1 call 0x822CFBC
compare 0x4001 0x3
if 0x1 call 0x822CFC7
call 0x822CFFF
msgbox 0x822D65C MSG_KEEPOPEN '"Wow! You shattered that boulder\nb..."
compare 0x4001 0x2
if 0x1 call 0x822CFC8
compare 0x4001 0x3
if 0x1 call 0x822CFC8
giveitem 0x156 0x1 MSG_OBTAIN
setflag 0x6A
msgbox 0x822D6D2 MSG_KEEPOPEN '"That HM contains STRENGTH.\pIf a m..."
closeonkeypress
compare 0x4001 0x1
if 0x1 call 0x822CF5D
compare 0x4001 0x2
if 0x1 call 0x822CF6F
compare 0x4001 0x3
if 0x1 call 0x822CF8B
msgbox 0x822D745 MSG_KEEPOPEN '"WANDA!\nNow I can see you anytime!..."
closeonkeypress
compare 0x4001 0x1
if 0x1 call 0x822CFD4
compare 0x4001 0x2
if 0x1 call 0x822CFE6
compare 0x4001 0x3
if 0x1 call 0x822CFE6
call 0x8272216
releaseall
end
'---------------
#org 0x22CFA7
applymovement 0x1 0x82725A6
waitmovement 0x0
applymovement MOVE_PLAYER 0x82725AA
waitmovement 0x0
return
'---------------
#org 0x22CFBC
applymovement 0x1 0x822D048
waitmovement 0x0
return
'---------------
#org 0x22CFC7
return
'---------------
#org 0x22CFFF
sound 0x15
applymovement 0x1 0x8272598
waitmovement 0x0
applymovement 0x1 0x827259A
waitmovement 0x0
return
'---------------
#org 0x22CFC8
closeonkeypress
applymovement 0x1 0x822D065
waitmovement 0x0
return
'---------------
#org 0x22CF5D
applymovement MOVE_PLAYER 0x822D042
applymovement 0x1 0x822D067
waitmovement 0x0
return
'---------------
#org 0x22CF6F
applymovement MOVE_PLAYER 0x822D045
applymovement 0x1 0x822D06C
waitmovement 0x0
applymovement 0xA 0x82725AA
waitmovement 0x0
return
'---------------
#org 0x22CF8B
applymovement MOVE_PLAYER 0x822D045
applymovement 0x1 0x822D06C
waitmovement 0x0
applymovement 0xA 0x82725AA
waitmovement 0x0
return
'---------------
#org 0x22CFD4
applymovement 0xA 0x822D017
applymovement 0x1 0x822D04B
waitmovement 0x0
return
'---------------
#org 0x22CFE6
applymovement MOVE_PLAYER 0x822D02F
applymovement 0xA 0x822D023
applymovement 0x1 0x822D058
waitmovement 0x0
return
'---------------
#org 0x272216
hidesprite 0x1
hidesprite 0xA
clearflag 0x328
clearflag 0x3D8
setvar 0x409A 0x6
setflag 0xC7
return
'---------
' Strings
'---------
#org 0x22D65C
= Wow! You shattered that boulder\nblocking the way.\pTo show you how much I appreciate it,\nI'd like you to have this HM.
#org 0x22D6D2
= That HM contains STRENGTH.\pIf a muscular POKéMON were to learn\nthat, it would be able to move even\llarge boulders.
#org 0x22D745
= WANDA!\nNow I can see you anytime!\pWANDA: That's[.]wonderful.\pPlease, take some rest at my home.
'-----------
' Movements
'-----------
#org 0x2725A6
#raw 0x26 'Step on the Spot Up (Fastest)
#raw 0xFE 'End of Movements
#org 0x2725AA
#raw 0x25 'Step on the Spot Down (Fastest)
#raw 0xFE 'End of Movements
#org 0x22D048
#raw 0x9 'Step Up (Normal)
#raw 0x28 'Step on the Spot Right (Fastest)
#raw 0xFE 'End of Movements
#org 0x272598
#raw 0x56 'Exclamation Mark (!)
#raw 0xFE 'End of Movements
#org 0x27259A
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0xFE 'End of Movements
#org 0x22D065
#raw 0xB 'Step Right (Normal)
#raw 0xFE 'End of Movements
#org 0x22D042
#raw 0xA 'Step Left (Normal)
#raw 0x28 'Step on the Spot Right (Fastest)
#raw 0xFE 'End of Movements
#org 0x22D067
#raw 0x22 'Step on the Spot Up (Faster)
#raw 0x22 'Step on the Spot Up (Faster)
#raw 0x16 'Slide Up
#raw 0x18 'Slide Right
#raw 0xFE 'End of Movements
#org 0x22D045
#raw 0xB 'Step Right (Normal)
#raw 0x27 'Step on the Spot Left (Fastest)
#raw 0xFE 'End of Movements
#org 0x22D06C
#raw 0x24 'Step on the Spot Right (Faster)
#raw 0x24 'Step on the Spot Right (Faster)
#raw 0x18 'Slide Right
#raw 0x26 'Step on the Spot Up (Fastest)
#raw 0xFE 'End of Movements
#org 0x22D017
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements
#org 0x22D04B
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements
#org 0x22D02F
#raw 0x13 'Delay4
#raw 0x26 'Step on the Spot Up (Fastest)
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0x28 'Step on the Spot Right (Fastest)
#raw 0xFE 'End of Movements
#org 0x22D023
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements
#org 0x22D058
#raw 0x9 'Step Up (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements
Thanks for your answer.
Last edited by a moderator: