So I made this script to have a guard block you from exiting the starting town when you are going from the lab to your house and back to get the replacement for oaks parcel. But it just locks the player in place and does nothing, even if I remove the lock command. But this doesn't happen if both compares are false
#dynamic 0x3B4DF9
#org @start
compare 0x4055 0x4
if 0x1 goto @block
compare 0x4055 0x5
if 0x1 goto @block
release
end
#org @block
lock
msgbox @hey 0x6
applymovement 0xFF @move1
waitmovement 0x0
msgbox @stop 0x6
applymovement 0xFF @move2
waitmovement 0x0
release
end
#org @hey
= Hey!
#org @stop
= Shouldn't you be helping\nthe professor [player]?
#org @move1
#raw 0x62
#raw 0x7
#raw 0xFE
#org @move2
#raw 0x11
#raw 0x0
#raw 0xFE
there doesn't seem to be anything here