TILEMASTER2004 DATA V1
SCRIPT: 75
0 DBG "DBG: Ambush script running"
0 SetRedraw 0
0 CheckTile 159 PC 70
0 CheckPCTerrain WATER 20
0 CheckPCTerrain 101 20
0 CheckPCTerrain WATER 50 -YOS -1
0 CheckPCTerrain WATER 50 -YOS 1
0 CheckPCTerrain WATER 50 -XOS -1
0 CheckPCTerrain WATER 50 -XOS 1
0 CheckPCTerrain 101 60 -YOS -1
0 CheckPCTerrain 101 60 -YOS 1
0 CheckPCTerrain 101 60 -XOS -1
0 CheckPCTerrain 101 60 -XOS 1
0 GOTO 30
10 SetRedraw 1
0 BREAK
11 SetRedraw 1
0 Random 50 0
0 SetZMRetreat -CREATURE TARGET
0 BREAK
20 CRandom 80 21 20 -
0 Message "Ambush!"
0 Pause
0 EnterZM -DEFFILE 1
0 CreateZMEnemies -TERRAIN WATER -ETAB OMAP -EGTAB OMAP -CTYPE 16
0 GOTO 11
21 Message "Ambush!  Aquatic terrors suddenly burst out from under the surface of the water."
0 Pause
0 EnterZM -DEFFILE 1
0 CreateZMEnemies -CTYPE 102 -EGTAB OMAP
0 GOTO 10
30 Message "Ambush!"
0 Pause
0 EnterZM -DEFFILE 1
0 CheckPos 103 -1 -1 32
0 CheckPos 104 -1 -1 32
31 Teleport 0 5 5
0 GOTO 40
32 Teleport 0 4 6
40 CheckPos 101 -1 -1 42
0 CheckPos 103 -1 -1 43
41 CreateZMEnemies -TERRAIN LAND -ETAB OMAP -EGTAB OMAP -CTYPE 11 -POSDEF 500
0 GOTO 11
42 CreateZMEnemies -TERRAIN LAND -ETAB OMAP -EGTAB OMAP -CTYPE 11 -POSDEF 501
0 GOTO 11
43 CreateZMEnemies -TERRAIN LAND -ETAB OMAP -EGTAB OMAP -CTYPE 11 -POSDEF 502
0 GOTO 11
50 CRandom 80 51 20 -
0 GOTO 30
51 Message "Ambush!"
0 Pause
0 EnterZM -ETERRAIN WATER
52 Teleport 0 5 7
0 CreateZMEnemies -CTYPE 102 -EGTAB OMAP -POS 6 9  3 6  4 9  6 5  7 8  4 4  2 8  2 5  8 6  6 3  9 8  4 4  1 7  6 5  3 2  8 1
0 GOTO 10
60 CRandom 80 61 20 -
0 GOTO 30
61 Message "Ambush!"
0 Pause
0 EnterZM -ETERRAIN 101
0 GOTO 52
70 Message "Ambush!"
0 Pause
0 EnterZM
0 Teleport 0 5 5
0 CRandom 75 -  25 72
71 CreateZMEnemies -TERRAIN LAND -ETAB OMAP -EGTAB OMAP -CTYPE 11 -POSDEF 503
0 GOTO 11
72 CreateZMEnemies -CTYPE 102 -EGTAB OMAP -POS 7 5  3 7  3 4  8 7  2 6  7 3  8 4  2 3  2 5  8 6  3 8  7 2  3 2  3 5  7 6  9 5
0 GOTO 10
500 Def 1 2  8 7  2 8  7 1  6 9  9 3  4 1  1 6  3 9  9 6  8 1  1 3  3 1  1 9  9 8  7 9
501 Def 0 5  4 1  6 9  7 1  2 9  7 10  0 6  3 0  6 1  4 10  5 0  1 8  8 9  8 0  0 7  2 0
502 Def 5 1  5 9  1 5  9 7  2 1  7 1  6 9  0 4  4 0  2 10  10 6  3 9  3 0  1 4  4 10  8 10
503 Def 5 1  5 9  4 1  6 9  6 1  4 9  5 0  5 10  4 0  6 10  6 0  4 10  3 1  7 9  7 1  3 9
