//---------------------------------------------------------------------------
// Script file for the level 2 of the Chemical plant sabotage
// Geoffroy Audy, October 22th 1996
//---------------------------------------------------------------------------

define  STEAM1     0
define  STEAM2     1
define  STEAM3     2
define  STEAM4     3
define  STEAM5     4
define  STEAM6     5
define  STEAM7     6
define  STEAM8     7
define  STEAM9     8
define  STEAM10    9
define  STEAM11    10
define  STEAM12    11
define  CHEMY1     12
define  CHEMY2     13
define  CHEMY3     14
define  CHEMY4     15
define  CHEMY5     16
define  CHEMY6     17
define  CHEMY7     18
define  CHEMY8     19
define  CHEMY9     20
define  CHEMY10    21
define  CHEMY11    22
define  CHEMY12    23
define  CHEMY13    24
define  CHEMY14    25
define  CHEMY15    26
define  CHEMY16    27
define  CHEMY17    28
define  CHEMY18    29
define  CHEMY19    30
define  CHEMY20    31
define  CHEMY21    32
define  CHEMY22    33
define  CHEMY23    34
define  CHEMY24    35
define  CHEMY25    36
define  CHEMY26    37
define  CHEMY27    38
define  CHEMY28    39
define  BIGYELLO1  40
define  BIGYELLO2  41
define  BIGYELLO3  42
define  BIGYELLO4  43
define  BIGYELLO5  44
define  BIGYELLO6  45
define  YELLOW1    46
define  YELLOW2    47
define  YELLOW3    48
define  YELLOW4    49
define  YELLOW5    50
define  YELLOW6    51
define  YELLOW7    52
define  YELLOW8    53
define  YELLOW9    54
define  YELLOW10   55
define  YELLOW11   56
define  YELLOW12   57
define  YELLOW13   58
define  YELLOW14   59
define  YELLOW15   60
define  YELLOW16   61
define  YELLOW17   62
define  YELLOW18   63

define  L1         0            // Difficulty levels
define  L2         1
define  L3         2
define  L4         3
define  L5         4
define  L6         5
define  L7         6
define  L8         7

//-------------------------------------
// Start initialization
//-------------------------------------
loadBKD \BACKGRND\CHEMICAL\CHEMICL2.BKD         // BKD 0        Inst. 0
setBKDLoc 0 0 0 0                               //
loadVAB \SOUNDFX\CHEMICAL.VAB                      // Sound fx

loadKRT \SPRITES\CHEMICAL\LEVEL2\STEAM.KRT      // Char 0
ObjectCharacteristics STEAM1 1184               // Char 0 is an object
CloneCharacter STEAM1                           // Char 1
CloneCharacter STEAM1                           // Char 2
CloneCharacter STEAM1                           // Char 3
CloneCharacter STEAM1                           // Char 4
CloneCharacter STEAM1                           // Char 5
CloneCharacter STEAM1                           // Char 6
CloneCharacter STEAM1                           // Char 7
CloneCharacter STEAM1                           // Char 8
CloneCharacter STEAM1                           // Char 9
CloneCharacter STEAM1                           // Char 10
CloneCharacter STEAM1                           // Char 11
loadKRT \SPRITES\CHEMICAL\LEVEL1\CHEMY.KRT      // Char 12
CloneCharacter CHEMY1                           // Char 13
CloneCharacter CHEMY1                           // Char 14
CloneCharacter CHEMY1                           // Char 15
CloneCharacter CHEMY1                           // Char 16
CloneCharacter CHEMY1                           // Char 17
CloneCharacter CHEMY1                           // Char 18
CloneCharacter CHEMY1                           // Char 19
CloneCharacter CHEMY1                           // Char 20
CloneCharacter CHEMY1                           // Char 21
CloneCharacter CHEMY1                           // Char 22
CloneCharacter CHEMY1                           // Char 23
CloneCharacter CHEMY1                           // Char 24
CloneCharacter CHEMY1                           // Char 25
CloneCharacter CHEMY1                           // Char 26
CloneCharacter CHEMY1                           // Char 27
CloneCharacter CHEMY1                           // Char 28
CloneCharacter CHEMY1                           // Char 29
CloneCharacter CHEMY1                           // Char 30
CloneCharacter CHEMY1                           // Char 31
CloneCharacter CHEMY1                           // Char 32
CloneCharacter CHEMY1                           // Char 33
CloneCharacter CHEMY1                           // Char 34
CloneCharacter CHEMY1                           // Char 35
CloneCharacter CHEMY1                           // Char 36
CloneCharacter CHEMY1                           // Char 37
CloneCharacter CHEMY1                           // Char 38
CloneCharacter CHEMY1                           // Char 39
SetScale CHEMY1 5200
SetScale CHEMY4 5200
SetScale CHEMY5 4800
SetScale CHEMY8 4800
SetScale CHEMY9 3900
SetScale CHEMY10 3900
SetScale CHEMY11 4800
SetScale CHEMY12 4800
SetScale CHEMY14 4800
SetScale CHEMY15 3900
SetScale CHEMY16 4800
SetScale CHEMY17 3900
SetScale CHEMY18 4800
SetScale CHEMY19 4800
SetScale CHEMY20 4800
SetScale CHEMY21 4800
SetScale CHEMY22 3900
SetScale CHEMY23 3900
SetScale CHEMY24 4800
SetScale CHEMY25 4800
SetScale CHEMY26 4800
SetScale CHEMY27 3900
SetScale CHEMY28 4800
loadKRT \SPRITES\CHEMICAL\LEVEL1\BIGYELLO.KRT   // Char 40
CloneCharacter BIGYELLO1                        // Char 41
CloneCharacter BIGYELLO1                        // Char 42
CloneCharacter BIGYELLO1                        // Char 43
CloneCharacter BIGYELLO1                        // Char 44
CloneCharacter BIGYELLO1                        // Char 45
loadKRT \SPRITES\CHEMICAL\LEVEL1\YELLOW.KRT     // Char 46
CloneCharacter YELLOW1                          // Char 47
CloneCharacter YELLOW1                          // Char 48
CloneCharacter YELLOW1                          // Char 49
CloneCharacter YELLOW1                          // Char 50
CloneCharacter YELLOW1                          // Char 51
CloneCharacter YELLOW1                          // Char 52
CloneCharacter YELLOW1                          // Char 53
CloneCharacter YELLOW1                          // Char 54
CloneCharacter YELLOW1                          // Char 55
CloneCharacter YELLOW1                          // Char 56
CloneCharacter YELLOW1                          // Char 57
CloneCharacter YELLOW1                          // Char 58
CloneCharacter YELLOW1                          // Char 59
CloneCharacter YELLOW1                          // Char 60
CloneCharacter YELLOW1                          // Char 61
CloneCharacter YELLOW1                          // Char 62
CloneCharacter YELLOW1                          // Char 63
SetScale YELLOW1 4800
SetScale YELLOW2 4800
SetScale YELLOW4 4800
SetScale YELLOW6 4800
SetScale YELLOW7 4800
SetScale YELLOW9 4800
SetScale YELLOW10 4800
SetScale YELLOW11 3900
SetScale YELLOW12 3900
SetScale YELLOW13 3900
SetScale YELLOW14 3600
SetScale YELLOW15 4800
SetScale YELLOW16 3900
SetScale YELLOW17 4800
SetScale YELLOW18 3900

PlayTrack 504 0           // Play STAGE2

SetDepth CHEMY28 9
Link STEAM7 STEAM1 0 5 0 1 125 60
Link STEAM8 STEAM2 0 5 0 1 185 60
Link STEAM9 STEAM3 0 5 0 0 284 60
Link STEAM10 STEAM4 0 6 0 1 314 132
Link STEAM11 STEAM5 0 6 0 1 314 162
Link STEAM12 STEAM6 0 7 0 0 420 143
Link CHEMY28 STEAM5 11 6 0 1 300 190

//-------------------------------------
// Various objects
//-------------------------------------
StartActionXY STEAM1     2 147  59  6    0 0 L1
StartActionXY STEAM2     2 207  59  6    0 0 L1
StartActionXY STEAM3     2 273  59  6    0 0 L1
StartActionXY STEAM4     3 341 128  6    0 0 L1
StartActionXY STEAM5     3 341 158  6    0 0 L1
StartActionXY STEAM6     4 410 139  6    0 0 L1

