home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 2000 January
/
CD-Gamer_2000-01_04_cd.bin
/
games
/
phoenix.exe
/
Tactics
/
Mission2
/
DodgeAroundObjects.tac
< prev
Wrap
Text File
|
1998-12-21
|
853b
|
39 lines
// 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)