; Events file for Stoker
; Scenario Design Contest #3

@BEGINEVENTS

@INITFLAG

@IF
SCENARIOLOADED
@THEN
PLAYCDTRACK
10
DONTPLAYWONDERS
@ENDIF

;Negotiations

;Byzantine

@IF
Negotiation
talkermask=0b00000000000000000000000000100000
listenermask=0b00000000000000000000000001011111
@THEN
@ENDIF

@IF
Negotiation
talkermask=0b00000000000000000000000001011111
listenermask=0b00000000000000000000000000100000
@THEN
@ENDIF

;Ottoman-Hungary/Moldova

@IF
Negotiation
talkermask=0b00000000000000000000000000000110
listenermask=0b00000000000000000000000000011000
@THEN
@ENDIF

@IF
Negotiation
talkermask=0b00000000000000000000000000011000
listenermask=0b00000000000000000000000000000110
@THEN
@ENDIF

;Danesti

@IF
Negotiation
talkermask=0b00000000000000000000000001000000
listenermask=0b00000000000000000000000000111111
@THEN
@ENDIF

@IF
Negotiation
talkermask=0b00000000000000000000000000111111
listenermask=0b00000000000000000000000001000000
@THEN
@ENDIF

;Mircea-Hungarian

@IF
Negotiation
talkermask=0b00000000000000000000000000000010
listenermask=0b00000000000000000000000000000001
@THEN
@ENDIF

@IF
Negotiation
talkermask=0b00000000000000000000000000000001
listenermask=0b00000000000000000000000000000010
@THEN
@ENDIF

;Mircea-Moldova

@IF
Negotiation
talkermask=0b00000000000000000000000000000100
listenermask=0b00000000000000000000000000000001
@THEN
@ENDIF

@IF
Negotiation
talkermask=0b00000000000000000000000000000001
listenermask=0b00000000000000000000000000000100
@THEN
@ENDIF

;Mircea-Ottoman

@IF
Negotiation
talkermask=0b00000000000000000000000000011000
listenermask=0b00000000000000000000000000000001
@THEN
@ENDIF

@IF
Negotiation
talkermask=0b00000000000000000000000000000001
listenermask=0b00000000000000000000000000011000
@THEN
@ENDIF

; Changing states of negotiation

@IF
RandomTurn
denominator=10
@THEN
Justonce
FLAG
who=Mirceans
flag=0
state=on
@ENDIF

@IF
CHECKFLAG
who=Mirceans
flag=0
state=on
@THEN
Negotiator
who=Ottomans
type=listener
state=clear
@ENDIF

@IF
CHECKFLAG
who=Mirceans
flag=0
state=on
@THEN
justonce
TEXT
An Ottoman emmisary has arrived at the fortress bringing word from
Sultan Mehemed - this promises to open a line of dialogue between our
respective foreign ministers at some future point.
ENDTEXT
@ENDIF

@IF
RandomTurn
denominator=10
@THEN
Justonce
FLAG
who=Mirceans
flag=1
state=on
@ENDIF

@IF
CHECKFLAG
who=Mirceans
flag=1
state=on
@THEN
Negotiator
who=Hungarians
type=listener
state=clear
@ENDIF

@IF
CHECKFLAG
who=Mirceans
flag=1
state=on
@THEN
justonce
TEXT
A Hungarian emmisary has arrived at the fortress bringing word from 
King Matthus Corvinus - this arrival augers well for the establishment
of negotiations with the Hungarians within the next few years.
ENDTEXT
@ENDIF

@IF
RandomTurn
denominator=10
@THEN
Justonce
FLAG
who=Mirceans
flag=2
state=on
@ENDIF

@IF
CHECKFLAG
who=Mirceans
flag=2
state=on
@THEN
Negotiator
who=Moldovans
type=listener
state=clear
@ENDIF

