View Single Post
Old November 7th, 2012 (7:25 AM).
crystalmole crystalmole is offline
Join Date: Nov 2012
Gender: Male
Posts: 8
Originally Posted by itman View Post
Basically, in a part of your trigger your script, you are going to want to check if a separate event happened first before it activates: then it goes to the right script depending on whether the event happened or not.

So somewhere in your trigger script, you'll need to put a:
checkflag 0x200 (or any other flag number)
if 0x1 goto @done (or any pointer)

It'll make the script check if another event has happened yet. Therefore, in a separate event, you'll need to put a:
setflag 0x200 (the same flag number we are checkign for above)
When that flag is set, the trigger script will check and see that the event already happened, and allow you to do anything you want (advance into next area, etc..)
Ok so I tried doing that and came up with this script.
#dynamic 0x800000
#org @start
checkflag 0x828
if 0x1 goto @done
applymovement 0x4 @move
waitmovement 0x4
msgbox @1 0x6
applymovement 0x4 @move2
waitmovement 0x4

#org @done
msgbox @2 0x6

#org @1
= Wait! You cant go out\pWithout a Pokemon!

#org @2
= Yay!

#org @move
#raw 0x62
#raw 0x0
#raw 0x10

#org @move2
#raw 0x1
#raw 0x11

It made the game freeze as soon as I stepped on the tile
Do you know what I did wrong?