;
; Events text for Starwars : Battle of Endor Scenario
; Copyright(c) 1997 by Markus Schlegel
;
;

@BEGINEVENTS

@IF
SCENARIOLOADED
@THEN
PLAYCDTRACK
3
TEXT
^Once again the Empire the Emperor is planning to build a space station
^even greater then all structure ever built in space. This space station
^is called the DEATH STAR and it is almost as big as a small moon.
^Rebels have been able to get the construction plans and the
^location of this building site, near to the moon Endor. So they are
^planning a major attack to destroy this threat for the liberty and even 
^the existence of a free Federation of Rebel Planets.
ENDTEXT   
@ENDIF

@IF
NEGOTIATION
talker=Rebels
talkertype=humanorcomputer
listener=Empire
listenertype=humanorcomputer
@THEN

@ENDIF

@IF
NEGOTIATION
talker=Empire
talkertype=humanorcomputer
listener=Rebels
listenertype=humanorcomputer
@THEN

@ENDIF

@IF
NEGOTIATION
talker=Empire
talkertype=humanorcomputer
listener=Ewoks
listenertype=humanorcomputer
@THEN

@ENDIF

@IF
NEGOTIATION
talker=Ewoks
talkertype=humanorcomputer
listener=Empire
listenertype=humanorcomputer
@THEN

@ENDIF
  
@IF 
UNITKILLED
unit=Death Star
attacker=anybody
defender=anybody
@THEN
TEXT
^Rebel Forces have acheived a decisive victory against the Empire. Along with
^the destruction of the Emperor's mightiest weapon, the Death Star the
^power of the dark is broken. Imperial Forces are shattered and even if they are
^not defeated yet, peoples' freedom is at reach.
ENDTEXT 

@IF
UNITKILLED
unit=Jedi Knight 
attacker=anybody
defender=anybody
@THEN
TEXT
^Luke Skywalker died in the Battle of Endor. The Forces of Light have
^suffered a great loss in their battle against the Dark Empire. But the
^survivors vow to carry on until the defeat of the emperor.
ENDTEXT
PLAYWAVEFILE
funeral.wav
@ENDIF 
 
@IF
UNITKILLED
unit=Darth Vader
attacker=anybody
defender=anybody
@THEN
TEXT
^Darth Vader died while leading his dark Forces against the Rebels on
^Endor. Facing Death through his natural eyes he turned away from the
^dark side of Power an joined again the Forces of Light.
^But even while this is a great loss for the Empire, the emperor
^himself will continue to crush the rebel forces and to strengthen his
^powers.  
ENDTEXT
PLAYWAVEFILE
funeral.wav
@ENDIF  

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
TEXT
^The rebel forces have captured the shield generator station based on Endor
^which provides the power of the Death Stars defense shield.
^After turning off these generators, rebel star ships jump in. Their target
^is : The destruction of the DEATH STAR !!
ENDTEXT
CREATEUNIT
unit=X-Wing
owner=Rebels
veteran=true
homecity=none
locations
69,37
73,37
68,40
71,39
77,39
77,35
77,31
76,38
76,40
77,43
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=X-Wing
owner=Rebels
veteran=true
homecity=none
locations
73,37
68,40
71,39
77,39
77,35
77,31
76,38
76,40
77,43
69,37
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=X-Wing
owner=Rebels
veteran=true
homecity=none
locations
68,40
71,39
77,39
77,35
77,31
76,38
76,40
77,43
69,37
73,37
endlocations
@ENDIF 

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=X-Wing
owner=Rebels
veteran=true
homecity=none
locations
68,40
71,39
77,39
77,35
77,31
76,38
76,40
77,43
69,37
73,37
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=X-Wing
owner=Rebels
veteran=true
homecity=none
locations
71,39
77,39
77,35
77,31
76,38
76,40
77,43
69,37
73,37
68,40
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=X-Wing
owner=Rebels
veteran=true
homecity=none
locations
77,39
77,35
77,31
76,38
76,40
77,43
69,37
73,37
68,40
71,39
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=X-Wing
owner=Rebels
veteran=true
homecity=none
locations
77,35
77,31
76,38
76,40
77,43
69,37
73,37
68,40
71,39
77,39
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=X-Wing
owner=Rebels
veteran=true
homecity=none
locations
77,35
77,31
76,38
76,40
77,43
69,37
73,37
68,40
71,39
77,39
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=X-Wing
owner=Rebels
veteran=true
homecity=none
locations
77,35
77,31
76,38
76,40
77,43
69,37
73,37
68,40
71,39
77,39
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=X-Wing
owner=Rebels
veteran=true
homecity=none
locations
77,31
76,38
76,40
77,43
69,37
73,37
68,40
71,39
77,39
77,35
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Y-Wing
owner=Rebels
veteran=true
homecity=none
locations
76,38
76,40
77,43
69,37
73,37
68,40
71,39
77,39
77,35
77,31
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Y-Wing
owner=Rebels
veteran=true
homecity=none
locations
76,40
77,43
69,37
73,37
68,40
71,39
77,39
77,35
77,31
76,38
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Y-Wing
owner=Rebels
veteran=true
homecity=none
locations
77,43
69,37
73,37
68,40
71,39
77,39
77,35
77,31
76,38
76,40
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Y-Wing
owner=Rebels
veteran=true
homecity=none
locations
69,37
73,37
68,40
71,39
77,39
77,35
77,31
76,38
76,40
77,43
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Y-Wing
owner=Rebels
veteran=true
homecity=none
locations
73,37
68,40
71,39
77,39
77,35
77,31
76,38
76,40
77,43
69,37
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Dreadnaught
owner=Rebels
veteran=true
homecity=none
locations
73,37
68,40
71,39
77,39
77,35
77,31
76,38
76,40
77,43
69,37
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Star Cruiser
owner=Rebels
veteran=true
homecity=none
locations
71,39
77,39
77,35
77,31
76,38
76,40
77,43
69,37
73,37
68,40
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Star Cruiser
owner=Rebels
veteran=true
homecity=none
locations
77,39
77,35
77,31
76,38
76,40
77,43
69,37
73,37
68,40
71,39
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Star Cruiser
owner=Rebels
veteran=true
homecity=none
locations
77,31
76,38
76,40
77,43
69,37
73,37
68,40
71,39
77,39
77,35
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Corvette
owner=Rebels
veteran=true
homecity=none
locations
76,38
76,40
77,43
69,37
73,37
68,40
71,39
77,39
77,35
77,31
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Corvette
owner=Rebels
veteran=true
homecity=none
locations
76,40
77,43
69,37
73,37
68,40
71,39
77,39
77,35
77,31
76,38
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Corvette
owner=Rebels
veteran=true
homecity=none
locations
77,43
69,37
73,37
68,40
71,39
77,39
77,35
77,31
76,38
76,40
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Corvette
owner=Rebels
veteran=true
homecity=none
locations
77,43
69,37
73,37
68,40
71,39
77,39
77,35
77,31
76,38
76,40
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Corvette
owner=Rebels
veteran=true
homecity=none
locations
77,43
69,37
73,37
68,40
71,39
77,39
77,35
77,31
76,38
76,40
endlocations
@ENDIF

@IF
CITYTAKEN
city=Shield Station
attacker=Rebels
defender=Empire
@THEN
CREATEUNIT
unit=Corvette
owner=Rebels
veteran=true
homecity=none
locations
73,37
68,40
71,39
77,39
77,35
77,31
76,38
76,40
77,43
69,37
endlocations
@ENDIF

@ENDEVENTS
