;
; Events text for the Age of Philip II Scenario
; by Jesús Balsinde (last modified May 4)
;

@BEGINEVENTS

@IF
SCENARIOLOADED
@THEN
PLAYCDTRACK
12
DONTPLAYWONDERS

@IF
NOSCHISM
DEFENDER=anybody 
@THEN
@ENDIF

@IF
NEGOTIATION
talker=Turks
talkertype=humanorcomputer
listener=Spanish
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=Spanish
talkertype=humanorcomputer
listener=Turks
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=Turks
talkertype=humanorcomputer
listener=French
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=French
talkertype=humanorcomputer
listener=Turks
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=English
talkertype=humanorcomputer
listener=Turks
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=Turks
talkertype=humanorcomputer
listener=English
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=Turks
talkertype=humanorcomputer
listener=United Provinces
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=United Provinces
talkertype=humanorcomputer
listener=Turks
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=Turks
talkertype=humanorcomputer
listener=Austrian Habsburgs
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=Austrian Habsburgs
talkertype=humanorcomputer
listener=Turks
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=Turks
talkertype=humanorcomputer
listener=City States
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=City States
talkertype=humanorcomputer
listener=Turks
listenertype=humanorcomputer
@THEN
@ENDIF

@IF
Turn
turn=-1
@THEN
makeaggression
who=turks
whom=austrian habsburgs
@ENDIF
@IF
Turn
turn=-1
@THEN
makeaggression
who=austrian habsburgs
whom=turks
@ENDIF

@IF
Turn
turn=-1
@THEN
makeaggression
who=english
whom=spanish
@ENDIF
@IF
Turn
turn=-1
@THEN
makeaggression
who=spanish
whom=english
@ENDIF

@IF
TURN
turn=-1
@THEN
CHANGEMONEY
receiver=english
amount=200
@ENDIF

@IF
TURN
turn=-1
@THEN
CHANGEMONEY
receiver=french
amount=200
@ENDIF

@IF
TURN
turn=-1
@THEN
CHANGEMONEY
receiver=city states
amount=200
@ENDIF

@IF
TURN
turn=-1
@THEN
CHANGEMONEY
receiver=austrian habsburgs
amount=200
@ENDIF

@IF
TURN
turn=-1
@THEN
CHANGEMONEY
receiver=united provinces
amount=100
@ENDIF

@IF
TURN
turn=-1
@THEN
CHANGEMONEY
receiver=turks
amount=400
@ENDIF

@IF
UNITKILLED
unit=Don Juan de Austria
attacker=anybody
defender=Spanish
@THEN
TEXT 
^Don Juan de Austria, symbol of imperial pride, dies in battle.
^The entire Spanish nation goes into mourning.
ENDTEXT
PLAYWAVEFILE
killed.wav
CHANGEMONEY    
receiver=triggerattacker
amount=3939
@ENDIF   

@IF
UNITKILLED
unit=Duke of Alba
attacker=anybody
defender=spanish
@THEN
TEXT 
^The Duke of Alba, symbol of imperial pride, dies in battle.
^The entire Spanish nation goes into mourning.
ENDTEXT
PLAYWAVEFILE
killed.wav
CHANGEMONEY    
receiver=triggerattacker
amount=3939
@ENDIF

@IF
CITYTAKEN
CITY=Amsterdam
ATTACKER=Spanish
DEFENDER=United Provinces
@THEN
TEXT
^Victorious, the troops of the Duke of Alba enter in Amsterdam. Does this announce
^the beginning of the end for the Dutch patriots? 
ENDTEXT
JUSTONCE
CREATEUNIT
unit=Duke of Alba
owner=Spanish
veteran=yes
homecity=None
locations
49,65
48,64
50,64
51,63
51,65
51,67
49,67
48,66
47,65
47,63
endlocations
JUSTONCE
@ENDIF

@IF
RANDOMTURN
denominator=66
@THEN
CREATEUNIT
unit=elite cavalry
owner=Spanish
veteran=yes
homecity=none
locations
45,69
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=66
@THEN
CREATEUNIT
unit=elite cavalry
owner=Spanish
veteran=yes
homecity=none
locations
51,83
endlocations
@ENDIF
@IF
RANDOMTURN
denominator=55
@THEN
CREATEUNIT
unit=elite cavalry
owner=Spanish
veteran=yes
homecity=none
locations
53,75
endlocations
@ENDIF

@ENDEVENTS


