- 20
- Posts
- 10
- Years
- Seen Jan 10, 2022
Can you please help me. I am making a script where the main character approaches a hole from the left side. He needs to explore the area before deciding to jump down. Here if the script:
#dynamic 0x800000
#org @event1
lock
faceplayer
checkflag 0x200
If 0x0 goto @done1
checkflag 0x201
If 0x1 goto @done2
msgbox @1 0x6
setflag 0x201
release
end
#org @done1
msgbox @2 0x6
applymovement 0xFF @move1
release
end
#org @done2
release
end
#org @move1
#raw 0x2
#raw 0x12
#raw 0xFE
#org @1
= \v\h01: OKay...\n...\lHere we go!
#org @2
= \v\h01: Maybe I should find\nanother exit.
And here is the script when the player attempts to exit through a small cavern:
#dynamic 0x800000
#org @event2
lock
faceplayer
msgbox @3 0x6
setflag 0x200
release
end
#org @3
= \v\h01: This path has been\nblocked off, I'm gonna\ltake the risk and jump\ldown that hole I saw\learlier.
Please tell me the error i made. i used Advanced Map to make the event, I put in the dynamic offset (changed when compiled) but thats it. When I go over any of the events. It freezes me but the music still plays.
#dynamic 0x800000
#org @event1
lock
faceplayer
checkflag 0x200
If 0x0 goto @done1
checkflag 0x201
If 0x1 goto @done2
msgbox @1 0x6
setflag 0x201
release
end
#org @done1
msgbox @2 0x6
applymovement 0xFF @move1
release
end
#org @done2
release
end
#org @move1
#raw 0x2
#raw 0x12
#raw 0xFE
#org @1
= \v\h01: OKay...\n...\lHere we go!
#org @2
= \v\h01: Maybe I should find\nanother exit.
And here is the script when the player attempts to exit through a small cavern:
#dynamic 0x800000
#org @event2
lock
faceplayer
msgbox @3 0x6
setflag 0x200
release
end
#org @3
= \v\h01: This path has been\nblocked off, I'm gonna\ltake the risk and jump\ldown that hole I saw\learlier.
Please tell me the error i made. i used Advanced Map to make the event, I put in the dynamic offset (changed when compiled) but thats it. When I go over any of the events. It freezes me but the music still plays.