- 73
- Posts
- 8
- Years
- Seen Apr 18, 2023
So I need a bit of help. I created a basic movement script and everything works fine. The NPC moves accordingly to the script and in the correct order. However, when the NPC enters a house I have him pathed to, the game goes black. Anyone able to help? Here's the script:
'---------------
#org 0x800A00
msgbox 0x8800A36 MSG_NORMAL '"Wait! I'm coming!"
applymovement 0x6 0x8800A4A
waitmovement 0x6
msgbox 0x8800A54 MSG_NORMAL '"I'm Professor Miso! Nice to meet\n..."
applymovement MOVE_PLAYER 0x8800AAE
waitmovement 0xFF
applymovement 0x6 0x8800AB2
waitmovement 0x6
setvar 0x6000 0x1
setflag 0x1200
release
end
'---------
' Strings
'---------
#org 0x800A36
= Wait! I'm coming!
#org 0x800A54
= I'm Professor Miso! Nice to meet\nyou! Come with me. I may still\lhave a Pokemon for you.
'-----------
' Movements
'-----------
#org 0x800A4A
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
#org 0x800AAE
#raw 0x1F 'Step Left (Fast)
#raw 0x7 'Face Right (Faster)
#raw 0xFE 'End of Movements
#org 0x800AB2
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
'---------------
#org 0x800A00
msgbox 0x8800A36 MSG_NORMAL '"Wait! I'm coming!"
applymovement 0x6 0x8800A4A
waitmovement 0x6
msgbox 0x8800A54 MSG_NORMAL '"I'm Professor Miso! Nice to meet\n..."
applymovement MOVE_PLAYER 0x8800AAE
waitmovement 0xFF
applymovement 0x6 0x8800AB2
waitmovement 0x6
setvar 0x6000 0x1
setflag 0x1200
release
end
'---------
' Strings
'---------
#org 0x800A36
= Wait! I'm coming!
#org 0x800A54
= I'm Professor Miso! Nice to meet\nyou! Come with me. I may still\lhave a Pokemon for you.
'-----------
' Movements
'-----------
#org 0x800A4A
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
#org 0x800AAE
#raw 0x1F 'Step Left (Fast)
#raw 0x7 'Face Right (Faster)
#raw 0xFE 'End of Movements
#org 0x800AB2
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements