//  EVENTS.TXT FOR STAR WARS SCENARIO
//  (c) ORGY and MICROPROSE 1998-99
@BEGINEVENTS

// STARTUP CONFIG

@IF
NOSCHISM
defender=ANYBODY
@ENDIF

// HATE EACH OTHER EDICT

@IF
TURN
turn=EVERY
@THEN
MAKEAGGRESSION
who=Galactic Empire	
whom=Rebel Alliance

// CITY TAKEOVER SOUNDS

@IF
CITYTAKEN
city=Coruscant
attacker=Rebel Alliance
defender=Galactic Empire
@THEN
PLAYWAVEFILE
rebcity.wav
@ENDIF

@IF
CITYTAKEN
city=Yavin
attacker=Galactic Empire
defender=Rebel Alliance
@THEN
PLAYWAVEFILE
empcity.wav
@ENDIF

// CITY TAKEOVER MESSAGES

@IF
CITYTAKEN
city=Coruscant
attacker=Rebel Alliance
defender=Galactic Empire
@THEN
TEXT
The Rebel Alliance rejoices as the Imperial City
of Coruscant falls to Rebel forces!
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Yavin
attacker=Galactic Empire
defender=Rebel Alliance
@THEN
TEXT
The 4th moon of the planet Yavin is invaded 
by Imperial troops! 
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Mon Calamari
attacker=Galactic Empire
defender=Rebel Alliance
@THEN
TEXT
The water world of Mon Calamari falls under 
Imperial control.
ENDTEXT
PLAYWAVEFILE
empcity.wav
@ENDIF

@IF
CITYTAKEN
city=Balmorra
attacker=Rebel Alliance
defender=Galactic Empire
@THEN
TEXT
Balmorra, the Imperial world where the AT-ST
was developed, falls under Rebel attack!
ENDTEXT
PLAYWAVEFILE
rebcity.wav
@ENDIF
 
// LUKE, DARTH, agus mar sin de

@IF 
UNITKILLED
unit=Darth Vader
attacker=Rebel Alliance
defender=Galactic Empire
@THEN
JUSTONCE
TEXT
Lord Vader utilises his mastery of the Dark Side of the
Force and escapes in his TIE Advanced!
ENDTEXT
CREATEUNIT
owner=Galactic Empire
unit=Darth Vader
veteran=true
homecity=NONE
locations
52,60
53,53
54,64
48,64
endlocations
@ENDIF

@IF
UNITKILLED 
unit=Luke Skywalker
attacker=Galactic Empire
defender=Rebel Alliance
@THEN
JUSTONCE
TEXT
Luke Skywalker escapes from the clutches of the Empire! 
His experiences have made him a Jedi Knight.
ENDTEXT
CREATEUNIT
owner=Rebel Alliance
unit=Luke Skywalker
veteran=true
homecity=NONE
locations
92,34
86,54
65,11
67,15
endlocations
@ENDIF

@IF
UNITKILLED
unit=Emperor
attacker=Rebel Alliance
defender=Galactic Empire
@THEN
TEXT
Emperor Palpatine meets his doom at the hand
of the Rebel Alliance!  Surely the Empire is 
doomed?
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=Mon Mothma
attacker=Galactic Empire
defender=Rebel Alliance
@THEN
TEXT
President Mon Mothma, head of the Alliance, is
captured by agents of the Empire.  The complete
destruction of the Rebel Alliance cannot be far
off now.
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=Star Destroyer
attacker=Rebel Alliance
defender=Galactic Empire
@THEN
PLAYWAVEFILE
isd.wav
@ENDIF

@IF
UNITKILLED
unit=Mon Calamari
attacker=Galactic Empire
defender=Rebel Alliance
@THEN
PLAYWAVEFILE
moncal.wav
@ENDIF

@ENDEVENTS