; Events text for The Fall of Beleriand Scenario
@BEGINEVENTS

@IF
NOSCHISM
DEFENDER=anybody 
@THEN
@ENDIF

@IF
NEGOTIATION
talker=ANYBODY
talkertype=HumanOrComputer
listener=ANYBODY
listenertype=HumanOrComputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=ANYBODY
talkertype=HumanOrComputer
listener=ANYBODY
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
CREATEUNIT
owner=Forces of Darkness
unit=Wolves
veteran=yes
homecity=none
locations
81,3
endlocations
@ENDIF

@IF
TURN
turn=every
@THEN
MAKEAGGRESSION
who=Forces of Darkness
whom=Naugrim
CREATEUNIT
owner=Forces of Darkness
unit=Spiders
veteran=no
homecity=none
locations
78,54
76,54
77,53
endlocations
@ENDIF

@IF
TURN
turn=every
@THEN
MAKEAGGRESSION
who=Forces of Darkness
whom=Sindar
CREATEUNIT
owner=Forces of Darkness
unit=Spiders
veteran=no
homecity=none
locations
74,54
73,53
72,54
endlocations
@ENDIF

@IF
TURNINTERVAL
interval=5
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Dragon
veteran=no
homecity=none
locations
81,3
endlocations
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=97
receiver=Noldor
@THEN
Justonce
CREATEUNIT
owner=Noldor
unit=Settlers
veteran=no
homecity=none
locations
51,155
49,155
endlocations
@ENDIF

@IF
TURN
turn=1
@THEN
TEXT
^Welcome to The War of Beleriand.
ENDTEXT
PLAYWAVEFILE
FANFARE.WAV
@ENDIF

@IF
TURN
turn=3
@THEN
TEXT
Sauron lieutenant of Morgoth has been seen near
Tol Sirion.  The citizens are filled with terror.
ENDTEXT
CREATEUNIT
owner=Forces of Darkness
unit=Sauron
veteran=yes
homecity=none
locations
65,39
64,38
66,40
66,38
65,37
endlocations
@ENDIF

@IF
TURN
turn=6
@THEN
TEXT
Barahir's band is ambushed at Tarn Aeluin.  Beren 
retrieves the Ring of Felagund and lives as a solitary
outlaw for the next four years.
ENDTEXT
CREATEUNIT
owner=Noldor
unit=Beren
veteran=yes
homecity=none
locations
76,48
76,50
77,47
endlocations
@ENDIF

@IF
UnitKilled
unit=Maiden
attacker=Noldor
defender=Trigger
@THEN
text
^Beren finds his way into Doriath.  In the forest of Neldoreth he finds
Lthien Tinviel and falls in love. . .
^He goes to Menegroth to ask Thingol for her hand.  The King
says that Beren can only get her if he steals a silmaril from
the Iron Crown of Morgoth and gives it to him in return.  Beren leaves
Doriath to begin his mission.  In the meantime Lthien is imprisoned but
she escapes and begins searching for Beren.  She gets help from Huan the
Hound of Valinor.
endtext
CreateUnit
unit=Lthien
owner=Noldor
veteran=false
homecity=None
locations
68,66
69,69
endlocations
@ENDIF

@IF
UnitKilled
unit=Maiden
attacker=Noldor
defender=Trigger
@THEN
CreateUnit
unit=Huan the hound
owner=Noldor
veteran=true
homecity=None
locations
59,81
63,81
55,79
endlocations
@ENDIF

@IF
UnitKilled
unit=Maiden
attacker=Noldor
defender=Trigger
@THEN
CreateUnit
unit=Woods
owner=Trigger
veteran=no
homecity=None
locations
74,64
endlocations
@ENDIF

@IF
UnitKilled
unit=Light
attacker=Noldor
defender=Trigger
@THEN
text
Beren and Lthien finally reach Angband.  With her magic Lthien forces
Carcharoth, The huge wolf of Angband to fall asleep.  They enter the gate and
walk many labyrinths of stairs down to the deepest of all rooms in
Angband.  There they find the Dark Lord on his throne.  Lthien begins
singing and Morgoth and all his servants fall asleep.  With his knife
Angrist, Beren takes out one of the silmarils from the Iron Crown.  When
Beren tries to steal another silmaril the knife slips and Morgoth begins
moving.  Beren and Lthien run away as fast as they can.  Finally they reach
the light again.
endtext
CreateUnit
unit=Carcharoth
owner=Trigger
veteran=false
homecity=None
locations
84,0
86,0
endlocations
givetechnology
technology=15
receiver=Noldor
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=15
receiver=Noldor
@THEN
CHANGEMONEY
receiver=Noldor
amount=50
@ENDIF

@IF
UnitKilled
unit=Light
attacker=Noldor
defender=Trigger
@THEN
Text
Torment falls upon Maedhros and his brethren because of
their unfulfilled oath.  Aggressions are made towards other
elves.
Endtext
MAKEAGGRESSION
who=Sons of Feanor
whom=Noldor
@ENDIF

@IF
UnitKilled
unit=Beren
attacker=Trigger
defender=Noldor
@THEN
text
^When Beren and Lthien leave Angband Carcharoth is in
their way.  In the fight the beast bites Beren's hand off
and swallows the silmaril. The pain from the jewel makes
Carcharoth mad and he runs away terrorizing the lands of
Beleriand.
^
^Beren survives. When he and Lthien comes to Doriath they
hear about the mad wolf.  A small team, including Beren, is
sent out to track and kill Carcharoth. Beren is killed before
they at last take the life of the terrible beast.
^
^Lthien lays her body as a white flower on the grass and her spirit
flees from Middle-Earth and she goes to Mandos.  She and Beren are allowed to
see Middle-Earth again and there live as mortals.  They return to Beleriand
to live the doom set before them by Mandos.  They dwell on the isle of Tol
Galen amid the green waters of Ossiriand.  After a year or more their son
Dior is born.
endtext
CreateUnit
unit=Settlers
owner=Noldor
veteran=false
homecity=None
locations
113,149
endlocations
CHANGETERRAIN
terraintype=3
maprect
74,64,74,64,74,64,74,64
@ENDIF

@IF
UnitKilled
unit=Lthien
attacker=Trigger
defender=Noldor
@THEN
CreateUnit
unit=Dior
owner=Noldor
veteran=false
homecity=None
locations
113,149
endlocations
@ENDIF

@IF
TURN
turn=18
@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. . .
^
You may now move the forces of Gondolin out of Tumladen
through the mountains south-west of the city.
endtext
CHANGETERRAIN
terraintype=5
maprect
67,49,67,49,67,49,67,49
CreateUnit
unit=Impassable
owner=Noldor
veteran=false
homecity=None
locations
67,49
endlocations
@ENDIF

@IF
TURN
turn=18
@THEN
TEXT
The Easterling Lord Ulfang betrays Caranthir and fights
for Morgoth, the Dark Enemy.
ENDTEXT
GIVETECHNOLOGY
technology=2
receiver=Forces of Darkness
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=2
receiver=Forces of Darkness
@THEN
CREATEUNIT
unit=Swordmen
owner=Forces of Darkness
veteran=no
homecity=None
locations
53,45
103,52
106,60
endlocations
@ENDIF

@IF
TURN
turn=19
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Balrog
veteran=no
homecity=none
locations
34,86
35,87
33,87
endlocations
@ENDIF

@IF
TURN
turn=19
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Balrog
veteran=no
homecity=none
locations
43,93
44,94
45,95
endlocations
@ENDIF

@IF
TURN
turn=19
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Balrog
veteran=no
homecity=none
locations
35,99
33,101
33,99
endlocations
@ENDIF

@IF
TURN
turn=27
@THEN
TEXT
Trin, son of Hrin, becomes the companion of Beleg
Strongbow on the marches of Doriath.
ENDTEXT
CREATEUNIT
owner=Sindar
unit=Trin
veteran=no
homecity=none
locations
70,72
71,73
69,71
endlocations
@ENDIF

@IF
UnitKilled
unit=Trin
attacker=ANYBODY
defender=Sindar
@THEN
text
Trin becomes the leader of a band of outlaws at Amon Rdh.
endtext
CreateUnit
unit=Trin
owner=Outlaws
veteran=true
homecity=None
locations
63,79
62,78
endlocations
@ENDIF

@IF
TURN
turn=35
@THEN
TEXT
Gwindor of Nargothrond escapes from the thralldom of Morgoth. He meets
Beleg and they rescue Trin from the orcs. Trin accidently kills his
friend Beleg. Gwindor comes to Nargothrond.
ENDTEXT
CREATEUNIT
owner=Noldor
unit=Gwindor
veteran=yes
homecity=none
locations
54,90
56,90
endlocations
@ENDIF

