Here I have a script in which the player is greeted by their mother after going downstairs at the beginning of the game:
#dynamic 0x800500
#org @start
checkflag 0x8D6
if 0x1 goto @done
applymovement 0x01 @move
waitmovement 0x0
msgbox @1 0x6
applymovement 0x01 @move2
waitmovement 0x0
applymovement 0xFF @move3
msgbox @2 0x6
setflag 0x82F
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
msgbox @4 0x6
applymovement 0x01 @move4
waitmovement 0x0
setflag 0x8D6
release
end
#org @done
release
end
#org @move
#raw 0x03
#raw 0x56
#raw 0xFE
#org @move2
#raw 0x07
#raw 0x07
#raw 0x07
#raw 0x07
#raw 0x07
#org @move3
#raw 0x02
#org @move4
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x06
#raw 0x01
#org @1
= Oh, \v\h01! You're finally\nawake!
#org @2
= Your grandmother's waiting for\nyou out by the pond.\lBefore you go, here, I\lcleaned your runnning shoes!
#org @3
= \v\h01 received the running shoes!
#org @4
= You know how they work...\nPress B to dash through the plains!\lAnyway, like I said, your grandmother's\lwaiting for you outside.\pGo on, honey!
The results of my script are that it doesn't happen right on the spot where I put my script box on Advance Map (the first block from the stair way of the player's house's first story). But, when you walk downstairs, the script doesn't activate, but it does when you walk on another block and then back onto the script box. And the mother does her first two movements good, but when she walks to you she walks immediately back to her original spot without saying anything, and then the game freezes. Any help would be deeply appreciated! :)
Okay, disregard the part about the mother moving back to her spot immediately, I just forgot the #raw 0xFE after each movement. However, the script still doesn't happen tje first time I step on the spot. Help please?