@IF
CHECKFLAG
who=Mirceans
flag=2
state=on
@THEN
justonce
TEXT
A Moldovan emmisary has arrived at the fortress bringing word from 
King Bogdan - as such, within the next few years we might be able to
undertake diplomatic talks with the Moldovan court.
ENDTEXT
@ENDIF


;Introduction

 
@IF
TURN
turn=1
@THEN
TEXT
^^~  Stoker: Setting  ~
^
The House of Mircea held sway over the vassal state of Wallachia.
Vlad Tepes finds himself in the resentful position of attempting to 
appease both the Hungarians to the north, and the burgeoning 
Ottoman Empire to the south. A proud and deeply principled leader 
in his own right, Vlad Tepes must demonstrate an 'iron fist in a 
velvet glove' approach to leadership by commanding respect in the 
diplomatic as well as militaristic spheres.
ENDTEXT
@ENDIF 

@IF
TURN
turn=1
@THEN
TEXT
^^~  Stoker: Setting  ~
^
Vlad Tepes holds a deeply bitter view of the Hungarians, who recently 
assassinated his father and eldest brother. Likewise, Vlad Tepes despises the Ottomans who held him captive as a boy, and has forced
the once proud Kingdom of Wallachia into political servitude. His efforts to rule his state have been frustrated by traditional family rivals, the Danesti House whose Generals are often aided by the local Boyers in fueling uprisings.
ENDTEXT
@ENDIF 

@IF
TURN
turn=1
@THEN
TEXT
^^~  Stoker: Victory Conditions  ~
^
Three alternate victory conditions present themselves. Take careful note of the
details (also set out in the 'read me' file).
ENDTEXT
@ENDIF 

@IF
TURN
turn=1
@THEN
TEXT
[a.] 'Ottoman retreat': Capture Constantinople and Mostar (lies to the
south west) by force, OR...
^[b.] 'Hungarian recoil': Capture Buda and Cluj by force, OR...
^[c.] 'Double trouble': Capture by force both the Hungarian city of Pecs and 
the Ottoman city of Adrianopole and hold them both simultaneously for 
a duration of five years.
ENDTEXT
@ENDIF 

@IF
TURN
TURN=8
@THEN
CREATEUNIT
owner=Danesti House
unit=Knights
count=3
veteran=yes
homecity=none
randomize
locations
78,50,0
76,50,0
80,48,0
73,39,0
79,41,0
endlocations
@ENDIF

@IF
TURN
TURN=8
@THEN
CREATEUNIT
owner=Danesti House
unit=Knights
count=3
veteran=yes
homecity=none
randomize
locations
78,50,0
76,50,0
80,48,0
73,39,0
79,41,0
endlocations
@ENDIF

@IF
TURN
TURN=8
@THEN
CREATEUNIT
owner=Danesti House
unit=Knights
count=3
veteran=yes
homecity=none
randomize
locations
78,50,0
76,50,0
80,48,0
73,39,0
79,41,0
endlocations
@ENDIF

@IF
TURN
TURN=11
@THEN
CREATEUNIT
owner=Danesti House
unit=Loyalists
count=3
veteran=yes
homecity=none
randomize
locations
78,50,0
76,50,0
80,48,0
73,39,0
79,41,0
endlocations
@ENDIF

@IF
TURN
TURN=8
@THEN
MOVEUNIT
unit=Knights
owner=Danesti House
maprect
72,36,80,36,80,52,72,52
moveto
77,45
numbertomove=All
@ENDIF

@IF
TURN
TURN=9
@THEN
MOVEUNIT
unit=Knights
owner=Danesti House
maprect
72,36,80,36,80,52,72,52
moveto
77,45
numbertomove=All
@ENDIF

@IF
TURN
TURN=10
@THEN
MOVEUNIT
unit=Knights
owner=Danesti House
maprect
72,36,80,36,80,52,72,52
moveto
77,45
numbertomove=All
@ENDIF

@IF
TURN
TURN=12
@THEN
MOVEUNIT
unit=Loyalists
owner=Danesti House
maprect
72,36,80,36,80,52,72,52
moveto
77,45
numbertomove=All
@ENDIF

@IF
TURN
TURN=18
@THEN
TEXT
The Danesti House are amassing a military force in order to recapture 
the Wallachian throne.
ENDTEXT
CREATEUNIT
owner=Danesti House
unit=Knights
count=3
veteran=yes
homecity=none
randomize
locations
78,50,0
76,50,0
80,48,0
73,39,0
79,41,0
endlocations
@ENDIF

@IF
TURN
TURN=18
@THEN
CREATEUNIT
owner=Danesti House
unit=Knights
count=3
veteran=yes
homecity=none
randomize
locations
78,50,0
76,50,0
80,48,0
73,39,0
79,41,0
endlocations
@ENDIF

@IF
TURN
TURN=18
@THEN
CREATEUNIT
owner=Danesti House
unit=Knights
count=3
veteran=yes
homecity=none
randomize
locations
78,50,0
76,50,0
80,48,0
73,39,0
79,41,0
endlocations
@ENDIF

@IF
TURN
TURN=21
@THEN
CREATEUNIT
owner=Danesti House
unit=Loyalists
count=3
veteran=yes
homecity=none
randomize
locations
78,50,0
76,50,0
80,48,0
73,39,0
79,41,0
endlocations
@ENDIF

@IF
TURN
TURN=18
@THEN
MOVEUNIT
unit=Knights
owner=Danesti House
maprect
72,36,80,36,80,52,72,52
moveto
77,45
numbertomove=All
@ENDIF

@IF
TURN
TURN=19
@THEN
MOVEUNIT
unit=Knights
owner=Danesti House
maprect
72,36,80,36,80,52,72,52
moveto
77,45
numbertomove=All
@ENDIF

@IF
TURN
TURN=20
@THEN
MOVEUNIT
unit=Knights
owner=Danesti House
maprect
72,36,80,36,80,52,72,52
moveto
77,45
numbertomove=All
@ENDIF

@IF
TURN
TURN=22
@THEN
MOVEUNIT
unit=Loyalists
owner=Danesti House
maprect
72,36,80,36,80,52,72,52
moveto
77,45
numbertomove=All
@ENDIF

@IF
TURN
TURN=20
@THEN
MAKEAGRESSION
who=Hungarians
whom=Danesti
text
The Hungarians, frustrated by lack of militaristic support and 
waivering diplomatic commitment by the Danesti House choose to drive 
Danesti troops back towards Constantinople and seek a new found 
faith in the Mircean order.
endtext
@ENDIF

@IF
TURN
TURN=20
@THEN
ModifyReputation
who=Mirceans
whom=Hungarians
betray=0
@ENDIF

@IF
TURN
TURN=20
@THEN
FLAG
who=Mirceans
flag=1
state=on
text
A Hungarian emmisary is travelling nearby. You may, if you wish, 
attempt to open negotiations through your foreign minister.
endtext
@ENDIF

@IF
TURN
TURN=28
@THEN
text
Far to the west, a war that has raged for a Hundred Years appears to 
be concluding as the English surrender their last outpost in 
Aquitaine to the French. In recent years, the French have developed a 
new sense of national identity, as personified by Jehanne D'Arc 
(Joan of Arc) - a peasant girl who led the French armies towards this 
victory over the English. In 1431 she was to be captured and burned 
by the English as a witch.
endtext
@ENDIF

@IF
TURN
TURN=28
@THEN
CREATEUNIT
owner=Ottomans
unit=Janissaries
count=12
veteran=yes
homecity=none
randomize
locations
113,71,0
111,69,0
110,72,0
110,70,0
endlocations
@ENDIF

@IF
TURN
TURN=28
@THEN
CREATEUNIT
owner=Ottomans
unit=Janissaries
count=12
veteran=yes
homecity=none
randomize
locations
113,71,0
111,69,0
110,72,0
110,70,0
endlocations
@ENDIF


@IF
CITYTAKEN
City=Constantinople
attacker=Ottomans
defender=Byzantines
@THEN
JUSTONCE
Text
Constantinople falls! Entering Constantinople at the head of a procession,
Mehmed II rides straight to the Hagia Sophia and converts it into a mosque.
14,000 gold ducats per annum are put aside for the upkeep and service 
of the mosque. One of the tasks to which Mehmed II sets his heart is 
the restoration of the city as a worthy capital of a worldwide empire.
ENDTEXT
@ENDIF 

@IF
TURN
TURN=34
@THEN
TEXT
Your scouts report that Generals from the Danesti House are making claims
upon the Moldovan Empire.
ENDTEXT
MAKEAGGRESSION
who=Danesti House
whom=Moldovans
@ENDIF

@IF
TURN
TURN=34
@THEN
CREATEUNIT
owner=Danesti House
unit=Knights
count=8
veteran=yes
homecity=none
randomize
locations
104,16,0
106,16,0
104,14,0
106,14,0
endlocations
@ENDIF

@IF
TURN
TURN=36
@THEN
TEXT
In England, a series of dynastic civil wars break out. Fought between 
the Houses of Lancaster and York for the English throne, the 
'War of the Roses' (the white rose of York and the red rose of 
Lancaster) are founded upon a royal dispute - both houses claiming 
the throne through descent from the sons of Edward III.
ENDTEXT
@ENDIF

@IF
TURN
TURN=37
@THEN
TEXT
Tensions between Hungary and the Mircea House strain. A small troop 
of horsemen formerly loyal to the Hungarian throne join the 
House of Mircea. They report that an Ottoman force is heading towards 
Belgrade.
ENDTEXT
CREATEUNIT
owner=Mirceans
unit=Horsemen
count=1
veteran=no
homecity=none
randomize
locations
31,35,0
30,34,0
33,37,0
35,37,0
38,36,0
33,35,0
35,35,0
31,37,0
endlocations
@ENDIF

@IF
TURN
TURN=37
@THEN
CREATEUNIT
owner=Mirceans
unit=Horsemen
count=1
veteran=no
homecity=none
randomize
locations
31,35,0
30,34,0
33,37,0
35,37,0
38,36,0
33,35,0
35,35,0
31,37,0
endlocations
@ENDIF

@IF
TURN
TURN=38
@THEN
CREATEUNIT
owner=Hungarians
unit=Crusaders
count=5
veteran=no
homecity=none
randomize
locations
31,35,0
30,34,0
33,37,0
35,37,0
38,36,0
33,35,0
35,35,0
31,37,0
endlocations
@ENDIF

@IF
TURN
TURN=38
@THEN
CREATEUNIT
owner=Ottomans
unit=Janissaries
count=5
veteran=no
homecity=none
randomize
locations
31,35,0
30,34,0
33,37,0
35,37,0
38,36,0
33,35,0
35,35,0
31,37,0
endlocations
@ENDIF

@IF
TURN
TURN=38
@THEN
CREATEUNIT
owner=Hungarians
unit=Crusaders
count=5
veteran=no
homecity=none
randomize
locations
31,35,0
30,34,0
33,37,0
35,37,0
38,36,0
33,35,0
35,35,0
31,37,0
endlocations
@ENDIF

@IF
TURN
TURN=38
@THEN
CREATEUNIT
owner=Ottomans
unit=Janissaries
count=5
veteran=no
homecity=none
randomize
locations
31,35,0
30,34,0
33,37,0
35,37,0
38,36,0
33,35,0
35,35,0
31,37,0
endlocations
@ENDIF

@IF
TURN
TURN=48
@THEN
TEXT
Europe shudders as Mehmed the Conqueror and his Turkish troops plunder 
the great city of Athens. The Ottomans show little restraint during 
their Greek onslaught, as this land had been a former launching point 
for the Crusades.
ENDTEXT
@ENDIF

Turn - 1460
Ottomans attack Brasov

@IF
TURN
TURN=56
@THEN
CREATEUNIT
owner=Ottomans
unit=Janissaries
count=1
veteran=yes
homecity=none
randomize
locations
85,17,0
83,15,0
80,16,0
79,11,0
81,23,0
endlocations
@ENDIF

@IF
TURN
TURN=56
@THEN
CREATEUNIT
owner=Ottomans
unit=Janissaries
count=3
veteran=no
homecity=none
randomize
locations
85,17,0
83,15,0
80,16,0
79,11,0
81,23,0
endlocations
@ENDIF

@IF
TURN
TURN=56
@THEN
CREATEUNIT
owner=Ottomans
unit=Janissaries
count=3
veteran=no
homecity=none
randomize
locations
85,17,0
83,15,0
80,16,0
79,11,0
81,23,0
endlocations
@ENDIF

@IF
TURN
TURN=56
@THEN
MOVEUNIT
owner=Ottomans
unit=Janissaries
maprect
78,12,86,12,86,26,78,26
moveto
83,21
numbertomove=All
@ENDIF

@IF
TURN
TURN=57
@THEN
MOVEUNIT
owner=Ottomans
unit=Janissaries
maprect
78,12,86,12,86,26,78,26
moveto
83,21
numbertomove=All
@ENDIF


@IF
TURN
TURN=58
@THEN
MOVEUNIT
owner=Ottomans
unit=Janissaries
maprect
78,12,86,12,86,26,78,26
moveto
83,21
numbertomove=All
@ENDIF

@IF
CITYTAKEN
city=Brasov
attacker=Ottomans
defender=Hungarians
@THEN
JUSTONCE
TEXT
As Brasov falls, Hungarian diplomats are dispatched from Buda to 
European centres appealing for military support. The Ottoman invasion 
is regarded to be particularly pervasive as Hungarian towns are 
seemingly attacked from all flanks.
ENDTEXT
CREATEUNIT
owner=Hungarians
unit=Crusaders
count=8
veteran=no
homecity=none
randomize
locations
35,15,0
30,22,0
70,6,0
61,11,0
57,15,0
52,18,0
44,24,0
endlocations
@ENDIF

@IF
TURN
TURN=97
@THEN
TEXT
News speads through Europe that Portuguese explorations have lead to 
the discovery and charting of Africa's Gold Coast and Congo River.
ENDTEXT
@ENDIF

@IF
TURN
TURN=109
@THEN
TEXT
Investment in print has established Buda as the principal centre of 
literature outside of Italy. The King of Hungary founds a library of 
over 10,000 volumes.
ENDTEXT
@ENDIF

@IF
CITYTAKEN
City=Constantinople
attacker=Mirceans
defender=Byzantines
@THEN
FLAG
continuous
who=Mirceans
flag=6
state=on
@ENDIF

@IF
CITYTAKEN
City=Constantinople
attacker=Mirceans
defender=Ottomans
@THEN
FLAG
continuous
who=Mirceans
flag=6
state=on
@ENDIF

@IF
CITYTAKEN
City=Constantinople
attacker=Mirceans
defender=Hungarians
@THEN
FLAG
continuous
who=Mirceans
flag=6
state=on
@ENDIF

@IF
CITYTAKEN
City=Constantinople
attacker=Mirceans
defender=Danesti House
@THEN
FLAG
continuous
who=Mirceans
flag=6
state=on
@ENDIF

@IF
CITYDESTROYED
City=Constantinople
owner=Danesti House
@THEN
FLAG
continuous
who=Mirceans
flag=6
state=on
@ENDIF

@IF
CITYDESTROYED
City=Constantinople
owner=Byzantines
@THEN
FLAG
continuous
who=Mirceans
flag=6
state=on
@ENDIF

@IF
CITYDESTROYED
City=Constantinople
owner=Ottomans
@THEN
FLAG
continuous
who=Mirceans
flag=6
state=on
@ENDIF

@IF
CITYDESTROYED
City=Constantinople
owner=Hungarians
@THEN
FLAG
continuous
who=Mirceans
flag=6
state=on
@ENDIF


@IF
CITYTAKEN
City=Mostar
attacker=Mirceans
defender=Byzantines
@THEN
FLAG
continuous
who=Mirceans
flag=7
state=on
@ENDIF

@IF
CITYTAKEN
City=Mostar
attacker=Mirceans
defender=Ottomans
@THEN
FLAG
continuous
who=Mirceans
flag=7
state=on
@ENDIF

@IF
CITYTAKEN
City=Mostar
attacker=Mirceans
defender=Hungarians
@THEN
FLAG
continuous
who=Mirceans
flag=7
state=on
@ENDIF

@IF
CITYDESTROYED
City=Mostar
owner=Byzantines
@THEN
FLAG
continuous
who=Mirceans
flag=7
state=on
@ENDIF

@IF
CITYDESTROYED
City=Mostar
owner=Ottomans
@THEN
FLAG
continuous
who=Mirceans
flag=7
state=on
@ENDIF

@IF
CITYDESTROYED
City=Mostar
owner=Hungarians
@THEN
FLAG
continuous
who=Mirceans
flag=7
state=on
@ENDIF

@IF
CITYTAKEN
City=Mostar
attacker=Mirceans
defender=Danesti House
@THEN
FLAG
continuous
who=Mirceans
flag=7
state=on
@ENDIF

@IF
CITYDESTROYED
City=Mostar
owner=Danesti House
@THEN
FLAG
continuous
who=Mirceans
flag=7
state=on
@ENDIF

@IF
CITYTAKEN
City=Buda
attacker=Mirceans
defender=Moldovans
@THEN
FLAG
continuous
who=Mirceans
flag=8
state=on
@ENDIF

@IF
CITYTAKEN
City=Buda
attacker=Mirceans
defender=Ottomans
@THEN
FLAG
continuous
who=Mirceans
flag=8
state=on
@ENDIF

@IF
CITYTAKEN
City=Buda
attacker=Mirceans
defender=Hungarians
@THEN
FLAG
continuous
who=Mirceans
flag=8
state=on
@ENDIF

@IF
CITYTAKEN
City=Buda
attacker=Mirceans
defender=Danesti House
@THEN
FLAG
continuous
who=Mirceans
flag=8
state=on
@ENDIF

@IF
CITYDESTROYED
City=Buda
owner=Danesti House
@THEN
FLAG
continuous
who=Mirceans
flag=8
state=on
@ENDIF

@IF
CITYDESTROYED
City=Buda
owner=Moldovans
@THEN
FLAG
continuous
who=Mirceans
flag=8
state=on
@ENDIF

@IF
CITYDESTROYED
City=Buda
owner=Ottomans
@THEN
FLAG
continuous
who=Mirceans
flag=8
state=on
@ENDIF

@IF
CITYDESTROYED
City=Buda
owner=Hungarians
@THEN
FLAG
continuous
who=Mirceans
flag=8
state=on
@ENDIF

@IF
CITYTAKEN
City=Cluj
attacker=Mirceans
defender=Moldovans
@THEN
FLAG
continuous
who=Mirceans
flag=9
state=on
@ENDIF

@IF
CITYTAKEN
City=Cluj
attacker=Mirceans
defender=Ottomans
@THEN
FLAG
continuous
who=Mirceans
flag=9
state=on
@ENDIF

@IF
CITYTAKEN
City=Cluj
attacker=Mirceans
defender=Hungarians
@THEN
FLAG
continuous
who=Mirceans
flag=9
state=on
@ENDIF

@IF
CITYTAKEN
City=Cluj
attacker=Mirceans
defender=Danesti House
@THEN
FLAG
continuous
who=Mirceans
flag=9
state=on
@ENDIF

@IF
CITYDESTROYED
City=Cluj
owner=Danesti House
@THEN
FLAG
continuous
who=Mirceans
flag=9
state=on
@ENDIF

@IF
CITYDESTROYED
City=Cluj
owner=Moldovans
@THEN
FLAG
continuous
who=Mirceans
flag=9
state=on
@ENDIF

@IF
CITYDESTROYED
City=Cluj
owner=Ottomans
@THEN
FLAG
continuous
who=Mirceans
flag=9
state=on
@ENDIF

@IF
CITYDESTROYED
City=Cluj
owner=Hungarians
@THEN
FLAG
continuous
who=Mirceans
flag=9
state=on
@ENDIF

@IF
CITYTAKEN
City=Pecs
attacker=Mirceans
defender=Moldovans
@THEN
FLAG
continuous
who=Mirceans
flag=10
state=on
@ENDIF

@IF
CITYTAKEN
City=Pecs
attacker=Mirceans
defender=Ottomans
@THEN
FLAG
continuous
who=Mirceans
flag=10
state=on
@ENDIF

@IF
CITYTAKEN
City=Pecs
attacker=Mirceans
defender=Hungarians
@THEN
FLAG
continuous
who=Mirceans
flag=10
state=on
@ENDIF

@IF
CITYTAKEN
City=Pecs
attacker=Mirceans
defender=Danesti House
@THEN
FLAG
continuous
who=Mirceans
flag=10
state=on
@ENDIF

@IF
CITYDESTROYED
City=Pecs
owner=Danesti House
@THEN
FLAG
continuous
who=Mirceans
flag=10
state=on
@ENDIF

@IF
CITYDESTROYED
City=Pecs
owner=Moldovans
@THEN
FLAG
continuous
who=Mirceans
flag=10
state=on
@ENDIF

@IF
CITYDESTROYED
City=Pecs
owner=Ottomans
@THEN
FLAG
continuous
who=Mirceans
flag=10
state=on
@ENDIF

@IF
CITYDESTROYED
City=Pecs
owner=Hungarians
@THEN
FLAG
continuous
who=Mirceans
flag=10
state=on
@ENDIF

@IF
CITYTAKEN
City=Adrianople
attacker=Mirceans
defender=Byzantines
@THEN
FLAG
continuous
who=Mirceans
flag=11
state=on
@ENDIF

@IF
CITYTAKEN
City=Adrianople
attacker=Mirceans
defender=Ottomans
@THEN
FLAG
continuous
who=Mirceans
flag=11
state=on
@ENDIF

@IF
CITYTAKEN
City=Adrianople
attacker=Mirceans
defender=Hungarians
@THEN
FLAG
continuous
who=Mirceans
flag=11
state=on
@ENDIF

@IF
CITYTAKEN
City=Adrianople
attacker=Mirceans
defender=Danesti House
@THEN
FLAG
continuous
who=Mirceans
flag=11
state=on
@ENDIF

@IF
CITYDESTROYED
City=Adrianople
owner=Danesti House
@THEN
FLAG
continuous
who=Mirceans
flag=11
state=on
@ENDIF

@IF
CITYDESTROYED
City=Adrianople
owner=Byzantines
@THEN
FLAG
continuous
who=Mirceans
flag=11
state=on
@ENDIF

@IF
CITYDESTROYED
City=Adrianople
owner=Ottomans
@THEN
FLAG
continuous
who=Mirceans
flag=11
state=on
@ENDIF

@IF
CITYDESTROYED
City=Adrianople
owner=Hungarians
@THEN
FLAG
continuous
who=Mirceans
flag=11
state=on
@ENDIF

@IF
CHECKFLAG
who=Mirceans
mask=0b110000000000
count=2
state=on
@THEN
DELAY
Delay=20
JUSTONCE
GIVETECHNOLOGY
technology=61
receiver=Mirceans
@ENDIF

@IF
CHECKFLAG
who=Mirceans
mask=0b110000000000
count=2
state=on
@THEN
DELAY
Delay=16
JUSTONCE
GIVETECHNOLOGY
technology=86
receiver=Mirceans
@ENDIF

@IF
CHECKFLAG
who=Mirceans
mask=0b110000000000
count=2
state=on
@THEN
TEXT
Pecs and Adrianopole are yours! Your challange is to retain these two cities as part of your empire for five years. This Victory Condition will fail if you lose either or both of these cities during this time.
ENDTEXT
@ENDIF

