@BEGINEVENTS

@IF
NEGOTIATION
talker=anybody
talkertype=humanorcomputer
listener=forces of darkness
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=forces of darkness
talkertype=humanorcomputer
listener=anybody
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=noldor
talkertype=computer
listener=anybody
listenertype=computer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=sindar
talkertype=computer
listener=anybody
listenertype=computer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=sons of feanor
talkertype=computer
listener=anybody
listenertype=computer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=edain
talkertype=computer
listener=anybody
listenertype=computer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=laiquendi
talkertype=computer
listener=anybody
listenertype=computer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=dwarves
talkertype=humanorcomputer
listener=anybody
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=anybody
talkertype=humanorcomputer
listener=dwarves
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
TURN
turn=every
@THEN
MAKEAGGRESSION
who=forces of darkness
whom=Noldor
@ENDIF

@IF
TURN
turn=every
@THEN
MAKEAGGRESSION
who=forces of darkness
whom=Edain
@ENDIF

@IF
TURN
turn=every
@THEN
MAKEAGGRESSION
who=forces of darkness
whom=Sons of feanor
@ENDIF

@IF
TURN
turn=every
@THEN
MAKEAGGRESSION
who=forces of darkness
whom=Dwarves
@ENDIF

@IF
TURN
turn=every
@THEN
MAKEAGGRESSION
who=forces of darkness
whom=Sindar
@ENDIF

@IF
TURN
turn=1
@THEN
TEXT
Welcome to Dagor Bragollach--The Battle of Sudden Flame.
There are two things you should know before beginning.  (1)  This scenario
has impassable terrain that cannot be crossed by any means.  Right-click on
terrain to see if it is impassable.  Generally, the "spine" of mountain
ranges and the rivers to the south are impassable.  (2)  Gondolin did not
take part in the Dagor Bragollach.  This city is surrounded by impassable
mountains and only the Eagles of Thorondor may leave the city through passes
in the North and South.  However, if you are fortunate, Turgon may decide to
open the leaguer of Gondolin and march his armies forth to battle at the
sides of his brothers. . .
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Angband
attacker=anybody
defender=forces of darkness
@THEN
TEXT
The Children of Illuvatar have accomplished the impossible!  Morgoth has
been vanquished by his mortal foes.  The Valar humbly acknowledge the
courage, dignity, and power of the peoples they had forsaken and abandoned
to the Power of the North.  The Noldor and the Sons of Feanor are forgiven
and invited to return to the Blessed Land.
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=Barahir
attacker=forces of darkness
defender=edain
@THEN
TEXT
With his father Barahir slain, Beren takes up the heirlooms of the House
of Beor and continues the fight in the highlands of Dorthonion.  Escape
seems impossible.  For to the North lie the forces of Angband and, although
it may be possible to find a pass through the middle of Ered Gorgoroth,
this would almost surely lead only to death in the black vapors and deadly
gloom of Nan Dungortheb. . . 
ENDTEXT
CREATEUNIT
owner=edain
unit=Beren
veteran=yes
homecity=none
locations
83,33
81,33
82,32
endlocations
@ENDIF

@IF
CITYTAKEN
city=Minas Tirith
attacker=forces of darkness
defender=noldor
@THEN
TEXT
Minas Tirith has fallen to the forces of Morgoth!  The armies of the Dark
Lord begin to stream through the Pass of Sirion and into Western Beleriand. . .
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Maglor's Gap
attacker=forces of darkness
defender=sons of feanor
@THEN
TEXT
The March of Maedhros is collapsing!  Orcs have begun their assault on Eastern
Beleriand through Maglor's Gap. . .
ENDTEXT
@ENDIF

@IF
TURN
turn=4
@THEN
TEXT
A herald has arrived from Turgon, lord of the hidden city of Gondolin, bearing
ominous tidings:  Thorondor, lord of Eagles, reports that Sauron has recently been
espied leaving Angand. . .
ENDTEXT
@ENDIF

@IF
TURN
turn=6
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Sauron
veteran=yes
homecity=none
locations
67,23
68,24
68,22
69,23
69,21
endlocations
@ENDIF

@IF
TURN
turn=every
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Orcs
veteran=yes
homecity=none
locations
78,2
79,3
endlocations
@ENDIF

@IF
TURN
turn=every
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Orcs
veteran=yes
homecity=none
locations
79,3
78,2
endlocations
@ENDIF

