;
; Events text for Star Wars Hoth Battle Scenario
; 1997 Brandon Dunaway
;
;

@BEGINEVENTS

@IF
SCENARIOLOADED
@THEN
PLAYCDTRACK
17
DONTPLAYWONDERS
@ENDIF

@IF
TURN
turn=1
@THEN
TEXT
^An Imperial Probe Droid streaks across the sky of Hoth
 and crashes near the Rebel Base.  Finding the secret
 base of the Rebellion, the droid immediately sends back
 a coded message to the Galactic Empire.  Once signaled,
 it is not long before the Empire has a landing party 
 headed for the Rebels.  The battle of Hoth has begun!
ENDTEXT
@ENDIF

@IF
TURN
turn=every
@THEN
@IF
TURN
turn=every
@THEN
MOVEUNIT
unit=AT-AT
owner=Empire
maprect
13,1
77,1
77,27
13,27
moveto
11,15
numbertomove=ALL
@ENDIF

MOVEUNIT
unit=AT-ST
owner=Empire
maprect
13,1
77,1
77,27
13,27
moveto
11,15
numbertomove=ALL
@ENDIF

@IF
UNITKILLED
unit=Rogue5
attacker=anybody
defender=anybody
@THEN
CREATEUNIT
owner=Rebellion
unit=Luke Skywalker
veteran=Yes
homecity=None
locations
51,15
50,16
51,17
52,16
49,15
49,17
endlocations
TEXT
^Luke Skywalker, having lost his gunman Dack and control of his
 snow speeder after a fatal attack, crashes and is
 forced to continue the battle on foot.
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=AT-AT
attacker=anybody
defender=anybody
@THEN
CREATEUNIT
owner=Empire
unit=General Veers
veteran=Yes
homecity=None
locations
43,13
43,19
38,16
37,17
34,10
34,18
endlocations
TEXT
^^Wedge: "Woah, That Got 'Em!"
^
^Barely escaping his AT-AT Walker before it explodes,
 General Veers joins the Storm Troopers with the ground
 assualt.
ENDTEXT
JUSTONCE
@ENDIF

@IF
TURN
turn=5
@THEN
TEXT
^The first Rebel Transport is away!
^But can the Rebellion hold out long
 enough for the other Transports?
ENDTEXT
@ENDIF

@IF
TURN
turn=22
@THEN
CREATEUNIT
owner=Empire
unit=Darth Vader
veteran=Yes
homecity=None
locations
49,51
51,15
53,15
52,14
49,17
47,11
47,21
endlocations
TEXT
^Believing his victory to be at hand, Imperial Lord
 Darth Vader himself lands on the battlefield of
 Hoth to crush the Rebellion once and for all.
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=Luke Skywalker
attacker=anybody
defender=anybody
@THEN
TEXT
^Luke has been killed in the battle!  Alas, the last
 of the good jedi has passed into history.  Where now
 lies the Rebellion's hope?
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=Darth Vader
attacker=anybody
defender=anybody
@THEN
TEXT
^The powerful Lord of the Sith has perished!  New
 courage fills within the spirits of the Rebel
 freedom fighters.  Can the Empire go on to victory?
ENDTEXT
@ENDIF

@IF
TURN
turn=35
@THEN
TEXT
^Can the Rebellion keep back the Imperials for 15 more
 turns, long enough for the final transports to be
 ready for takeoff?
ENDTEXT
@ENDIF

@ENDEVENTS