@IF
TURN
turn=40
@THEN
TEXT
Glaurung, oldest among dragons, has been seen near Nargothrond.
ENDTEXT
CREATEUNIT
owner=Forces of Darkness
unit=Glaurung
veteran=true
homecity=none
locations
55,89
56,90
54,86
endlocations
@ENDIF

@IF
TURN
turn=40
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Orcs
veteran=true
homecity=none
locations
56,90
54,86
endlocations
@ENDIF

@IF
TURN
turn=41
@THEN
TEXT
Tuor comes to Nevrast.  He is visited by Ulmo Lord of
Waters, and sent with Voronw the Elf to seek the hidden
city of Gondolin.
ENDTEXT
CREATEUNIT
owner=Noldor
unit=Voronw
veteran=no
homecity=none
locations
30,56
32,56
endlocations
@ENDIF

@IF
TURN
turn=41
@THEN
CREATEUNIT
owner=Noldor
unit=Tuor
veteran=no
homecity=none
locations
30,56
32,56
endlocations
@ENDIF

@IF
UnitKilled
unit=Trin
attacker=ANYBODY
defender=Outlaws
@THEN
text
Trin takes the name of Turambar.
endtext
CreateUnit
unit=Trin Turambar
owner=Noldor
veteran=true
homecity=None
locations
63,75
65,69
endlocations
@ENDIF

@IF
TURN
turn=43
@THEN
CREATEUNIT
unit=Maiden
owner=Outlaws
veteran=no
homecity=none
locations
73,65
endlocations
@ENDIF

@IF
UnitKilled
unit=Maiden
attacker=Noldor
defender=Outlaws
@THEN
text
Dior, son of Beren and Lthien, weds Nimloth.
endtext
CreateUnit
unit=Maiden
owner=Forces of Darkness
veteran=no
homecity=None
locations
64,134
endlocations
@ENDIF

@IF
TURN
turn=49
@THEN
Text
Thingol is slain by dwarves in his own home of Menegroth.
Endtext
CREATEUNIT
owner=Naugrim
unit=Assassins
veteran=true
homecity=none
locations
78,70
78,74
endlocations
@ENDIF

@IF
TURN
turn=49
@THEN
MAKEAGGRESSION
who=Naugrim
whom=Sindar
@ENDIF

@IF
TURN
turn=49
@THEN
CREATEUNIT
owner=Naugrim
unit=Assassins
veteran=true
homecity=none
locations
77,71
79,73
endlocations
@ENDIF

@IF
TURN
turn=49
@THEN
CREATEUNIT
owner=Naugrim
unit=Assassins
veteran=true
homecity=none
locations
76.72
80,72
endlocations
@ENDIF

@IF
TURN
turn=49
@THEN
CREATEUNIT
owner=Naugrim
unit=Assassins
veteran=true
homecity=none
locations
77,73
79,71
endlocations
@ENDIF

@IF
TURN
turn=49
@THEN
CREATEUNIT
owner=Naugrim
unit=Assassins
veteran=true
homecity=none
locations
78,74
78,70
endlocations
@ENDIF

@IF
TURN
turn=49
@THEN
CREATEUNIT
owner=Naugrim
unit=Assassins
veteran=true
homecity=none
locations
79,73
77,71
endlocations
@ENDIF

@IF
CityTaken
city=Menegroth
attacker=Naugrim
defender=Sindar
@THEN
justonce
text
With the death of Elw Singollo Melian leaves Middle-
Earth and returns to the blessed lands of Aman.  Refugees
from Doriath reach the Mouths of Sirion.
endtext
CREATEUNIT
owner=Noldor
unit=Settlers
veteran=no
homecity=none
locations
60,132
59,131
endlocations
@ENDIF

@IF
CityTaken
city=Eglarest
attacker=Forces of Darkness
defender=Sindar
@THEN
justonce
text
Falas is attacked by the Forces of Darkness.  Eglarest has fallen.  Cirdan,
Gil-Galad and the other survivors take refuge on the Isle of Balar.
endtext
@ENDIF

