@BEGINEVENTS
@IF
NEGOTIATION
talker=Khwarizmians
talkertype=humanorcomputer
listener=Muslims
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Muslims
talkertype=humanorcomputer
listener=Khwarizmians
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Muslims
talkertype=humanorcomputer
listener=Christians
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Christians
talkertype=humanorcomputer
listener=Muslims
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Muslims
talkertype=humanorcomputer
listener=Mongols
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Mongols
talkertype=humanorcomputer
listener=Muslims
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Khwarizmians
talkertype=humanorcomputer
listener=Mongols
listenertype=human
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Mongols
talkertype=human
listener=Khwarizmians
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=sung chinese
talkertype=humanorcomputer
listener=Mongols
listenertype=human
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Mongols
talkertype=human
listener=sung Chinese
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=indians
talkertype=humanorcomputer
listener=Mongols
listenertype=human
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Mongols
talkertype=human
listener=indians
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Khwarizmians
talkertype=humanorcomputer
listener=Indians
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Indians
talkertype=humanorcomputer
listener=Khwarizmians
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Chin / Kara-Khitai
talkertype=humanorcomputer
listener=sung Chinese
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Sung Chinese
talkertype=humanorcomputer
listener=Chin / Kara-Khitai
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=indians
talkertype=humanorcomputer
listener=sung Chinese
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Sung Chinese
talkertype=humanorcomputer
listener=indians
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Chin / Kara-Khitai
talkertype=humanorcomputer
listener=mongols
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Khwarizmians
talkertype=humanorcomputer
listener=Chin / Kara-Khitai
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=Chin / Kara-Khitai
talkertype=humanorcomputer
listener=Khwarizmians
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
NEGOTIATION
talker=mongols
talkertype=humanorcomputer
listener=Chin / Kara-Khitai
listenertype=humanorcomputer
@THEN

@ENDIF
@IF
UnitKilled
unit=king
attacker=mongols
defender=anybody
@THEN
ChangeMoney
receiver=Mongols
amount=100
TEXT
King killed by Mongols! 100 gold plundered.
ENDTEXT
@ENDIF
@IF
randomturn
denominator=20
@THEN
CreateUnit
unit=Mongol General
owner=Mongols
veteran=false
homecity=none
locations
125,29
136,20
122,16
108,18
endlocations
TEXT
A brillant general appears to lead the Mongols!
ENDTEXT
@ENDIF
@IF
randomturn
denominator=30
@THEN
CreateUnit
unit=General
owner=Khwarizmians
veteran=false
homecity=none
locations
77,59
72,52
69,57
61,59
49,69
81,63
endlocations
TEXT
A brillant general appears to lead the Khwarizmians!
ENDTEXT
@ENDIF
@IF
randomturn
denominator=35
@THEN
CreateUnit
unit=General
owner=Chin / Kara-Khitai
veteran=false
homecity=none
locations
153,31
155,41
148,46
93,43
endlocations
TEXT
A brillant general appears to lead the Chin!
ENDTEXT
@ENDIF
@IF
randomturn
denominator=40
@THEN
CreateUnit
unit=General
owner=Sung Chinese
veteran=false
homecity=none
locations
171,43
164,52
172,58
142,56
157,61
endlocations
TEXT
A brillant general appears to lead the Sung Chinese!
ENDTEXT
@ENDIF
@IF
randomturn
denominator=35
@THEN
CreateUnit
unit=General
owner=Indians
veteran=false
homecity=none
locations
95,73
90,68
106,78
134,78
endlocations
TEXT
A brillant general appears to lead the Indians!
ENDTEXT
@ENDIF
@IF
randomturn
denominator=35
@THEN
CreateUnit
unit=General
owner=Muslims
veteran=false
homecity=none
locations
36,60
10,60
24,84
49,33
endlocations
TEXT
A brillant general appears to lead the Muslims!
ENDTEXT
@ENDIF
@IF
randomturn
denominator=35
@THEN
CreateUnit
unit=General
owner=Christians
veteran=false
homecity=none
locations
21,55
24,52
13,15
19,37
0,0
endlocations
TEXT
A brillant general appears to lead the Christians!
ENDTEXT
@ENDIF
@IF
turn
turn=every
@THEN
ChangeMoney
receiver=barbarians
amount=3000
@ENDIF
@IF
UnitKilled
unit=genghis khan
attacker=anybody
defender=Mongols
@THEN
JustOnce
CreateUnit
unit=ogadai khan
owner=Mongols
veteran=false
homecity=none
locations
125,29
136,20
122,16
endlocations
GIVETECHNOLOGY
technology=96
receiver=mongols
TEXT
The great Genghis Khan is killed!  Ogadai Khan takes the throne.
The succession is orderly, thanks to the respect all Mongols had 
for Genghis Khan.
ENDTEXT
@ENDIF
@IF
RECEIVEDTECHNOLOGY
receiver=Mongols
technology=96
@THEN
CreateUnit
unit=rebel cavalry
owner=barbarians
veteran=true
homecity=none
locations
125,29
153,31
120,46
93,43
endlocations
@ENDIF
@IF
RECEIVEDTECHNOLOGY
receiver=Mongols
technology=96
@THEN
CreateUnit
unit=rebel cavalry
owner=barbarians
veteran=true
homecity=none
locations
125,29
153,31
120,46
93,43
endlocations
@ENDIF
@IF
UnitKilled
unit=ogadai khan
attacker=anybody
defender=Mongols
@THEN
JustOnce
GIVETECHNOLOGY
technology=64
receiver=mongols
CreateUnit
unit=mangu khan
owner=Mongols
veteran=false
homecity=none
locations
125,29
136,20
endlocations
TEXT
Ogadai Khan is killed!  Mangu Khan takes the throne.
Chaos surrounds the election of the next khan! Rival factions vie to
be the King of Kings.
ENDTEXT
@ENDIF
@IF
RECEIVEDTECHNOLOGY
receiver=Mongols
technology=64
@THEN
justonce
CreateUnit
unit=usurper
owner=barbarians
veteran=true
homecity=none
locations
92,38
91,39
93,39
89,31
91,31
84,42
91,41
endlocations
@ENDIF
@IF
RECEIVEDTECHNOLOGY
receiver=Mongols
technology=64
@THEN
justonce
CreateUnit
unit=usurper
owner=barbarians
veteran=true
homecity=none
locations
124,30
125,31
126,30
123,39
123,27
125,27
126,28
126,26
endlocations
@ENDIF
@IF
RECEIVEDTECHNOLOGY
receiver=Mongols
technology=96
@THEN
CreateUnit
unit=rebel cavalry
owner=barbarians
veteran=true
homecity=none
locations
80,46
89,47
93,43
endlocations
@ENDIF
@IF
UnitKilled
unit=mangu khan
attacker=anybody
defender=Mongols
@THEN
JustOnce
GIVETECHNOLOGY
technology=64
receiver=mongols
CreateUnit
unit=kublai khan
owner=Mongols
veteran=false
homecity=none
locations
150,26
125,29
136,20
endlocations
TEXT
Mangu Khan is killed!  Kublai Khan takes the throne.
Perhaps the Mongols are running out of good Khans to lead them.
Civil war errupts once again for the Mongol Empire is breaking
apart into more managable pieces.
ENDTEXT
@ENDIF
@IF
RECEIVEDTECHNOLOGY
receiver=Mongols
technology=64
@THEN
justonce
GIVETECHNOLOGY
technology=44
receiver=mongols
CreateUnit
unit=usurper
owner=barbarians
veteran=true
homecity=none
locations
70,52
72,54
73,53
73,51
72,50
71,51
75,53
75,51
endlocations
@ENDIF
@IF
RECEIVEDTECHNOLOGY
receiver=Mongols
technology=64
@THEN
justonce
CreateUnit
unit=rebel cavalry
owner=barbarians
veteran=true
homecity=none
locations
78,52
72,52
67,49
77,59
69,57
endlocations
@ENDIF
@IF
UnitKilled
unit=kublai khan
attacker=anybody
defender=Mongols
@THEN
TEXT
Kublai Khan is killed!
The last of the great khans has been killed- there are no khans
worthy to fill Kublai Khan's shoes.
ENDTEXT
@ENDIF
@IF
UnitKilled
unit=emperor
attacker=anybody
defender=sung chinese
@THEN
justonce
CreateUnit
unit=emperor
owner=sung chinese
veteran=false
homecity=none
locations
172,58
171,43
160,48
165,61
142,56
endlocations
@ENDIF
@IF
UnitKilled
unit=emperor
attacker=mongols
defender=sung chinese
@THEN
justonce
ChangeMoney
receiver=Mongols
amount=1000
TEXT
Sung Emperor killed! 1000 gold pillaged.
A new Emperor takes the throne.
ENDTEXT
@ENDIF
@IF
UnitKilled
unit=emperor
attacker=anybody
defender=chin / kara-khitai
@THEN
justonce
CreateUnit
unit=emperor
owner=chin / kara-khitai
veteran=false
homecity=none
locations
155,41
148,46
161,39
160,34
endlocations
@ENDIF
@IF
UnitKilled
unit=emperor
attacker=mongols
defender=chin / kara-khitai
@THEN
justonce
ChangeMoney
receiver=Mongols
amount=1000
TEXT
Chin Emperor killed! 1000 gold pillaged.
A new Emperor takes the throne.
ENDTEXT
@ENDIF
@IF
UnitKilled
unit=emperor
attacker=anybody
defender=Khwarizmians
@THEN
justonce
CreateUnit
unit=Jalal al-Din
owner=Khwarizmians
veteran=false
homecity=none
locations
78,52
61,59
49,69
55,73
77,59
endlocations
@ENDIF
@IF
UnitKilled
unit=emperor
attacker=mongols
defender=Khwarizmians
@THEN
justonce
ChangeMoney
receiver=Mongols
amount=500
TEXT
The Khwarizmian Shah Mohammad (Emperor unit) is killed!
500 gold pillaged.  The brilliant Jalal al-Din takes his place.
ENDTEXT
@ENDIF
@IF
UnitKilled
unit=emperor
attacker=anybody
defender=indians
@THEN
justonce
CreateUnit
unit=emperor
owner=indians
veteran=false
homecity=none
locations
106,78
95,73
90,68
111,77
endlocations
@ENDIF
@IF
UnitKilled
unit=emperor
attacker=mongols
defender=indians
@THEN
justonce
ChangeMoney
receiver=Mongols
amount=800
TEXT
The Indian Sultan (Emperor unit) killed! 
800 gold pillaged. A new Sultan takes the throne.
ENDTEXT
@ENDIF
@IF
UnitKilled
unit=emperor
attacker=anybody
defender=christians
@THEN
justonce
CreateUnit
unit=emperor
owner=christians
veteran=false
homecity=none
locations
2,18
1,21
0,0
endlocations
@ENDIF
@IF
UnitKilled
unit=emperor
attacker=mongols
defender=christians
@THEN
justonce
ChangeMoney
receiver=Mongols
amount=500
TEXT
The Christian Emperor unit is killed! 500 gold pillaged.
A new Emperor takes the throne.
ENDTEXT
@ENDIF
@IF
citytaken
city=hang-chou
attacker=mongols
defender=anybody
@THEN
justonce
GIVETECHNOLOGY
technology=98
receiver=mongols
text
Mongols conquer the Sung capital Hang-chou, the largest city
in the world! Mongols warriors are richer by 2000 extra gold!
endtext
changemoney
receiver=mongols
amount=2000
GIVETECHNOLOGY
technology=98
receiver=mongols
@ENDIF
@IF
citytaken
city=kaifeng
attacker=mongols
defender=anybody
@THEN
justonce
text
Mongols conquer the Chin Dynasty main city of Kaifeng!  The 
Chin have suffered a terrible blow! The Mongols loot 1000 extra gold!
endtext
changemoney
receiver=mongols
amount=1000
GIVETECHNOLOGY
technology=97
receiver=mongols
@ENDIF
@IF
citytaken
city=baghdad
attacker=mongols
defender=anybody
@THEN
justonce
text
Mongols conquer the Caliphate of Baghdad! The Muslim world mourns 
the loss of their most important city. The Mongols loot 2500 gold!
endtext
changemoney
receiver=mongols
amount=2500
@ENDIF
@IF
citytaken
city=Rome
attacker=mongols
defender=anybody
@THEN
justonce
GIVETECHNOLOGY
technology=99
receiver=mongols
text
Mongols conquer Rome!  The Pope is killed and the Vatican looted and
defiled.  Christianity launches a crusade to save the holy city!
endtext
@ENDIF
@IF
RECEIVEDTECHNOLOGY
receiver=Mongols
technology=98
@THEN
justonce
CreateUnit
unit=armored knights
owner=christians
veteran=true
homecity=none
locations
2,18
1,13
5,15
1,9
0,0
7,11
endlocations
@ENDIF
@IF
citytaken
city=Mecca
attacker=mongols
defender=anybody
@THEN
justonce
text
Mongols conquer the city of Mecca, home of Mohammed!  The spiritual
center of the Muslim world is taken!  The Mongols loot 1500 gold!
endtext
changemoney
receiver=mongols
amount=1500
@ENDIF
@IF
citytaken
city=Jerusalem
attacker=mongols
defender=anybody
@THEN
justonce
text
Mongols conquer the city of Jerusalem, the holy city of Jews, Christians
and Muslims!  The world is stunned! The Mongols loot 1000 gold!
endtext
changemoney
receiver=mongols
amount=1000
@ENDIF
@IF
citytaken
city=Alamut
attacker=anybody
defender=barbarians
@THEN
justonce
text
The Assassins of Alamut have been driven from their mountain strongholds! 
They regroup in their remaining fortresses in Southern Persia and Syria.
endtext
@ENDIF
@IF
randomturn
denominator=100
@THEN
justonce
text
The Turkish slaves rise up and take power in Egypt!  Soon the Mamluke
Turkish horsemen are coming from the steppes in ever increasing numbers
and starting to dominate militarily in the Middle East.
endtext
GIVETECHNOLOGY
technology=1
receiver=muslims
@ENDIF
@IF
randomturn
denominator=120
@THEN
justonce
text
Marco Polo opens up contact between East and West.
endtext
GIVETECHNOLOGY
technology=12
receiver=christians
@ENDIF
@IF
randomturn
denominator=200
@THEN
justonce
text
Ibn Battuta wanders foreign lands.
endtext
GIVETECHNOLOGY
technology=77
receiver=muslims
@ENDIF
@IF
turn
turn=every
@THEN
CreateUnit
unit=Assassin
owner=Barbarians
veteran=false
homecity=none
locations
50,56
71,77
34,50
68,74
endlocations
@ENDIF
@IF
turn
turn=every
@THEN
CreateUnit
unit=indian infantry
owner=Barbarians
veteran=false
homecity=none
locations
103,93
96,90
97,101
89,89
101,101
endlocations
@ENDIF
@IF
randomturn
denominator=5
@THEN
CreateUnit
unit=mongol cavalry
owner=mongols
veteran=true
homecity=karakorum
locations
125,29
endlocations
@ENDIF
@IF
randomturn
denominator=7
@THEN
CreateUnit
unit=mongol cavalry
owner=mongols
veteran=true
homecity=naiman
locations
108,18
endlocations
@ENDIF
@IF
randomturn
denominator=7
@THEN
CreateUnit
unit=mongol cavalry
owner=mongols
veteran=true
homecity=tatar
locations
136,20
endlocations
@ENDIF
@IF
randomturn
denominator=3
@THEN
CreateUnit
unit=knights
owner=Barbarians
veteran=false
homecity=none
locations
5,7
12,2
6,2
11,7
endlocations
@ENDIF
@IF
randomturn
denominator=3
@THEN
CreateUnit
unit=horse archers
owner=Barbarians
veteran=true
homecity=none
locations
27,21
35,25
43,23
23,23
53,25
34,24
endlocations
@ENDIF
@IF
randomturn
denominator=5
@THEN
CreateUnit
unit=horse archers
owner=Barbarians
veteran=true
homecity=none
locations
84,30
88,30
98,28
endlocations
@ENDIF
@IF
randomturn
denominator=3
@THEN
CreateUnit
unit=china infantry
owner=Barbarians
veteran=true
homecity=none
locations
141,67
147,63
138,64
143,71
146,68
endlocations
@ENDIF
@IF
randomturn
denominator=4
@THEN
CreateUnit
unit=elephant
owner=Barbarians
veteran=false
homecity=none
locations
152,86
152,80
144,88
endlocations
@ENDIF
@IF
randomturn
denominator=4
@THEN
CreateUnit
unit=elephant
owner=Barbarians
veteran=false
homecity=none
locations
139,81
135,85
141,75
endlocations
@ENDIF
@IF
randomturn
denominator=3
@THEN
CreateUnit
unit=indian infantry
owner=Barbarians
veteran=true
homecity=none
locations
123,75
125,77
121,77
127,81
127,75
endlocations
@ENDIF
@IF
randomturn
denominator=3
@THEN
CreateUnit
unit=elephant
owner=Barbarians
veteran=true
homecity=none
locations
111,87
97,101
102,100
92,94
endlocations
@ENDIF
@IF
randomturn
denominator=5
@THEN
CreateUnit
unit=cameleers
owner=Barbarians
veteran=true
homecity=none
locations
32,72
41,83
36,82
endlocations
@ENDIF
@IF
randomturn
denominator=5
@THEN
CreateUnit
unit=samurai
owner=barbarians
veteran=true
homecity=none
locations
185,17
183,21
180,30
185,25
183,13
endlocations
@ENDIF
@IF
randomturn
denominator=5
@THEN
CreateUnit
unit=mamlukes
owner=indians
veteran=true
homecity=none
locations
99,79
95,73
106,78
endlocations
@ENDIF
@IF
turn
turn=every
@THEN
CreateUnit
unit=china cavalry
owner=chin / kara-khitai
veteran=true
homecity=none
locations
161,39
155,41
148,46
endlocations
@ENDIF
@ENDEVENTS