So I've made a script that should activate when first entering the Lab, however I have a few issues with it.
The first is that it is kinda broken, there is a part in the script where the prof walks over to a computer and says a message. He is then supposed to walk back but he doesn't, the game freezes, however the music keeps playing.
The next issue is that, before I added the movement in and the script didn't freeze, the script loaded every time I walked into the lab, I only want it to once, and only after I have spoken to the prof outside.
I have tried to fix this w/a flag check but that did not work
also, if I enter the lab before the prof sprite has been loaded on it, i simply keep looping the script and eventually walk off the map.
The final issue I have (a small one) is that the text is all in black, not the normal blue.
I'll put the script below!
#dynamic 0x800000
#org @start
setvar 0x4001 0x0
goto 0x8808E05
'---------------
#org 0x808E05
applymovement 0x4 0x8808E36
applymovement MOVE_PLAYER 0x8808E41
waitmovement 0x4
waitmovement 0xFF
msgbox 0x8808E59 MSG_NORMAL '"Hawthorn: [player], congrats on ge..."
applymovement 0x4 0x8808E4B
waitmovement 0x4
msgbox @waits 0x6
applymovement 0x4 @waiting
waitmovement 0x4
msgbox 0x8808F06 MSG_NORMAL '"Hawthorn: Sorry about that, I just..."
release
end
'---------
' Strings
'---------
#org @waits
= Hawthorn: ..., I see.
#org 0x808E59
= Hawthorn: [player], congrats on getting\na Pokémon. I remeber my first\lPokémon, my partner gave it to me\las a birthday gift a long time ago\lnow. Anyway, I have asked here to\l...
#org 0x808F06
= Hawthorn: Sorry about that, I just\ngot an automated message from the\lLuxborough Pokémart. My parcel has\ljust got in. Could you do me a\lfavour and go and get it for me?
'-----------
' Movements
'-----------
#org 0x808E36
#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 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements
#org 0x808E41
#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 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
#org 0x808E4B
#raw 0x62 'Exclamation Mark (!)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE
#org @waiting
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements
The first is that it is kinda broken, there is a part in the script where the prof walks over to a computer and says a message. He is then supposed to walk back but he doesn't, the game freezes, however the music keeps playing.
The next issue is that, before I added the movement in and the script didn't freeze, the script loaded every time I walked into the lab, I only want it to once, and only after I have spoken to the prof outside.
I have tried to fix this w/a flag check but that did not work
also, if I enter the lab before the prof sprite has been loaded on it, i simply keep looping the script and eventually walk off the map.
The final issue I have (a small one) is that the text is all in black, not the normal blue.
I'll put the script below!
Spoiler:
#dynamic 0x800000
#org @start
setvar 0x4001 0x0
goto 0x8808E05
'---------------
#org 0x808E05
applymovement 0x4 0x8808E36
applymovement MOVE_PLAYER 0x8808E41
waitmovement 0x4
waitmovement 0xFF
msgbox 0x8808E59 MSG_NORMAL '"Hawthorn: [player], congrats on ge..."
applymovement 0x4 0x8808E4B
waitmovement 0x4
msgbox @waits 0x6
applymovement 0x4 @waiting
waitmovement 0x4
msgbox 0x8808F06 MSG_NORMAL '"Hawthorn: Sorry about that, I just..."
release
end
'---------
' Strings
'---------
#org @waits
= Hawthorn: ..., I see.
#org 0x808E59
= Hawthorn: [player], congrats on getting\na Pokémon. I remeber my first\lPokémon, my partner gave it to me\las a birthday gift a long time ago\lnow. Anyway, I have asked here to\l...
#org 0x808F06
= Hawthorn: Sorry about that, I just\ngot an automated message from the\lLuxborough Pokémart. My parcel has\ljust got in. Could you do me a\lfavour and go and get it for me?
'-----------
' Movements
'-----------
#org 0x808E36
#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 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements
#org 0x808E41
#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 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
#org 0x808E4B
#raw 0x62 'Exclamation Mark (!)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE
#org @waiting
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements