@BEGINEVENTS

@IF
SCENARIOLOADED
@THEN
PLAYCDTRACK
15
@ENDIF

@IF
SCENARIOLOADED
@THEN
DONTPLAYWONDERS
@ENDIF

@IF
NOSCHISM
defender=anybody
@THEN
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=al-andalus
whom=navarres
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=navarres
whom=al-andalus
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=al-andalus
whom=castilians-leonese
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=castilians-leonese
whom=al-andalus
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=al-andalus
whom=aragonese
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=aragonese
whom=al-andalus
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=al-andalus
whom=catalans
@ENDIF

@IF
TURN
turn=-1
@THEN
MAKEAGGRESSION
who=catalans
whom=al-andalus
@ENDIF

@IF
NEGOTIATION
talker=al-andalus
talkertype=HumanOrComputer
listener=Anybody
listenertype=HumanOrComputer
@THEN
MAKEAGGRESSION
who=al-andalus
whom=anybody
@ENDIF

@IF
NEGOTIATION
talker=fatimids
talkertype=HumanOrComputer
listener=Anybody
listenertype=HumanOrComputer
@THEN
MAKEAGGRESSION
who=fatimids
whom=anybody
@ENDIF

@IF
NEGOTIATION
talker=Anybody
talkertype=HumanOrComputer
listener=fatimids
listenertype=HumanOrComputer
@THEN
MAKEAGGRESSION
who=anybody
whom=fatimids
@ENDIF

@IF
NEGOTIATION
talker=Anybody
talkertype=HumanOrComputer
listener=al-andalus
listenertype=HumanOrComputer
@THEN
MAKEAGGRESSION
who=Anybody
whom=al-andalus
@ENDIF

@IF
TURN
turn=-1
@THEN
CHANGEMONEY
receiver=al-andalus
amount=6
@ENDIF

@IF
TURN
turn=2
@THEN
TEXT
^News arrive that al-Mansur, scourge of Christianity, has died in Medinaceli.
^The Christians, relieved, take a deep breath...
ENDTEXT
@ENDIF

@IF
RANDOMTURN
denominator=35
@THEN
CREATEUNIT
unit=Slavs
owner=Al-Andalus
veteran=yes
homecity=none
locations
29,87
25,89
41,93
endlocations
@ENDIF

@IF
UNITKILLED
unit=caravan
attacker=castilians-leonese
defender=al-andalus
@THEN
TEXT
^Al-Andalusí caravan pillaged by Castilian raid parties. Castilians
rejoice with the riches captured. 
ENDTEXT
CHANGEMONEY    
receiver=castilians-leonese
amount=700
@ENDIF

@IF
UNITKILLED
unit=caravan
attacker=aragonese
defender=al-andalus
@THEN
TEXT
^Al-Andalusí caravan pillaged by Aragonese raid parties. Aragonese
rejoice with the riches captured. 
ENDTEXT
CHANGEMONEY    
receiver=aragonese
amount=700
@ENDIF

@IF
UNITKILLED
unit=caravan
attacker=navarres
defender=al-andalus
@THEN
TEXT
^Al-Andalusí caravan pillaged by Navarrese raid parties. Navarres
^rejoice with the riches captured. 
ENDTEXT
CHANGEMONEY    
receiver=navarres
amount=700
@ENDIF

@IF
UNITKILLED
unit=caravan
attacker=franks
defender=al-andalus
@THEN
TEXT
^Al-Andalusí caravan pillaged by Frankish raid parties. Franks
^rejoice with the riches captured. 
ENDTEXT
CHANGEMONEY    
receiver=franks
amount=700
@ENDIF

@IF
UNITKILLED
unit=caravan
attacker=catalans
defender=al-andalus
@THEN
TEXT
^Al-Andalusí caravan pillaged by Catalan raid parties. Catalans
rejoice with the riches captured. 
ENDTEXT
CHANGEMONEY    
receiver=catalans
amount=700
@ENDIF

@IF
UNITKILLED
unit=El Cid
attacker=anybody
defender=castilians-leonese
@THEN
TEXT
^El Cid is slain. God, what a good vassal if there was a good lord!
ENDTEXT
CHANGEMONEY
receiver=TRIGGERATTACKER
amount=6666
@ENDIF

@IF
UNITKILLED
unit=noblemen
attacker=anybody
defender=castilians-leonese
@THEN
TEXT
^A Grandee of Spain has fallen in battle. Castile mourns its loss.
ENDTEXT
CHANGEMONEY
receiver=TRIGGERATTACKER
amount=100
@ENDIF