//-------------------------------------
// Enemy group #1
//-------------------------------------
StartActionXY CHEMY1     6  75 210  9   60 0 L1
StartActionXY YELLOW1    5 325 170  9  120 1 L1
StartActionXY CHEMY2     0  60 110  4  180 0 L1
StartActionXY CHEMY3     0 295 100  4  240 0 L1
StartActionXY YELLOW2    3 100 200  9  300 0 L1
StartActionXY CHEMY4     6 300 210  9  360 1 L1
StartActionXY YELLOW3    3 175 115  4  420 0 L1
StartActionXY BIGYELLO1  0  90 290 14  480 0 L1
StartActionXY CHEMY5     0  40 160  9  540 0 L1
StartActionXY CHEMY6     0 243  93  4  600 0 L1
StartActionXY YELLOW4    3 175 200  9  660 0 L1
StartActionXY CHEMY7     0  55 105  4  720 0 L1
StartActionXY YELLOW5    3 295  95  4  780 0 L1
StartActionXY CHEMY8     6 320 200  9  840 1 L1
StartActionXY YELLOW6    3 175 200  9  900 0 L1
StartActionXY CHEMY9     0 245  90  4  960 0 L1
StartActionXY YELLOW7    7 320 190  9 1020 1 L1

ScrollBKDTo 0 -127 0 127 1080

//-------------------------------------
// Enemy group #2
//-------------------------------------
StartActionXY BIGYELLO2  0 230 290 14 1140 0 L1
StartActionXY CHEMY10    0 290  95  4 1200 0 L1
StartActionXY YELLOW8    3 175 107  4 1260 0 L1
StartActionXY CHEMY11    2 400 200  9 1320 0 L1
StartActionXY CHEMY12    2 175 200  9 1380 0 L1
StartActionXY CHEMY13    6 320 100  4 1440 0 L1
StartActionXY CHEMY14    6 425 200  9 1500 1 L1
StartActionXY CHEMY15    0 170 100  4 1560 0 L1
StartActionXY BIGYELLO3  0 220 290 14 1620 0 L1
StartActionXY CHEMY16    2 180 200  9 1680 1 L1
StartActionXY CHEMY17    0 420 110  4 1740 0 L1
StartActionXY YELLOW9    5 125 170  9 1800 0 L1
StartActionXY CHEMY18    2 350 200  9 1860 0 L1
StartActionXY YELLOW10   3 175 200  9 1920 0 L1
StartActionXY YELLOW11   3 300  95  4 1980 0 L1
StartActionXY CHEMY19    6 325 205  9 2040 0 L1
StartActionXY YELLOW12   7 140 105  4 2100 0 L1
StartActionXY CHEMY20    6 425 205  9 2160 1 L1
StartActionXY CHEMY21    2 225 200  9 2220 0 L1
StartActionXY YELLOW13   3 340  95  4 2280 0 L1

ScrollBKDTo 0 -250 0 123 2340

//-------------------------------------
// Enemy group #3
//-------------------------------------
StartActionXY BIGYELLO4  0 360 290 14 2400 0 L1
StartActionXY CHEMY22    6 475 110  4 2460 1 L1
StartActionXY YELLOW14   5 505  85  4 2520 1 L1
StartActionXY CHEMY23    0 300 110  4 2580 0 L1
StartActionXY YELLOW15   3 340 200  9 2640 0 L1
StartActionXY CHEMY24    6 525 200  9 2700 1 L1
StartActionXY CHEMY25    2 450 200  9 2760 0 L1
StartActionXY YELLOW16   7 350  95  4 2820 0 L1
StartActionXY BIGYELLO5  0 375 290 14 2880 0 L1
StartActionXY YELLOW17   3 340 200  9 2940 0 L1
StartActionXY CHEMY26    2 450 200  9 3000 0 L1
StartActionXY BIGYELLO6  0 495 290 14 3060 0 L1
StartActionXY CHEMY27    0 440 110  4 3120 0 L1
StartActionXY YELLOW18   3 300 110  4 3180 0 L1

ScrollBKDTo 0 -250 0 0 3240

EndRound 3241
