@BEGINEVENTS

@IF
SCENARIOLOADED
@THEN
DONTPLAYWONDERS
@ENDIF

@IF
NOSCHISM
DEFENDER=anybody 
@THEN
 
@ENDIF

@IF
NEGOTIATION
TALKER=ANYBODY
TALKERTYPE=HUMANORCOMPUTER
LISTENER=ANYBODY
LISTENERTYPE=HUMANORCOMPUTER
@ENDIF

@IF
SCENARIOLOADED
@THEN
PLAYCDTRACK
16
PLAYWAVEFILE
INTRO.WAV
@ENDIF

@IF
TURN
TURN=30
@THEN
PLAYCDTRACK
16
PLAYWAVEFILE
BADWIN.WAV
@ENDIF

@IF
UNITKILLED
UNIT=CORE
ATTACKER=ANYBODY
DEFENDER=EMPIRE
@THEN
PLAYCDTRACK
16
PLAYWAVEFILE
GOODWIN.WAV
@ENDIF

@IF
UNITKILLED
UNIT=CORE
ATTACKER=ANYBODY
DEFENDER=EMPIRE
@THEN
TEXT
^Move the fleet away from the Death Star.
ENDTEXT
@ENDIF

@IF
UNITKILLED
UNIT=DS BANE
ATTACKER=ANYBODY
DEFENDER=EMPIRE
@THEN
TEXT
^The Death Star lies in ashes, as does the dream of
a universal Imperial government. The New Republic
gets it's start.
ENDTEXT
@ENDIF

@IF
TURN
TURN=30
@THEN
TEXT
^The Death Star is now completely finished. An iron 
grip is established by the Empire. The remaining Rebels
are soon rounded up and destroyed.
ENDTEXT
@ENDIF

@IF
CITYTAKEN
CITY=SHIELDGENERATOR
ATTACKER=ANYBODY
DEFENDER=EMPIRE
@THEN
TEXT
^The Shield is down. Commence attack on the Death Star.
ENDTEXT
@ENDIF

@IF
TURN=1
@THEN
MOVEUNIT
UNIT=STAR DESTROYER
OWNER=EMPIRE
MAPRECT
46,18 80,18 80,36 46,36
MOVETO
64,46
NUMBERTOMOVE=ALL
@ENDIF


@IF
TURN=2
@THEN
MOVEUNIT
UNIT=ANYUNIT
OWNER=REBELS
MAPRECT
36,60 38,60 38,62 36,62
MOVETO
36,54
NUMBERTOMOVE=ALL
@ENDIF

@IF
CITYTAKEN
CITY=SHIELDGENERATOR
ATTACKER=ANYBODY
DEFENDER=EMPIRE
@THEN
MOVEUNIT
UNIT=M. FALCON
OWNER=REBELS
MAPRECT
44,28 94,28 94,68 44,68
MOVETO
54,44
NUMBERTOMOVE=1
@ENDIF

@IF
UNITKILLED
UNIT=CORE
ATTACKER=ANYBODY
DEFENDER=EMPIRE
@THEN
CREATEUNIT
OWNER=BARBARIANS
UNIT=LUL
VETERAN=NO
HOMECITY=HIDDEN
LOCATIONS
69,75
ENDLOCATIONS
@ENDIF

@IF
UNITKILLED
UNIT=CORE
ATTACKER=ANYBODY
DEFENDER=EMPIRE
@THEN
CREATEUNIT
OWNER=EMPIRE
UNIT=DS BANE
VETERAN=NO
HOMECITY=NONE
LOCATIONS
54,44
ENDLOCATIONS
@ENDIF

@IF
UNITKILLED
UNIT=CORE
ATTACKER=ANYBODY
DEFENDER=EMPIRE
@THEN
CREATEUNIT
OWNER=BARBARIANS
UNIT=DS BANE
VETERAN=NO
HOMECITY=NONE
LOCATIONS
52,44
54,42
ENDLOCATIONS
@ENDIF


@IF
UNITKILLED
UNIT=CORE
ATTACKER=ANYBODY
DEFENDER=EMPIRE
@THEN
MOVEUNIT
UNIT=ANYUNIT
OWNER=BARBARIANS
MAPRECT
47,35 61,35 61,53 47,53
MOVETO
54,44
NUMBERTOMOVE=ALL
@ENDIF

@IF
TURN
TURN=2
@THEN
MOVEUNIT
UNIT=ANYUNIT
OWNER=REBELS
MAPRECT
33,47 41,47 41,57 33,57
MOVETO
37,43
NUMBERTOMOVE=ALL
@ENDIF

@IF
TURN
TURN=2
@THEN
CREATEUNIT
OWNER=EMPIRE
UNIT=WEAPON BLAST
VETERAN=no
HOMECITY=none
LOCATIONS
54,44
ENDLOCATIONS
@ENDIF

@IF
TURN
turn=4
@THEN
CREATEUNIT
OWNER=EMPIRE
UNIT=WEAPON BLAST
VETERAN=no
HOMECITY=none
LOCATIONS
54,44
ENDLOCATIONS
@ENDIF

@IF
TURN
TURN=6
@THEN
CREATEUNIT
OWNER=EMPIRE
UNIT=WEAPON BLAST
VETERAN=no
HOMECITY=none
LOCATIONS
54,44
ENDLOCATIONS
@ENDIF

@IF
TURN
TURN=8
@THEN
CREATEUNIT
OWNER=EMPIRE
UNIT=WEAPON BLAST
VETERAN=no
HOMECITY=none
LOCATIONS
54,44
ENDLOCATIONS
@ENDIF

@IF
TURN
TURN=10
@THEN
CREATEUNIT
OWNER=EMPIRE
UNIT=WEAPON BLAST
VETERAN=no
HOMECITY=none
LOCATIONS
54,44
ENDLOCATIONS
@ENDIF

@IF
UNITKILLED
UNIT=L. SKYWALKER
ATTACKER=ANYBODY
DEFENDER=REBELS
@THEN
TEXT
^L. Skywalker dies in battle, however his generals vow to carry on.
^The Rebels are limited to a Marginal Victory. 
ENDTEXT
@ENDIF

@IF
UNITKILLED
UNIT=DARTH VADER
ATTACKER=ANYBODY
DEFENDER=EMPIRE
@THEN
TEXT
^Darth Vader dies in battle, however his generals vow to carry on.
^The Empire are limited to a Marginal Victory.
ENDTEXT
@ENDIF

@IF
UNITKILLED
UNIT=HAN SOLO
ATTACKER=ANYBODY
DEFENDER=REBELS
@THEN
TEXT
^The Rebel hero falls in battle. Any new Rebel government will be an
incomplete one.
ENDTEXT
@ENDIF

@IF
UNITKILLED
UNIT=PRINCESS LEIA
ATTACKER=ANYBODY
DEFENDER=REBELS
@THEN
TEXT
^The Rebel leader dies in battle. A New Republic now looks doubtful, yet
Admiral Ackbar takes control of the Rebels.
ENDTEXT
@ENDIF

@IF
UNITKILLED
UNIT=M. FALCON
ATTACKER=ANYBODY
DEFENDER=REBELS
@THEN
TEXT
^The Rebel fleet is now unable to penetrate the Death Star without the 
Millenium Falcon's firepower.  As a last resort, they now must send in 
their cruisers.
ENDTEXT
MOVEUNIT
UNIT=CRUISER
OWNER=REBELS
MAPRECT
0,0 98,0 98,78 0,78
MOVETO
54,44
NUMBERTOMOVE=ALL
@ENDIF 

@ENDEVENTS