home *** CD-ROM | disk | FTP | other *** search
- // A=me, B,C=objects to dodge around
-
- A: CANTPICK
- B: CANTPICK
- C: CANTPICK
-
- Targets(BC)
-
- Start(A)
-
- Unlock
-
- Label(DODGE_TIMED)
-
- Do(SayIm[A,"DODGE AWARE",B])
- Label(PICK_NEW_DODGE_TIMED)
- Do(Random[A,8])
- If(RandomIs[A,0]): DodgeAroundLeft(AB)
- If(RandomIs[A,1]): DodgeAroundRight(AB)
- If(RandomIs[A,2]): DodgeAroundAbove(AB)
- If(RandomIs[A,3]): DodgeAroundBelow(AB)
- If(RandomIs[A,4]): DodgeAroundLeft(AC)
- If(RandomIs[A,5]): DodgeAroundRight(AC)
- If(RandomIs[A,6]): DodgeAroundAbove(AC)
- If(RandomIs[A,7]): DodgeAroundBelow(AC)
- Do(Random[A,4])
- If(RandomIs[A,0]): Timer(A,2000)
- If(RandomIs[A,1]): Timer(A,3000)
- If(RandomIs[A,2]): Timer(A,4000)
- If(RandomIs[A,3]): Timer(A,5000)
- Label(DODGE_TIMED_LOOP)
- // Has the time limit expired yet?
- If(Timer[A]): Goto(DODGE_TIMED_LOOP)
- Goto(PICK_NEW_DODGE_TIMED)
-
- Label(Adone)
- Goto(Adone)
-
-