If the script is supposed to activate when 0x4001 is equal to 0x1, your script should look like this:
Code:
'---------------
#org 0x71C13C
#raw 0x2
#raw pointer 0x871C142
#raw 0x0
'---------------
#org 0x71C142
#raw word 0x4001
#raw word 0x1
#raw pointer 0x88088CE
#raw word 0x0
'---------------
#org 0x8088CE
lock
checkflag 0x207
if 0x1 goto 0x88088E9
checkflag 0x828
if 0x1 goto 0x88088EC
setvar 0x4001 0x2
release
end
'---------------
#org 0x8088E9
release
end
'---------------
#org 0x8088EC
applymovement 0x1 0x8808934
waitmovement 0x0
msgbox 0x880893E 0x6 '"[red_fr][player], what do you mean..."
applymovement 0xFF 0x8808981
waitmovement 0x0
applymovement 0x1 0x880898F
waitmovement 0x0
msgbox 0x880A0F4 0x6 '"[red_fr]I'm sorry, [player].\nI ju..."
applymovement 0xFF 0x880A175
msgbox 0x880A17A 0x6 '"[red_fr]Oh, [player].. just don't\..."
setflag 0x207
setvar 0x4001 0x2
release
end
'---------
' Strings
'---------
#org 0x80893E
= [red_fr][player], what do you mean you're\nleaving?\lYou can't just leave me!
#org 0x80A0F4
= [red_fr]I'm sorry, [player].\nI just.. didn't want anything bad\lto happen to you.. But I know this\lmeans a lot to you, so I'll let\lyou go.
#org 0x80A17A
= [red_fr]Oh, [player].. just don't\nlet anything bad happen to you..\lAnd please just don't go near the\lprison in Filler Citty.\l
'-----------
' Movements
'-----------
#org 0x808934
#raw 0x62 'Exclamation Mark (!)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements
#org 0x808981
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0x5 'Face Up (Faster)
#raw 0x6 'Face Left (Faster)
#raw 0x7 'Face Right (Faster)
#raw 0x8 'Step Down (Very Slow)
#raw 0x9 'Step Up (Very Slow)
#raw 0x5 'Face Up (Faster)
#raw 0x6 'Face Left (Faster)
#raw 0x7 'Face Right (Faster)
#raw 0x8 'Step Down (Very Slow)
#raw 0x9 'Step Up (Very Slow)
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0xFE 'End of Movements
#org 0x80898F
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0xFE 'End of Movements
#org 0x80A175
#raw 0x0 'Face Down
#raw 0x66 'Happy ()
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements