@BEGINEVENTS

@IF
TURN
turn=0
@THEN
TEXT
^^Dungeon:  Heroes of Beckhorn
^^Version 2.0 - By Blackclove
^
^Special thanks to Wizard for his helpful suggestions regarding an earlier
version of this scenario.
ENDTEXT
@ENDIF

@IF
TURN
turn=1
@THEN
TEXT
^^Messenger Arrives
^
^Disturbing news, oh king!  Monsters from the great dungeons at the edges of the kingdom
threaten Beckhorn.  Our only hope is to send out a plea for help to our neighbors and hope that
they send heroes.  Three great heroes of our realm, Jahdam the spear-saint, Sir Roland the
knight, and Redwind the huntsman have agreed to serve us already.
^
^[Jahdam:  12/4/3, f2/h6, x3 Move]
^[Roland: 6/6/3, f2/h3, x3 Move]
^[Redwind: 7/7/3, f2/h3]
ENDTEXT
CREATEUNIT
unit=Redwind
owner=Beckians
veteran=no
homecity=NONE
locations
36,132
37,132
endlocations
@ENDIF

@IF
UNITKILLED
unit=Jahdam
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Jahdam the Huntress Dies of Her Wounds
^
^The king declares this day a day of mourning.  The bells ring out
in the great cathedral in memory of the heroine who gave her life
protecting the people.  Her spear is returned to Beckhorn by a 
recruit and is given a place of honor in the castle.
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=Sir Roland
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Sir Roland Eaten Alive
^
^Sadly, the mighty knight's armor could not protect him from his
tragic end.  Goblin soldiers, practicing their wicked craft, managed
to somehow shrink his head and sew the mouth shut, moustache still
intact.  Later, his gnawed bones are found in an orcish stew pot by
guardsmen searching the mountains.  His body is buried beneath a 
statue carved by the dwarves to honor their long-time friend.
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=Redwind
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Redwind Dies
^
^One of the original heroes of Beckhorn, Redwind was known for his
ability to track virtually any prey.  Unfortunately, this time something
has tracked him.  No trace is ever found of him, but word comes from an
escaped prisoner that they saw his body being used for target practice
by monsters.  The king orders a fund taken up for his surviving relatives.
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=6
receiver=Beckians
@THEN
TEXT
^^Messenger from Westmark
^
^The wizards of Westmark agree to help, and send the mage Gaevan Madeira to our aid.
Madera is a young wizard, but the mages promise further help if our magical discoveries
can aid them in their research.
^[Gaevan:  1/2/3, f1/h2, spells]
ENDTEXT
CREATEUNIT
unit=Gaevan Madera
owner=Beckians
veteran=no
homecity=NONE
locations
36,132
37,132
35,132
36,131
36,133
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Gaevan Madera
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Westmark Said to Be Enraged at Death of Novice Mage
^
^The body of the young wizard Gaevan Madera was found, still in his
green robes, in the lair of a giant spider.  The body has been returned
to the grey wizards of Westmark for proper burial.  They are said to
have cut off diplomatic ties, although the king's agents are working
to restore their alliance.
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=Omarus Phaesor
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Westmark Threatens War Over Wizard's Death
^
^The well-known wizard Omarus Phaesor died of unknown causes while
exploring the dungeons beneath our land.  The wizards of Westmark
immediately begin sabre-rattling, claiming that with proper fighter
escort Omarus would never have died.
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=22
receiver=Beckians
@THEN
TEXT
^^Necromancer's Redemption
^
^Hearing of our powerful spells, the necromancer Clarisse agrees to join our cause.  "I have made
many wrong decisions, but now I am making the right one."  [Clarisse:  5/4/5, f2/h2, spells]
ENDTEXT
CREATEUNIT
unit=Clarisse
owner=Beckians
veteran=no
homecity=NONE
locations
36,132
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Clarisse
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Clarisse Buried in Cathedral Cemetary
^
^To the last, Clarisse never believed she atoned for her sins against
the people of the land, but the people knew better.  Her body was 
recovered from a forsaken temple by wandering gnomes and carried to
the cathedral, where it was blessed with holy water and received the
gods' benedictions.
^
^Her service to our people will never be forgotten.
ENDTEXT
@ENDIF

@IF
NOSCHISM
defender=ANYBODY
@THEN
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=19
receiver=Beckians
@THEN
TEXT
^^Lure of Mighty Magic Attracts Powerful Sorceror
^
^We have discovered spells even the mages of Westmark know nothing of, thanks to treasures
brought back from the dungeons.  Hearing of this, the mighty sorceror Omarus Phaesor pledges
himself to our cause.  [Omarus:  3/6/3, f3/h2, spells, teleportation, seer/sees2, magic resistant,
veteran]
ENDTEXT
CREATEUNIT
unit=Omarus Phaesor
owner=Beckians
veteran=yes
homecity=NONE
locations
36,132
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=87
receiver=Beckians
@THEN
TEXT
^^Antinat Joins the Guard
^
^One of the men signing up to train as a guard proves to be much more -- Antinat, one of the
strongest and fastest warriors in the world.  [Antinat:  8/8/6, f2/h6, magic resistant]
ENDTEXT
CREATEUNIT
unit=Antinat
owner=Beckians
veteran=no
homecity=NONE
locations
36,132
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Antinat
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Antinat Declared a Saint
^
^The mighty warrior Antinat died from massive injuries sustained during
battle.  Peasants are said to have carried him, each of them weeping,
to the great cathedral.  His legacy of kindness and generosity towards
the simple people will never be forgotten.  His sword has been kept as
a relic and he has been sainted.
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=25
receiver=Beckians
@THEN
TEXT
^^Livia Blood-Ice Hired for 100 Gold
^
^The call for mercenaries reaches the farthest corners of the known world.  Among those who
respond is the mighty ranger Livia Blood-Ice of the Northern Marches, owner of the Shield of
Celerity.  No one alive can run as fast as she can.  [Livia:  6/6/12, f2/h5, x3 Move]
ENDTEXT
CREATEUNIT
unit=Livia
owner=Beckians
veteran=no
homecity=NONE
locations
36,132
endlocations
CHANGEMONEY
receiver=Beckians
amount=-100
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Livia
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Livia Mourned Despite Heart of Ice
^
^The death of the ranger Livia Blood-Ice came as a shock to the people
of Beckhorn.  Though never loved, and widely known as a drinker, brawler,
gambler and cheat, her might was unquestioned.  For her services to 
Beckhorn, her debts were all assumed by the monarchy.  [50 gp lost]
ENDTEXT
CHANGEMONEY
receiver=Beckians
amount=-50
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=74
receiver=Beckians
@THEN
TEXT
^^Knights of Beckhorn Founded
^^Sir Noteworthy III Assumes Command
^
^With the founding of the great Knights of Beckhorn comes the world-reknowned knight who
survived the orcish wars in the south, Sir Noteworthy III, saying, "I shall not rest until the last orc
has fallen before my blade."  [Noteworthy:  8/8/3, f2/h6, resist magic, veteran]
ENDTEXT
CREATEUNIT
unit=Noteworthy III
owner=Beckians
veteran=yes
homecity=NONE
locations
36,132
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Noteworthy III
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Noteworthy Dies, But His Legacy Lives On
^
^Noteworthy III, commander of the Knights of Beckhorn, died in battle.
His courage and might were an inspiration to us all.  Upon his death,
a squire discovered a scroll in his quarters donating his life's savings
to continuing the battle against evil in Beckhorn.  [+100 Gold!]
ENDTEXT
CHANGEMONEY
receiver=Beckians
amount=100
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=36
receiver=Beckians
@THEN
TEXT
^^Miners' League Organizes to Return to Work
^
^With the formation of the miner's league, the legendary miner Dech Woot agrees to join your
cause.  He has many magical powers gleaned from potent magics found beneath the earth in his
youth.  "All my life I have sought to bring my fellow workers together.  After this struggle is over, I
hope that our lot in life can be improved."  [Dech:  2/4/6, f2/h2, magic resistant, x3 move,
teleportation]
ENDTEXT
CREATEUNIT
unit=Dech Woot
owner=Beckians
veteran=no
homecity=NONE
locations
36,132
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Dech Woot
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Dech Woot Vanishes
^
^The leader of the miner's guild, Dech Woot, was seen to be struck by
a monster and then simply vanished into thin air.  No one knows his
current whereabouts.
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=45
receiver=Beckians
@THEN
TEXT
^^Thieves Say "Monsters Are Bad For Business"
^^Send Surprise Aid to the King!
^
^A secret thieves' guild is located somewhere in our city.  Their black market operations, though
criminal, would be greatly disrupted were our kingdom to fall.  The guildmaster, Zjorz th'Knife,
whose deadly poisonous knife made him infamous, agrees to help.  Who are we to refuse?
[Zjorz:  5/4/4, fp30/h3, x3 move]
ENDTEXT
CREATEUNIT
unit=Zjorz th'Knife
owner=Beckians
veteran=no
homecity=NONE
locations
36,132
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Zjorz th'Knife
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Thieves' Guild Dispersed
^
^Riots in the streets followed a rash of violent attacks upon prominent
Beckhorn citizens.  The blame has been placed on the thieves' guild, 
who without their leader have fallen to squabbling amongst themselves.
The gang wars are finally stopped decisively by the kings' guards, who
round up and kill or imprison over two dozen local bosses.  The guild
will never be the same again.
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=81
receiver=Beckians
@THEN
TEXT
^^Elven Heroine Pledges Her Longbow to Battle Evil
^
^The elven alliance proves helpful indeed.  The greatest heroine of the elves, Egri Deltan the archer,
has joined your cause.  Her swiftness and her deadly aim will save us many times over.  [Egri:
2/3/5, f3/h3, x3 move]
ENDTEXT
CREATEUNIT
unit=Egri Deltan
owner=Beckians
veteran=no
homecity=NONE
locations
36,132
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Egri Deltan
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Elven Heroine Returned to the Trees
^
^Egri Deltan was terribly wounded fighting for our defense.  Her aid,
a symbol of the elven commitment to saving Beckhorn, has not been
forgotten by the people.  The elven people are touched by the huge
pilgrimage of Beckhorn's citizens to visit her grave site -- a trip
many of these grateful people will make every year until they die
to honor the elfmaid.
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=65
receiver=Beckians
@THEN
TEXT
^^Pleas for Aid Are Answered!
^
^Our plea for aid goes out to the neighboring kingdoms.  Among those to respond favorably are
the elves, the dwarves, and the wizards of Westmark  Each say that an alliance is not out of the
question.  Best of all, the elves send the famed scout Thurin Leaflover as an immediate aid against
the monsters.  [Thurin:  9/2/4, f2/h4, x3 move]
ENDTEXT
CREATEUNIT
unit=Thurin the Elf
owner=Beckians
veteran=no
homecity=NONE
locations
36,132
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Thurin the Elf
attacker=ANYBODY
defender=Beckians
@THEN
TEXT
^^Thurin Leaflover Carried Back to His People's Homeland
^
^The scout Thurin Leaflover was slain by monsters, but his body was
returned to Beckhorn where grateful citizens carried it aloft for
eight days towards the elven forests.  Along the way, people showered
his body with wildflowers.
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=99
receiver=Beckians
@THEN
TEXT
^^Paladin Order of St. Doyhozs Founded
^
^The great cathedral of Beckhorn's bells ring out in the streets
as our first paladins are trained.  These holy warriors surpass
even our knights in their desire to purge the world of evil --
and in skill, as well.
ENDTEXT
@ENDIF

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