@IF
TURN
turn=55
@THEN
text
Maeglin, son of Turgon's sister Aredhel, is captured by the enemy and brought
to Angband.  Through torture and a promise from Morgoth that he will get Idril
Maeglin reveals the location of Gondolin.  Then he returns to the city.
endtext
CREATEUNIT
owner=Trigger
unit=Trigger
veteran=no
homecity=none
locations
70,44
70,46
68,46
71,45
endlocations
@ENDIF

@IF
UnitKilled
unit=Trigger
attacker=Noldor
defender=Trigger
@THEN
text
Ulmo's final warning reaches Gondolin.
endtext
CreateUnit
unit=Erendil
owner=Noldor
veteran=no
homecity=None
locations
69,45
69,47
endlocations
@ENDIF

@IF
TURN
turn=56
@THEN
Text
Morgoth has now found the hidden city of Gondolin!  Dark
hordes fill the valley of Tumladen.
Endtext
CREATEUNIT
owner=Noldor
unit=Glorfindel
veteran=no
homecity=none
locations
69,45
endlocations
CHANGETERRAIN
terraintype=4
maprect
69,43,69,43,69,43,69,43
@ENDIF

@IF
TURN
turn=56
@THEN
CREATEUNIT
owner=Noldor
unit=Ecthelion
veteran=no
homecity=none
locations
69,45
endlocations
CHANGETERRAIN
terraintype=4
maprect
68,44,68,44,68,44,68,44
@ENDIF

@IF
TURN
turn=56
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Balrog
veteran=true
homecity=none
locations
68,44
67,45
69,43
endlocations
CHANGETERRAIN
terraintype=5
maprect
69,41,69,41,69,41,69,41
@ENDIF

@IF
TURN
turn=56
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Balrog
veteran=true
homecity=none
locations
67,45
69,43
68,44
endlocations
CHANGETERRAIN
terraintype=5
maprect
70,48,70,48,70,48,70,48
@ENDIF

@IF
TURN
turn=56
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Dragon
veteran=true
homecity=none
locations
69,43
68,44
67,45
endlocations
CHANGETERRAIN
terraintype=5
maprect
67,49,67,49,67,49,67,49
@ENDIF

@IF
TURN
turn=56
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Dragon
veteran=true
homecity=none
locations
68,44
67,45
69,43
endlocations
CHANGETERRAIN
terraintype=5
maprect
66,46,66,46,66,46,66,46
@ENDIF

@IF
TURN
turn=56
@THEN
CREATEUNIT
owner=Forces of Darkness
unit=Gothmog
veteran=true
homecity=none
locations
69,43
68,44
67,45
endlocations
CHANGETERRAIN
terraintype=5
maprect
73,45,73,45,73,45,73,45
@ENDIF

@IF
CityTaken
city=Gondolin
attacker=Forces of Darkness
defender=Noldor
@THEN
justonce
text
Turgon's beautiful city of Gondolin has fallen!  Exiles
flee to Arvernien in the south.
endtext
CREATEUNIT
owner=Noldor
unit=Settlers
veteran=no
homecity=none
locations
50,134
50,136
endlocations
@ENDIF

@IF
UnitKilled
unit=Maiden
attacker=Noldor
defender=Forces of Darkness
@THEN
text
^Erendil weds Elwing, daughter of Dior, at the Mouths of
Sirion.
^
^To save the Elves and Edain of Beleriand Erendil plans to go to Aman
and ask the Valar for help.  He begins building the great ship Vingilot.
endtext
CreateUnit
unit=Vingilot
owner=Noldor
veteran=no
homecity=None
locations
64,132
65,133
endlocations
@ENDIF

@IF
UnitKilled
unit=Trigger
attacker=Noldor
defender=Forces of Darkness
@THEN
text
Erendil can finally see the shores of Aman.
endtext
@ENDIF

@IF
UnitKilled
unit=Light
attacker=Noldor
defender=Forces of Darkness
@THEN
text
Erendil comes to Valinor.  He pleads the case of the Eldar and Edain to
the Lords of the West, and they listen.  The Valar choose to aid the peoples
of Beleriand in their desperate plight.
endtext
CreateUnit
unit=Tulkas
owner=Noldor
veteran=yes
homecity=None
locations
0,156
endlocations
CHANGETERRAIN
terraintype=10
maprect
6,156,6,156,6,156,6,156
@ENDIF