@IF
CITYDESTROYED
City=Adrianople
owner=Mirceans
@THEN
FLAG
continuous
who=Mirceans
flag=12
state=on
@ENDIF

@IF
CITYTAKEN
City=Adrianople
attacker=Anybody
defender=Mirceans
@THEN
FLAG
continuous
who=Mirceans
flag=12
state=on
@ENDIF

@IF
CITYDESTROYED
City=Pecs
owner=Mirceans
@THEN
FLAG
continuous
who=Mirceans
flag=12
state=on
@ENDIF

@IF
CITYTAKEN
City=Pecs
attacker=Anybody
defender=Mirceans
@THEN
FLAG
continuous
who=Mirceans
flag=12
state=on
@ENDIF

@IF
RECEIVEDTECHNOLOGY
receiver=Mirceans
technology=61
@AND
CHECKFLAG
Who=Mirceans
flag=12
state=off
@THEN
JUSTONCE
PLAYAVIFILE
SeigeEngine.avi
ENDGAME
endscreens=yes
TEXT
^^Victory!
^
The House of Mircea has earned the respect of the marauding Ottoman Empire, while
staking its claim for Wallachia as a legitimate European state. History will make
record of the valiant warrior Vlad Tepes.
ENDTEXT
@ENDIF

@IF
RECEIVEDTECHNOLOGY
receiver=Mirceans
technology=86
@AND
CHECKFLAG
Who=Mirceans
flag=12
state=off
@THEN
JUSTONCE
TEXT
The House of Mircea has demanded the attention of the Royal Courts in most of the known
World, as anecdotes abound of Vlad Tepes' masterful battles. Game victory is but a few
turns away, so long as Pecs and Adrianopole can be held.
ENDTEXT
@ENDIF

@IF
RANDOMTURN     
denominator=10
@AND
CHECKFLAG
who=Mirceans
flag=10
state=on
@THEN
MAKEAGGRESSION
Who=Hungarians
Whom=Mirceans
@ENDIF

@IF
RANDOMTURN     
denominator=10
@AND
CHECKFLAG
who=Mirceans
flag=11
state=on
@THEN
MAKEAGGRESSION
Who=Ottomans
Whom=Mirceans
@ENDIF

@IF
RANDOMTURN     
denominator=10
@AND
CHECKFLAG
who=Mirceans
flag=9
state=on
@THEN
MAKEAGGRESSION
Who=Hungarians
Whom=Mirceans
@ENDIF

@IF
RANDOMTURN     
denominator=10
@AND
CHECKFLAG
who=Mirceans
flag=7
state=on
@THEN
MAKEAGGRESSION
Who=Ottomans
Whom=Mirceans
@ENDIF

@IF
CHECKFLAG
who=Mirceans
mask=0b11000000
count=2
state=on
@THEN
JUSTONCE
PLAYAVIFILE
Scene4.avi
ENDGAME
endscreens=yes
TEXT
^^Victory!
^
The House of Mircea has turned back the marauding Ottoman Empire driving the Arab heathens
back to the Arabian deserts. Christian leaders applaud the brave battles fought under Vlad
Tepes, who returns Constantinople back to Christendom.
ENDTEXT
@ENDIF

@IF
CHECKFLAG
who=Mirceans
mask=0b1100000000
count=2
state=on
@THEN
JUSTONCE
PLAYAVIFILE
Scene4.avi
ENDGAME
endscreens=yes
TEXT
^^Victory!
^
The House of Mircea has stamped the authority of Wallachia as a strong European empire.
Vlad Tepes takes his revenge upon the traitorous Boyers and Hungarian nobility by ceremoniously
impaling them upon stakes at the city walls of Buda! Vlad Tepes will forever be regarded as a
strong, masterful ruler - a man of principle.
ENDTEXT
@ENDIF

@ENDEVENTS