I've encountered a problem with scripting. Again.
This is my script:
#org 0x6C46D0
checkflag 0x80C
compare LASTRESULT 0x1
if 0x1 call 0x6C4702
movesprite 0x11 0x11 0x22
applymovement 0x12 0x6C4734
pause 0x20
message 0x6C44C9
boxset 0x6
applymovement 0xFF 0x6C4766
pause 0x10
release
end
#org 0x6C4734
#raw 0x01
#raw 0x02
#raw 0xFE
#org 0x6C4702
message 0x6B45EA
boxset 0x6
release
end
#org 0x6C4766
#raw 0x09
#raw 0xFE
I want it to check if the player has the sixth Badge, if yes, say a message, if no, make a sprite move to x=11, y=22, make the sprite look up, then look to the left, then make a message appear, then make the player walk one block to the north.
So, I inserted it into my ROM, and activated it. Here comes the first problem - the movesprite command doesn't work (btw, the Rubikon log said that there was an unknown character or something like that). Anyway, then the message appears, and I walk one block to the north. However, then the other message appeared (the one that's suppossed to appear if the player has the sixth Badge). I have no idea why.
Can anyone help me with this script? I'm hacking Pokémon Ruby, and i'm trying to make this script activate in the Littleroot Town map.