@IF
TURN
turn=every
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Orcs
veteran=yes
homecity=none
locations
62,26
endlocations
@ENDIF

@IF
TURN
turn=every
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Orcs
veteran=yes
homecity=none
locations
113,33
endlocations
@ENDIF

@IF
TURN
turn=every
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Ungoliant Spawn
veteran=yes
homecity=none
locations
78,40
74,40
76,44
80,44
endlocations
@ENDIF

@IF
TURN
turn=every
@THEN
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Ungoliant Spawn
veteran=yes
homecity=none
locations
74,40
78,40
76,44
80,44
endlocations
@ENDIF

@IF
TURN
turn=every
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Ungoliant Spawn
veteran=yes
homecity=none
locations
76,44
74,40
78,40
80,44
endlocations
@ENDIF

@IF
TURN
turn=every
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Ungoliant Spawn
veteran=yes
homecity=none
locations
80,44
76,44
74,40
78,40
endlocations
@ENDIF

@IF
UNITKILLED
unit=Sauron
attacker=anybody
defender=forces of darkness
@THEN
TEXT
With a mighty blow, Sauron is slain.  His disembodied spirit returns to
Anband where he slowly begins to take a new form.  Unfortunately,
Middle-earth has not seen the last of Gorthaur the Cruel.  His evil
will return to taint later Ages. . .
ENDTEXT
@ENDIF

@IF
RANDOMTURN
denominator=25
@THEN
JUSTONCE
TEXT
Turgon announces to his people that the day for battle has arrived!---
If playing the Noldor, you may now open the leaguer of Gondolin by destroying
the Barbarian "Impassable Terrain" unit located at square 63,35 using the
unit just created southeast of the city (the barbarian Impassable Terrain is
directly East of the unit just created)  After destroying the Impassable
Terrain, the armies of Gondolin may march forth!
ENDTEXT
CREATEUNIT
owner=noldor
unit=Opening of the Leaguer
veteran=no
homecity=none
locations
61,35
62,36
endlocations
@ENDIF

@IF
UNITKILLED
unit=Dry River
attacker=Noldor
defender=anybody
@THEN
TEXT
Turgon, lord of the hidden city of Gondolin, has answered the prayers of his
kinsmen and opened the leaguer of Gondolin!  The last hope of the Noldor, the
Gondolindrim, shall come forth and stand beside their brothers in their
desperate plight. . .
ENDTEXT
PLAYWAVEFILE
Gondolin.wav

@IF
TURN
turn=8
@THEN
TEXT
The Swarthy Easterlings have appeared in the East.  Though they have
no love for the rest of the Edain, they agree to fight alongside the
Eldar against the power in the North.
ENDTEXT
@ENDIF

@IF
TURN
turn=8
@THEN
CREATEUNIT
owner=sons of feanor
unit=Legion
veteran=yes
homecity=none
locations
121,73
122,74
122,76
123,75
125,75
127,75
128,74
endlocations
@ENDIF

@IF
TURN
turn=8
@THEN
CREATEUNIT
owner=sons of feanor
unit=Legion
veteran=yes
homecity=none
locations
122,74
121,73
122,76
123,75
125,75
127,75
128,74
endlocations
@ENDIF

@IF
TURN
turn=8
@THEN
CREATEUNIT
owner=sons of feanor
unit=Legion
veteran=yes
homecity=none
locations
122,76
121,73
122,74
123,75
125,75
127,75
128,74
endlocations
@ENDIF

@IF
TURN
turn=8
@THEN
CREATEUNIT
owner=sons of feanor
unit=Legion
veteran=no
homecity=none
locations
123,75
121,73
122,74
122,76
125,75
127,75
128,74
endlocations
@ENDIF

@IF
TURN
turn=8
@THEN
CREATEUNIT
owner=sons of feanor
unit=Legion
veteran=no
homecity=none
locations
125,75
121,73
122,74
122,76
123,75
127,75
128,74
endlocations
@ENDIF

@IF
TURN
turn=8
@THEN
CREATEUNIT
owner=sons of feanor
unit=Legion
veteran=no
homecity=none
locations
127,75
121,73
122,74
122,76
123,75
125,75
128,74
endlocations
@ENDIF

@IF
TURN
turn=8
@THEN
CREATEUNIT
owner=sons of feanor
unit=Legion
veteran=no
homecity=none
locations
128,74
121,73
122,74
122,76
123,75
125,75
127,75
endlocations
@ENDIF

@ENDEVENTS