@IF
RANDOMTURN
denominator=50
@THEN
CREATEUNIT
unit=noblemen
owner=castilians-leonese
veteran=false
homecity=none
locations
33,55
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=50
@THEN
CREATEUNIT
unit=crossbowmen
owner=castilians-leonese
veteran=false
homecity=none
locations
33,55
endlocations
@ENDIF


@IF
UNITKILLED
unit=noblemen
attacker=anybody
defender=aragonese
@THEN
TEXT
^A Grandee of Spain has fallen in battle. Aragón mourns its loss.
ENDTEXT
CHANGEMONEY
receiver=TRIGGERATTACKER
amount=100
@ENDIF

@IF
RANDOMTURN
denominator=50
@THEN
CREATEUNIT
unit=noblemen
owner=aragonese
veteran=false
homecity=none
locations
75,49
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=50
@THEN
CREATEUNIT
unit=crossbowmen
owner=aragonese
veteran=false
homecity=none
locations
75,49
endlocations
@ENDIF

@IF
UNITKILLED
unit=noblemen
attacker=anybody
defender=navarres
@THEN
TEXT
^A Grandee of Spain has fallen in battle. Navarre mourns its loss.
ENDTEXT
CHANGEMONEY
receiver=TRIGGERATTACKER
amount=100
@ENDIF

@IF
RANDOMTURN
denominator=50
@THEN
CREATEUNIT
unit=noblemen
owner=navarres
veteran=false
homecity=none
locations
61,47
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=50
@THEN
CREATEUNIT
unit=crossbowmen
owner=navarres
veteran=false
homecity=none
locations
61,47
endlocations
@ENDIF

@IF
turn
turn=8
@THEN
TEXT
Burgundian Knights established in France
ENDTEXT
@ENDIF

@IF
turn
turn=9
@THEN
GIVETECHNOLOGY
technology=83
receiver=franks
@ENDIF

@IF
turn
Turn=41
@THEN
TEXT
^Mio Cid banned from Castile! Dust, sweat, and iron, El Cid rides alone.
ENDTEXT
@ENDIF

@IF
turn
Turn=42
@THEN
CREATEUNIT
unit=El Cid
owner=castilians-leonese
veteran=yes
homecity=none
locations
50,68
49,69
49,67
51,67
51,65
53,65
54,66
55,67
54,68
48,66
endlocations
@ENDIF

@IF
TURN
turn=43
@THEN
TEXT
Almoravids of Morocco send help to Al-Andalus!
ENDTEXT
GIVETECHNOLOGY
receiver=Al-Andalus
technology=77
@ENDIF

@IF
TURN
turn=44
@THEN
CREATEUNIT
unit=almoravids
owner=al-andalus
veteran=no
homecity=none
locations
28,104
endlocations
@ENDIF

@IF
TURN
turn=44
@THEN
CREATEUNIT
unit=saracens
owner=al-andalus
veteran=no
homecity=none
locations
29,103
endlocations
@ENDIF

@IF
TURN
turn=60
@THEN
TEXT
^Knights Templar established in Aragon
ENDTEXT
@ENDIF

@IF
turn
turn=61
@THEN
GIVETECHNOLOGY
technology=63
receiver=aragonese
@ENDIF

@IF
TURN
turn=67
@THEN
TEXT
Almohads of Morocco take over Al-Andalus!
ENDTEXT
GIVETECHNOLOGY
receiver=Al-Andalus
technology=80
@ENDIF

@IF
TURN
turn=67
@THEN
CREATEUNIT
unit=almohad inf.
owner=al-andalus
veteran=no
homecity=none
locations
26,92
endlocations
@ENDIF

@IF
TURN
turn=67
@THEN
CREATEUNIT
unit=almohad cav.
owner=al-andalus
veteran=no
homecity=none
locations
26,90
endlocations
@ENDIF

@IF
turn
turn=70
@THEN
GIVETECHNOLOGY
technology=32
receiver=franks
@ENDIF
@IF
turn
turn=70
@THEN
GIVETECHNOLOGY
technology=32
receiver=catalans
@ENDIF
@IF
turn
turn=70
@THEN
GIVETECHNOLOGY
technology=32
receiver=aragonese
@ENDIF
@IF
turn
turn=70
@THEN
GIVETECHNOLOGY
technology=32
receiver=navarres
@ENDIF
@IF
turn
turn=70
@THEN
GIVETECHNOLOGY
technology=32
receiver=castilians-leonese
@ENDIF

@IF
TURN
turn=76
@THEN
TEXT
^Calatrava Order established in Castile-León
ENDTEXT
GIVETECHNOLOGY
receiver=Castilians-leonese
technology=69
@ENDIF

@IF
TURN
turn=77
@THEN
CREATEUNIT
unit=calatravas
owner=castilians-leonese
veteran=yes
homecity=none
locations
33,55
endlocations
@ENDIF

