TILEMASTER2004 DATA V1
SCRIPT: 100
0 CCheckPos -MAP 203 -TAG 10  -MAP 204 -TAG 40  -MAP 205 -TAG 70  -MAP 206 -TAG 100
0 M "ERROR (start/exit script): Unknown map"
0 BREAK
10 CheckScriptType EXIT 20
0 GOTO 30
20 DBG "DBG: Map 203 exit script"
0 CheckPos 0 0 2 21
0 CheckPos 0 0 8 21
0 CheckPos 0 10 2 22
0 CheckPos 0 10 8 22
0 DBG "DBG: Not exiting processed position"
0 BREAK
21 DBG "DBG: Checking W side enemies"
0 CheckBFlag 5 1 1 0
0 CheckCreatures 1-8 ENEMY 0
0 SetBFlag 5 1
0 BREAK
22 DBG "DBG: Checking E side enemies"
0 CheckBFlag 5 2 1 0
0 CheckCreatures 9-16 ENEMY 0
0 SetBFlag 5 2
0 BREAK
30 DBG "DBG: Map 203 start script"
0 CheckBFlag 5 1 0 31
0 RemoveMapObj Creature 1-8 -DELETE
31 CheckBFlag 5 2 0 0
0 RemoveMapObj Creature 9-16 -DELETE
0 BREAK
40 CheckScriptType EXIT 50
0 GOTO 60
50 DBG "DBG: Map 204 exit script"
0 CheckPos 0 0 2 51
0 CheckPos 0 0 8 51
0 CheckPos 0 10 2 52
0 CheckPos 0 10 8 52
0 DBG "DBG: Not exiting processed position"
0 BREAK
51 DBG "DBG: Checking W side enemies"
0 CheckBFlag 5 3 1 0
0 CheckCreatures 1-9 ENEMY 0
0 SetBFlag 5 3
0 BREAK
52 DBG "DBG: Checking E side enemies"
0 CheckBFlag 5 4 1 0
0 CheckCreatures 10-18 ENEMY 0
0 SetBFlag 5 4
0 BREAK
60 DBG "DBG: Map 204 start script"
0 CheckBFlag 5 3 0 61
0 RemoveMapObj Creature 1-9 -DELETE
61 CheckBFlag 5 4 0 0
0 RemoveMapObj Creature 10-18 -DELETE
0 BREAK
70 CheckScriptType EXIT 80
0 GOTO 90
80 DBG "DBG: Map 205 exit script"
0 CheckPos 0 0 2 81
0 CheckPos 0 0 8 81
0 CheckPos 0 10 2 82
0 CheckPos 0 10 8 82
0 DBG "DBG: Not exiting processed position"
0 BREAK
81 DBG "DBG: Checking W side enemies"
0 CheckBFlag 5 5 1 0
0 CheckCreatures 1-12 ENEMY 0
0 SetBFlag 5 5
0 BREAK
82 DBG "DBG: Checking E side enemies"
0 CheckBFlag 5 6 1 0
0 CheckCreatures 13-24 ENEMY 0
0 SetBFlag 5 6
0 BREAK
90 DBG "DBG: Map 204 start script"
0 CheckBFlag 5 5 0 91
0 RemoveMapObj Creature 1-12 -DELETE
91 CheckBFlag 5 6 0 0
0 RemoveMapObj Creature 13-24 -DELETE
0 BREAK
100 CheckScriptType EXIT 110
0 GOTO 120
110 DBG "DBG: Map 206 exit script"
0 DBG "DBG: Checking enemies"
0 CheckBFlag 5 7 1 0
0 CheckCreatures 1-9 ENEMY 0
0 SetBFlag 5 7
0 BREAK
120 DBG "DBG: Map 206 start script"
0 CheckBFlag 5 7 0 0
0 RemoveMapObj Creature 1-9 -DELETE
