; Events for the Crimson Manuscript --- last edited Aug 30
:
@BEGINEVENTS

@IF
SCENARIOLOADED
@THEN
PLAYCDTRACK
15
@ENDIF

@IF
SCENARIOLOADED
@THEN
DONTPLAYWONDERS
@ENDIF

@IF
NOSCHISM
defender=anybody
@THEN
@ENDIF

@IF
TURN
turn=every
@THEN
MAKEAGGRESSION
who=moors
whom=castilians
@ENDIF

@IF
TURN
turn=every
@THEN
MAKEAGGRESSION
who=castilians
whom=moors
@ENDIF

@IF
TURN
turn=every
@THEN
MAKEAGGRESSION
who=moors
whom=aragonese
@ENDIF

@IF
TURN
turn=every
@THEN
MAKEAGGRESSION
who=aragonese
whom=moors
@ENDIF

@IF
NEGOTIATION
talker=moors
talkertype=HumanOrComputer
listener=aragonese
listenertype=HumanOrComputer
@THEN
MAKEAGGRESSION
who=moors
whom=aragonese
@ENDIF

@IF
NEGOTIATION
talker=aragonese
talkertype=HumanOrComputer
listener=moors
listenertype=HumanOrComputer
@THEN
MAKEAGGRESSION
who=aragonese
whom=moors
@ENDIF

@IF
NEGOTIATION
talker=moors
talkertype=HumanOrComputer
listener=castilians
listenertype=HumanOrComputer
@THEN
MAKEAGGRESSION
who=moors
whom=castilians
@ENDIF

@IF
NEGOTIATION
talker=castilians
talkertype=HumanOrComputer
listener=moors
listenertype=HumanOrComputer
@THEN
MAKEAGGRESSION
who=castilians
whom=moors
@ENDIF

@IF
NEGOTIATION
talker=aragonese
talkertype=humanorcomputer
listener=castilians
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=castilians
talkertype=humanorcomputer
listener=aragonese
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
TURN
turn=every
@THEN
CHANGEMONEY
receiver=castilians
amount=393
@ENDIF

@IF
TURN
turn=3
@THEN
@THEN
TEXT
^^ATTENTION: SCENARIO RULES!!!
^El Gran Capitán, commander in chief of Castilian armies, is the most
^powerful unit of the scenario. Perhaps you have met him already.
^This unit was meant to be used ONLY by the AI. Therefore, do not 
^bribe it!! If accidentally you do so, please disband it. Otherwise the
^scenario would loss all of its interest, not only because of the 
^incongrouos of the situation, but because in human hands El Gran 
^Capitán would be invincible.
^
^Oops, almost forgot! Please, do not sabotage him either ;-)
ENDTEXT
@ENDIF

@IF
TURN
turn=15
@THEN
TEXT
^Christians use metal cannon-balls!!! 
ENDTEXT
GIVETECHNOLOGY
technology=52
receiver=castilians
@ENDIF

@IF
turn
turn=16
@THEN
GIVETECHNOLOGY
technology=52
receiver=aragonese
@ENDIF

@IF
RANDOMTURN
denominator=50
@THEN
CREATEUNIT
unit=C Peasants
owner=castilians
veteran=false
homecity=none
locations
12,22
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=50
@THEN
CREATEUNIT
unit=C Peasants
owner=castilians
veteran=false
homecity=none
locations
26,22
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=50
@THEN
CREATEUNIT
unit=C Peasants
owner=castilians
veteran=false
homecity=none
locations
33,11
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=50
@THEN
CREATEUNIT
unit=C Peasants
owner=castilians
veteran=false
homecity=none
locations
46,14
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=200
@THEN
CREATEUNIT
unit=M Peasants
owner=moors
veteran=false
homecity=none
locations
48,34
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=200
@THEN
CREATEUNIT
unit=M Peasants
owner=moors
veteran=false
homecity=none
locations
75,29
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=200
@THEN
CREATEUNIT
unit=M Peasants
owner=moors
veteran=false
homecity=none
locations
70,44
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=200
@THEN
CREATEUNIT
unit=M Peasants
owner=moors
veteran=false
homecity=none
locations
37,47
endlocations
@ENDIF

@IF
UNITKILLED
unit=Isabel de Solís
attacker=anybody
defender=moors
@THEN
CREATEUNIT
unit=Soraya
owner=moors
veteran=yes
homecity=granada
locations
49,29
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=50
@THEN
JUSTONCE
TEXT
^The Christians are using new, more powerful muskets!
ENDTEXT
GIVETECHNOLOGY
technology=63
receiver=castilians
@ENDIF

@IF
UNITKILLED
unit=El Gran Capitán
attacker=moors
defender=castilians
@THEN
TEXT
^Gonzalo Fernández de Córdoba, El Gran Capitán, dies in battle. 
^Christendom mourns the loss of the greatest of her generals. 
ENDTEXT
GIVETECHNOLOGY
technology=32
receiver=moors
@ENDIF

@IF
UNITKILLED
unit=Boabdil
attacker=Anybody
defender=Moors
@THEN
TEXT
^Boabdil is slain. Anarchy reigns everywhere. Is this the end of
^Granada?
ENDTEXT
CHANGEMONEY
receiver=triggerdefender
amount=-9999
@ENDIF