@IF
TURN
turn=77
@THEN
CREATEUNIT
unit=calatravas
owner=castilians-leonese
veteran=yes
homecity=none
locations
31,55
endlocations
@ENDIF

@IF
TURN
turn=77
@THEN
CREATEUNIT
unit=calatravas
owner=castilians-leonese
veteran=yes
homecity=none
locations
29,55
endlocations
@ENDIF

@IF
TURN
turn=77
@THEN
CREATEUNIT
unit=calatravas
owner=castilians-leonese
veteran=yes
homecity=none
locations
27,55
endlocations
@ENDIF

@IF
TURN
turn=77
@THEN
CREATEUNIT
unit=calatravas
owner=castilians-leonese
veteran=yes
homecity=none
locations
25,55
endlocations
@ENDIF

@IF
TURN
turn=81
@THEN
TEXT
^Santiago Order established in Castile-León
ENDTEXT
@ENDIF
@IF
TURN
turn=82
@THEN
CREATEUNIT
unit=santiaguistas
owner=castilians-leonese
veteran=yes
homecity=none
locations
33,55
endlocations
@ENDIF

@IF
TURN
turn=82
@THEN
CREATEUNIT
unit=santiaguistas
owner=castilians-leonese
veteran=yes
homecity=none
locations
31,55
endlocations
@ENDIF

@IF
TURN
turn=82
@THEN
CREATEUNIT
unit=santiaguistas
owner=castilians-leonese
veteran=yes
homecity=none
locations
29,55
endlocations
@ENDIF

@IF
TURN
turn=82
@THEN
CREATEUNIT
unit=santiaguistas
owner=castilians-leonese
veteran=yes
homecity=none
locations
27,55
endlocations
@ENDIF

@IF
TURN
turn=98
@THEN
TEXT
^Pope Innocent III calls the Third Crusade against the Moors of
^Al-Andalus!
ENDTEXT
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=aragonese
veteran=yes
homecity=none
locations
71,49
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=aragonese
veteran=yes
homecity=none
locations
73,49
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=aragonese
veteran=yes
homecity=none
locations
75,49
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=aragonese
veteran=yes
homecity=none
locations
77,49
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=aragonese
veteran=yes
homecity=none
locations
79,49
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=aragonese
veteran=yes
homecity=none
locations
69,49
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=aragonese
veteran=yes
homecity=none
locations
67,49
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=aragonese
veteran=yes
homecity=none
locations
66,46
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=aragonese
veteran=yes
homecity=none
locations
68,44
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=aragonese
veteran=yes
homecity=none
locations
70,44
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=navarres
veteran=yes
homecity=none
locations
59,47
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=navarres
veteran=yes
homecity=none
locations
61,47
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=navarres
veteran=yes
homecity=none
locations
61,45
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=navarres
veteran=yes
homecity=none
locations
60,42
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=castilians-leonese
veteran=yes
homecity=none
locations
43,55
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=castilians-leonese
veteran=yes
homecity=none
locations
41,55
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=castilians-leonese
veteran=yes
homecity=none
locations
39,55
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=castilians-leonese
veteran=yes
homecity=none
locations
37,55
endlocations
@ENDIF

@IF
TURN
turn=99
@THEN
CREATEUNIT
unit=crusaders
owner=castilians-leonese
veteran=yes
homecity=none
locations
35,55
endlocations
@ENDIF

@IF
TURN
turn=107
@THEN
TEXT
^Alcántara Order established in Castile-León
ENDTEXT
GIVETECHNOLOGY
receiver=Castilians-leonese
technology=68
@ENDIF
@IF
TURN
turn=108
@THEN
CREATEUNIT
unit=alcántaras
owner=castilians-leonese
veteran=yes
homecity=none
locations
33,55
endlocations
@ENDIF
@IF
TURN
turn=108
@THEN
CREATEUNIT
unit=alcántaras
owner=castilians-leonese
veteran=yes
homecity=none
locations
31,55
endlocations
@ENDIF
@IF
TURN
turn=108
@THEN
CREATEUNIT
unit=alcántaras
owner=castilians-leonese
veteran=yes
homecity=none
locations
29,55
endlocations
@ENDIF

@IF
turn
turn=113
@THEN
TEXT
^This scenario "officially" ends in 5 turns.
ENDTEXT
@ENDIF

@IF
turn
Turn=118
@THEN
TEXT
^This year Córdoba fell to the Castilian troops of Ferdinand III "the
 Saint". This is the "official" end of the scenario. If you wish, you can
 continue playing until 1492. The scoring thing would still be going on.
ENDTEXT
@ENDIF

@ENDEVENTS