@IF
UNITKILLED
unit=Captive
attacker=Beckians
defender=ANYBODY
@THEN
TEXT
"My thanks for freeing me from these monsters.  It's been almost a month since I was brought
here. My name is Mjollin, and I am a grey wizard of Westmark."  The mage bows deeply.  "The
great dragon captured me because I discovered his secret -- he can be slain in two ways, either
directly or by destroying his Heart, which is hidden in his hoard.  Beware, for his strength is great,
and a direct attack is certain to result in many deaths.  Your best bet is to send a fast warrior to
destroy his lair."  With that, he vanishes in a puff of smoke!
ENDTEXT
GIVETECHNOLOGY
receiver=TRIGGERATTACKER
technology=6
@ENDIF

@IF
UNITKILLED
unit=Damsel
attacker=Beckians
defender=ANYBODY
@THEN
TEXT
You release the woman from her chains.  "Thank you, adventurers.  I am Nema, the sister to
the Paladin-General of Westmark.  Because of my capture, she has not been able to send aid,
but now..."  Her eyes glint in the torchlight.  "You may be certain that she will open
negotiations with your forces against the darkness.  Farewell, adventurers!  And good luck!"
ENDTEXT
GIVETECHNOLOGY
receiver=Beckians
technology=98
@ENDIF

@IF
UNITKILLED
unit=Treasure
attacker=Beckians
defender=ANYBODY
@THEN
TEXT
You find 50 gold inside of the chest!
ENDTEXT
CHANGEMONEY
receiver=Beckians
amount=50
@ENDIF

@IF
CITYTAKEN
city=Dark Fortress
attacker=Beckians
defender=Orcs
@THEN
TEXT
As the once mighty fortress burns, you are approached by an
orcish warrior.  You draw your sword on instinct, but it 
drops its weapons, and starts grunting and moaning in the 
strange language of orcs.  Your knowledge of this complex 
speech is limited, but you gather that he is a lone warrior 
that is willing to join your cause -- for a price.
^
^"I fight for the highest bidder, and do it well."
[Klaw Swiftkill: 8/4/3, f2/h3, x3 move]
ENDTEXT
CREATEUNIT
unit=Klaw Swiftkill
owner=TRIGGERATTACKER
veteran=yes
homecity=Beckhorn
locations
71,193
endlocations
CHANGEMONEY
receiver=Beckians
amount=-100
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Klaw Swiftkill
attacker=Beckians
defender=ANYBODY
@THEN
TEXT
^^Klaw Swiftkill Deserts!
^
^The orcish hero Klaw Swiftkill has abandoned our cause after receiving
a serious injury fighting.  The cowardly creature deserted despite having
won the trust of the people of Beckhorn.  Feelings of betrayal and anger
sour the people, and the kings' guards are hard-pressed to keep order.
ENDTEXT
@ENDIF

@ENDEVENTS