@IF
UNITKILLED
unit=Mulhacén
attacker=anybody
defender=moors
@THEN
TEXT
^The Christians have conquered the Mulhacén, the highest peak of the
^Iberian peninsula. The Granadines have lost control over one of their
^most valued symbols.
^
^Muley Hassan, Boabdil's father, is buried at the foot of the mountain.
^Boabdil claims vengeance for the profanation of his father's tomb.
ENDTEXT
CHANGEMONEY
receiver=triggerattacker
amount=6969
@ENDIF

@IF
UNITKILLED
unit=El Zagal
attacker=anybody
defender=moors
@THEN
TEXT
^El Zagal dies in battle. Granada mourns the loss of the most talented
^of her generals. 
ENDTEXT
CHANGEMONEY
receiver=TRIGGERATTACKER
amount=2121
@ENDIF

@IF
TURN
turn=26
@THEN
TEXT
^The Moors of Africa send help to their brothers of Granada!
ENDTEXT
@ENDIF

@IF
TURN
Turn=27
@THEN
CREATEUNIT
unit=Camel
owner=moors
veteran=yes
homecity=none
locations
19,61
endlocations
@ENDIF
@IF
TURN
Turn=27
@THEN
CREATEUNIT
unit=Camel
owner=moors
veteran=yes
homecity=none
locations
16,60
endlocations
@ENDIF
@IF
TURN
Turn=27
@THEN
CREATEUNIT
unit=Camel
owner=moors
veteran=yes
homecity=none
locations
11,63
endlocations
@ENDIF
@IF
TURN
Turn=27
@THEN
CREATEUNIT
unit=scimitars
owner=moors
veteran=yes
homecity=none
locations
19,63
endlocations
@ENDIF
@IF
TURN
Turn=27
@THEN
CREATEUNIT
unit=scimitars
owner=moors
veteran=yes
homecity=none
locations
15,61
endlocations
@ENDIF
@IF
TURN
Turn=27
@THEN
CREATEUNIT
unit=scimitars
owner=moors
veteran=yes
homecity=none
locations
10,64
endlocations
@ENDIF
@IF
TURN
Turn=27
@THEN
CREATEUNIT
unit=benimerines
owner=moors
veteran=yes
homecity=none
locations
19,59
endlocations
@ENDIF
@IF
TURN
Turn=27
@THEN
CREATEUNIT
unit=benimerines
owner=moors
veteran=yes
homecity=none
locations
17,59
endlocations
@ENDIF
@IF
TURN
Turn=27
@THEN
CREATEUNIT
unit=benimerines
owner=moors
veteran=yes
homecity=none
locations
9,63
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=25
@THEN
CREATEUNIT
unit=Aragonese
owner=Aragonese
veteran=false
homecity=none
locations
75,5
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=25
@THEN
CREATEUNIT
unit=aragonese
owner=aragonese
veteran=false
homecity=none
locations
77,5
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=50
@THEN
CREATEUNIT
unit=Atl. Carrack
owner=castilians
veteran=false
homecity=none
locations
4,58
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=50
@THEN
CREATEUNIT
unit=Atl. Carrack
owner=castilians
veteran=false
homecity=none
locations
17,65
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=100
@THEN
CREATEUNIT
unit=Med. Boat
owner=moors
veteran=false
homecity=none
locations
20,54
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=400
@THEN
CREATEUNIT
unit=M Peasants
owner=moors
veteran=false
homecity=none
locations
34,50
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=30
@THEN
CREATEUNIT
unit=C Lancers
owner=castilians
veteran=false
homecity=none
locations
31,23
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=30
@THEN
CREATEUNIT
unit=C Lancers
owner=castilians
veteran=false
homecity=none
locations
32,34
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=30
@THEN
CREATEUNIT
unit=C Lancers
owner=castilians
veteran=false
homecity=none
locations
11,51
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=30
@THEN
CREATEUNIT
unit=C Lancers
owner=castilians
veteran=false
homecity=none
locations
16,38
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=40
@THEN
CREATEUNIT
unit=harquebusier
owner=castilians
veteran=false
homecity=none
locations
43,15
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=40
@THEN
CREATEUNIT
unit=harquebusier
owner=castilians
veteran=false
homecity=none
locations
50,14
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=40
@THEN
CREATEUNIT
unit=harquebusier
owner=castilians
veteran=false
homecity=none
locations
56,14
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=400
@THEN
CREATEUNIT
unit=abencerrajes
owner=moors
veteran=yes
homecity=none
locations
46,30
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=400
@THEN
CREATEUNIT
unit=abencerrajes
owner=moors
veteran=yes
homecity=none
locations
32,48
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=400
@THEN
CREATEUNIT
unit=abencerrajes
owner=moors
veteran=yes
homecity=none
locations
66,44
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=400
@THEN
CREATEUNIT
unit=zegríes
owner=moors
veteran=yes
homecity=none
locations
48,26
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=400
@THEN
CREATEUNIT
unit=zegríes
owner=moors
veteran=yes
homecity=none
locations
35,45
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=400
@THEN
CREATEUNIT
unit=zegríes
owner=moors
veteran=yes
homecity=none
locations
68,44
endlocations
@ENDIF

@ENDEVENTS