@IF
UnitKilled
unit=Light
attacker=Noldor
defender=Forces of Darkness
@THEN
text
The forces of Aman prepare for the War of Wrath.
endtext
PLAYWAVEFILE
FANFARE.WAV
CHANGETERRAIN
terraintype=10
maprect
4,156,4,156,4,156,4,156
@ENDIF

@IF
UnitKilled
unit=Fingolfin
attacker=anybody
defender=Noldor
@THEN
text
Fingolfin, High King of the Noldor, is killed in battle! 
endtext
@ENDIF

@IF
UnitKilled
unit=Fingon
attacker=anybody
defender=Noldor
@THEN
text
Fingon, valiant son of Fingolfin, is killed in battle! 
endtext
@ENDIF

@IF
UnitKilled
unit=Turgon
attacker=anybody
defender=Noldor
@THEN
text
Turgon, Lord of Gondolin, is killed!
endtext
@ENDIF

@IF
UnitKilled
unit=Finrod
attacker=anybody
defender=Noldor
@THEN
text
Finrod Felagund, most noble of Eldar Lords, leaves Middle-Earth.
endtext
@ENDIF

@IF
UnitKilled
unit=Orodreth
attacker=anybody
defender=Noldor
@THEN
text
Orodreth, brother of Felagund, is killed in battle!
endtext
@ENDIF

@IF
UnitKilled
unit=Angrod
attacker=anybody
defender=Noldor
@THEN
text
Angrod, third son of Finarfin, is killed.
endtext
@ENDIF

@IF
UnitKilled
unit=Aegnor
attacker=anybody
defender=Noldor
@THEN
text
Aegnor, fourth son of Finarfin, is killed.
endtext
@ENDIF

@IF
UnitKilled
unit=Beren
attacker=Forces of Darkness
defender=Noldor
@THEN
text
Poor Beren is killed before he could get Lthien's hand.
endtext
@ENDIF

@IF
UnitKilled
unit=Dior
attacker=anybody
defender=Noldor
@THEN
text
Dior, son of Beren and Lthien, is killed.
endtext
@ENDIF

@IF
UnitKilled
unit=Tuor
attacker=anybody
defender=Noldor
@THEN
text
Tuor, son of Huor, is killed.
endtext
@ENDIF

@IF
UnitKilled
unit=Erendil
attacker=anybody
defender=Noldor
@THEN
text
Erendil is killed before he could get to Valinor.  Is this the end of
Beleriand?
endtext
@ENDIF

@IF
UnitKilled
unit=Glaurung
attacker=anybody
defender=Forces of Darkness
@THEN
text
Glaurung, father of dragons, has finally met his end.
endtext
@ENDIF

@IF
UnitKilled
unit=Gothmog
attacker=anybody
defender=Forces of Darkness
@THEN
text
Gothmog, leader of the Balrogs, is killed!
endtext
@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
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=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
CREATEUNIT
owner=Sons of Feanor
unit=Swordmen
veteran=yes
homecity=none
locations
108,58
106,60
107,63
105,59
103,63
107,60
endlocations
@ENDIF

@IF
TURN
turn=8
@THEN
CREATEUNIT
owner=Sons of Feanor
unit=Swordmen
veteran=yes
homecity=none
locations
103,63
107,60
108,58
106,60
107,63
105,59
endlocations
@ENDIF

@IF
TURN
turn=8
@THEN
CREATEUNIT
owner=Sons of Feanor
unit=Swordmen
veteran=yes
homecity=none
locations
107,63
105,59
103,63
107,60
108,58
106,60
endlocations
@ENDIF

@IF
TURN
turn=8
@THEN
CREATEUNIT
owner=Sons of Feanor
unit=Swordmen
veteran=yes
homecity=none
locations
106,60
107,63
105,59
103,63
107,60
108,58
endlocations
@ENDIF

@IF
CITYTAKEN
city=Angband
attacker=Anybody
defender=Forces of Darkness
@THEN
TEXT
After centuries of war Morgoth is at last defeated. . .
ENDTEXT
DESTROYACIVILIZATION
whom=Trigger
@ENDIF

@IF
CITYTAKEN
city=Angband
attacker=Anybody
defender=Forces of Darkness
@THEN
TEXT
^This Scenario is now complete.
^
^CONGRATULATIONS! YOU HAVE WON THE GAME!
ENDTEXT
DESTROYACIVILIZATION
whom=Forces of Darkness
@ENDIF

@ENDEVENTS