; Events file
; Civ II ToT Original Game extension
; Copyright 1999 MicroProse Software
; some Eventstexts taken from Europe in Flames by Michael Jeszenska
;
; Initialization
; --------------

@BEGINEVENTS
@DEBUG
@INITFLAG

;
; Flags
; -----
; 
; 0   not used
; 1   not used
; 2   not used
; 3   not used
; 4   not used
; 5   not used
; 6   not used
; 7   not used
; 8   not used
; 9   not used
; 10  not used
; 11  not used
; 12  not used
; 13  not used
; 14  not used
; 15  not used
; 16  not used
; 17  not used
; 18  not used
; 19  not used
; 20  not used
; 21  not used
; 22  not used
; 23  not used
; 24  not used
; 25  not used
; 26  not used
; 27  not used
; 28  not used
; 29  not used
; 30  not used
; 31  not used

;
; Axis Negotiations
; ---------------------------------

; prohibit negotiations between Others and Axis after axis attack

@IF
UnitKilled
Unit=Anyunit
attacker=Axis
defender=Anybody
defender only
Continuous
@AND
Negotiation
talkermask=0b00000000000011111101111110111011
listenermask=0b00000000000100000010000000000100
@THEN
@ENDIF

; prohibit negotiations between Axis and Others

@IF
UnitKilled
Unit=Anyunit
attacker=Axis
defender=Anybody
defender only
Continuous
@AND
Negotiation
talkermask=0b00000000000100000010000000000100
listenermask=0b00000000000011111101111110111011
@THEN
@ENDIF


;who's AI  (Axis, Allies, USSR)
;Axis
@IF
Turn
turn=-1
@THEN
justonce
Text
create recon units
Endtext
CreateUnit
owner=Axis
unit=Recon Unit
count=3
veteran=no
homecity=Berlin
randomize
locations
151,97
159,55
242,106
endlocations
@ENDIF

@IF
Negotiation
talker=Axis
talkertype=Computer
listener=anybody
listenertype=HumanOrComputer
@THEN
justonce
Text
Axis AI
Endtext
TakeTechnology
whom=Axis
Technology=93
GiveTechnology		
technology=95
receiver=Axis
changemoney
receiver=Axis
amount=20000
;increase science
@ENDIF

@IF
Negotiation
talker=anybody
talkertype=HumanOrComputer
listener=Axis
listenertype=Computer
@THEN
justonce
Text
Axis AI
Endtext
TakeTechnology
whom=Axis
Technology=93
GiveTechnology		
technology=95
receiver=Axis
changemoney
receiver=Axis
amount=20000
;increase science
@ENDIF

;Allies
@IF
Turn
turn=-1
@THEN
justonce
CreateUnit
owner=Allies
unit=Recon Unit
count=3
veteran=no
homecity=London
randomize
locations
244,106
250,46
151,95
173,75
188,80
198,64
endlocations
@ENDIF

@IF
Negotiation
talker=Allies
talkertype=Computer
listener=anybody
listenertype=HumanOrComputer
@THEN
justonce
Text
Allies AI
Endtext
TakeTechnology
whom=Allies
Technology=93
GiveTechnology		
technology=95
receiver=Allies
@ENDIF

;USSR
@IF
Turn
turn=-1
@THEN
justonce
CreateUnit
owner=USSR
unit=Recon Unit
count=3
veteran=no
homecity=Moskva
randomize
locations
242,106
172,60
153,95
174,76
188,78
200,62
endlocations
@ENDIF

@IF
Negotiation
talker=USSR
talkertype=Computer
listener=anybody
listenertype=HumanOrComputer
@THEN
justonce
Text
USSR AI
Endtext
TakeTechnology
whom=USSR
Technology=93
GiveTechnology		
technology=95
receiver=USSR
@ENDIF






;Blitzkrieg
;Poland 
@IF
TURN
turn=6
@THEN
CreateUnit
owner=Axis
unit=Pz Kw II
count=10
veteran=yes
homecity=Leipzig
randomize
locations
207,59
210,60
212,76
endlocations
Text
^April 1st, 1939-"Operation Fall Wei" 
^WW2 has begun
^Germany attacks Poland. The world sees a new kind of warefare, named Blitzkrieg.
^A few weeks later soviet troops advance trough the western parts of Poland and the baltic states.
French and british Gouvernment decclare their Solidarity with Poland.
EndText
MakeAggression
who=France
whom=Axis
@ENDIF

@IF
CITYTAKEN
city=Danzig
attacker=Axis
defender=Anybody
@THEN
CreateUnit
owner=Axis
unit=Ju 87
count=4
veteran=yes
homecity=Leipzig
randomize
locations
211,69
endlocations
Text
Danzig ju87
EndText
@ENDIF

@IF
CITYTAKEN
city=Danzig
attacker=Axis
defender=Anybody
@THEN
CreateUnit
owner=Axis
unit=Artillery 85
count=4
veteran=yes
homecity=Leipzig
randomize
locations
212,60
206,62
205,69
208,74
212,60
endlocations
MoveUnit
unit=anyunit
owner=Axis
maprect
183,55,213,55,213,84,183,84
moveto
214,68
numbertomove=All
Text
Danzig Ari
EndText

@ENDIF

@IF
CITYTAKEN
city=Warsaw
attacker=Axis
defender=Anybody
@THEN
CreateUnit
owner=USSR
unit=BT-7
count=16
veteran=yes
homecity=Minsk
randomize
locations
223,43
223,43
226,56
222,60
221,67
221,73
228,76
233,81
endlocations
Text
Warsaw BT 7
EndText

@ENDIF

;Finland USSR
@IF  
UNITKILLED
unit=Minefield
attacker=USSR
defender=Neutral
@THEN
justonce
CreateUnit
owner=Axis
unit=Wehrmacht 40/41
count=20
veteran=yes
homecity=none
locations
215,39
endlocations
Text
^Because of an soviet attack on Finland, Finland join Axis.
EndText
@ENDIF

;Norway Denmark
@IF
TURN
turn=13
@THEN
Text
^April 9th, 1940-"Operation Weserbung"
^Germany launches the invasion of Norway and Denmark in response to
^Allied activity in Scandinavia. German troops catch the Norwegian
^army completly off guard and Denmark has little to resist with.
Take Oslo and then Kobenhavn within 1 turn. Then proceed to Narvik 
and the other danish and norvegian Cities.
EndText
CreateUnit
owner=Axis
unit=Fallschirmjger
count=4
veteran=no
homecity=Wien
randomize
locations
194,40
188,36
189,43
endlocations
@ENDIF

@IF
CITYTAKEN
city=Oslo
attacker=Axis
defender=Anybody
@THEN
justonce
CreateUnit
owner=Axis
unit=Ju 87
count=4
veteran=yes
homecity=Wien
randomize
locations
196,54
194,32
203,23
endlocations
Text
Oslo ju87
EndText

@ENDIF


@IF
CITYTAKEN
city=Oslo
attacker=ANYBODY
defender=neutral
@THEN
justonce
CreateUnit
owner=Axis
unit=Wehrmacht 40/41
count=15
veteran=no
homecity=Wien
randomize
locations
220,8
205,69
196,54
194,40
189,43
190,36
197,29
206,16
206,16
214,8
endlocations
Text
Oslo Wehrmacht
EndText

@ENDIF

@IF
CITYTAKEN
city=Oslo
attacker=Axis
defender=Anybody
@and
RandomTurn
denominator=3
@THEN
Justonce
CreateUnit
owner=Allies
unit=British Inf. 39
count=5
veteran=yes
homecity=London
randomize
locations
207,13
208,14
209,15
endlocations
Text
Allied Landings near Narvik
EndText
@ENDIF



;Benelux,France
@IF
TURN
turn=14
@THEN
CreateUnit
owner=Axis
unit=Artillery 105
count=10
veteran=no
homecity=Berlin
randomize
locations
186,62
181,67
181,67
181,67
183,67
183,67
183,67
183,67
185,67
185,67
endlocations
MakeAggression
who=Axis
whom=Neutrals
Text
^May 10th, 1940- Operation "Fall Gelb"
^Germany launches the invasion of the low
^countries and France. General Rundstedt leads army group A through the
^Ardennes for a central thrust. General Bock leads army group B into
^Beglium and the Netherlands. General Leeb leads army group C into
^skimrishes along the Maginot Line. 
^Your Task: Proceed to the Atlantic coast.
EndText
@ENDIF

@IF
TURN
turn=14
@THEN
justonce
CreateUnit
owner=Axis
unit=Ju 87
count=5
veteran=yes
homecity=Berlin
randomize
locations
181,67
181,67
181,67
181,67
183,67
183,67
183,67
183,67
185,67
185,67
endlocations
Text
Attack Bruxelles
EndText

@ENDIF

@IF
CITYTAKEN
city=Bruxelles
attacker=Axis
defender=Neutrals
@THEN
justonce
CreateUnit
owner=Axis
unit=Pz Kw IV
count=30
veteran=no
homecity=Berlin
locations
180,66
endlocations
Text
Bruxelles PZ KWIV
EndText
@ENDIF


@IF
CITYTAKEN
city=Bruxelles
attacker=Axis
defender=Neutrals
@THEN
Justonce
CreateUnit
owner=Axis
unit=Wehrmacht 40/41
count=20
veteran=no
homecity=Berlin
locations
180,66
endlocations
MoveUnit
unit=anyunit
owner=Axis
maprect
183,55,213,55,213,84,183,84
moveto
182,62
numbertomove=All
Text
Bruxelles Wehrmacht
EndText

@ENDIF

@IF  
RECEIVEDTECHNOLOGY
receiver=Axis
technology=27
@AND
CITYTAKEN
city=Bruxelles
attacker=Axis
defender=Neutrals
@THEN
CreateUnit
owner=Axis
unit=Wehrmacht 40/41
count=5
veteran=no
homecity=Dresden
locations
180,66
endlocations
Bruxelles AI Wehrmacht
@ENDIF


@IF
CITYTAKEN
city=Bruxelles
attacker=Axis
defender=anybody
@THEN
justonce
CreateUnit
owner=Axis
unit=Ju 87
count=10
veteran=no
homecity=Bruxelles
locations
180,66
endlocations
MakeAggression
who=Allies
whom=Axis
Text
Ju 87 Reinforcements reach Bruxelles.
Endtext
MoveUnit
unit=anyunit
owner=Axis
maprect
180,62,182,62,182,66,180,66
;Amsterdam/Bruxelles
moveto
166,78
numbertomove=All
@ENDIF


;initiate Peace Axis-Neutrals
@IF
CITYTAKEN
city=Paris
attacker=Axis
defender=France
@THEN
justonce
GiveTechnology
Technology=5
receiver=France
ModifyReputation
who=Axis
whom=Neutrals
modifier=100
BestowImprovement
improvement=43
;U-Boot Base (Lighthouse)
randomize
race=Axis
capital=no
wonders=no
Text
Ubootbase
EndText

@ENDIF

@IF  
RECEIVEDTECHNOLOGY
receiver=France
technology=5
@AND
randomturn
denominator=3
@THEN
Text
^Only few weeks since the operation's start. 
French forces are in a full retreat and a new
French cabinet is formed under Marshal Ptain. An armistice is signed
in which Germany gains occupational rights to two thirds of France.
Don't attack french minefields directly.
EndText
CreateUnit
owner=France
unit=Minefield
count=20
veteran=yes
homecity=Casablanca
randomize
locations
172,82
178,92
175,91
178,84
171,93
169,87
166,88
181,79
162,88
169,81
endlocations
ModifyReputation
who=Axis
whom=France
modifier=100
BestowImprovement
improvement=46
;Atlantic Wall (Great Wall)
randomize
race=Axis
capital=no
wonders=no
justonce
@ENDIF

@IF  
RECEIVEDTECHNOLOGY
;Axis human only
receiver=Axis
technology=93
@AND
unitkilled
unit=Minefield
attacker=Axis
defender=France
@THEN
Text
^French gouvernment under Petain forms a independend area in southern France.
EndText
CreateUnit
owner=France
unit=Fort
count=10
veteran=no
homecity=Algier
randomize
locations
172,82
178,92
175,91
178,84
171,93
169,87
166,88
181,79
162,88
169,81
endlocations
ModifyReputation
who=France
whom=Axis
modifier=100
justonce
@ENDIF

;Balkan
@IF
TURN
turn=26
@THEN
CreateUnit
owner=Axis
unit=Pz Kw IV
count=10
veteran=no
homecity=Wien
randomize
locations
218,102
218,102
208,86
199,87
endlocations
MakeAggression
who=Axis
whom=Neutrals
Text
^April 9th, 1941-
^German troops launches an attack on Jugoslavia and Greece to secure southern flank.
EndText
@ENDIF

@IF  
CITYTAKEN
city=Athenai
attacker=Axis
defender=Anybody
@THEN
justonce
CreateUnit
owner=Axis
unit=Fallschirmjger
count=4
veteran=no
homecity=Wien
randomize
locations
223,121
227,121
endlocations
Text
Athenai Fallschirm
EndText
@ENDIF


@IF
CITYTAKEN
city=Saloniki
attacker=Axis
defender=Anybody
@THEN
CreateUnit
owner=Axis
unit=Ju 87
count=5
veteran=yes
homecity=Wien
randomize
locations
218,102
215,95
208,86
199,87
endlocations
Text
Saloniki Ju87
EndText

@ENDIF

@IF
TURN
turn=26
@THEN
CreateUnit
owner=Axis
unit=Wehrmacht 40/41
count=12
veteran=no
homecity=Wien
randomize
locations
218,102
208,86
199,87
215,95
endlocations
Text
Attack jugoslavia
EndText
@ENDIF

@IF
TURN
turn=26
@THEN
delay=3
randomize
CreateUnit
owner=Allies
unit=British Inf. 39
count=5
veteran=yes
homecity=London
randomize
locations
217,107
216,110
217,105
endlocations
Text
British Landings near Thessaloniki
EndText
@ENDIF

;Barbarossa

;Rommel

; Iraq Axis<>Allies/French

;Northafrika Nov 42 Arrival of US-Troops
;around turn 44 move to tunis

@IF
TURN
turn=41
@THEN
delay=5
randomize
CreateUnit
owner=Allies
unit=M3 Lee
count=20
veteran=yes
homecity=New York
randomize
locations
128,120
133,117
135,115
133,117
152,114
166,112
166,112
167,113
153,115
127,121
endlocations
Text
US-Troops land in North Africa.
EndText
ModifyReputation
who=France
betray=8
makeAggression
who=Allies
whom=France
@ENDIF

@IF  
CITYTAKEN
city=Anycity
attacker=Allies
defender=France
@THEN
CreateUnit
owner=Allies
unit=B 17
count=3
veteran=no
homecity=Washington
locations
199,109
194,112
178,114
168,112
154,114
134,116
endlocations
MoveUnit
unit=Anyunit
owner=Allies
maprect 
127,109,169,109,169,143,127,143
moveto
187,115
numbertomove=20
Text
Create B17
EndText

@ENDIF

@IF  
CITYTAKEN
city=Tunis
attacker=Allies
defender=Anybody
@AND
RECEIVEDTECHNOLOGY
receiver=Allies
technology=27
@THEN
CreateUnit
owner=Allies
unit=Landing Craft
count=1
veteran=no
homecity=Casablanca
locations
187,115
endlocations
numbertomove=20
Text
Tunis US Landing craft
EndText

@ENDIF



;AIEnhancement
;Reinforcments if Axis AI time 39-42 
@IF  
RECEIVEDTECHNOLOGY
receiver=Axis
technology=95
@THEN
GiveTechnology		
technology=5
receiver=Axis
Text
Enable Axis Reinforcements
EndText
@ENDIF

@IF  
RECEIVEDTECHNOLOGY
receiver=Axis
technology=5
@AND
CITYTAKEN
city=Danzig
attacker=Axis
defender=Anybody
@THEN
justonce
CreateUnit
owner=Axis
unit=Recon Unit
;for quick capturing polish cities
count=4
veteran=yes
homecity=Leipzig
randomize
locations
214,70
212,74
208,74
206,68
210,66
endlocations
@ENDIF

;enable advanced axis reinforcements 
@IF
CITYTAKEN
city=Oslo
attacker=ANYBODY
defender=neutral
Continuous
@and
RECEIVEDTECHNOLOGY
receiver=Axis
technology=95
@THEN
justonce
GiveTechnology
Technology=27
receiver=Axis
TakeTechnology
whom=axis
Technology=5
CreateUnit
owner=Axis
unit=FW 190
count=10
veteran=no
homecity=Berlin
randomize
locations
181,67
181,67
181,67
181,67
183,67
183,67
183,67
183,67
185,67
185,67
endlocations
Text
enable advanced Reinforcements
EndText

@ENDIF


@IF  
RECEIVEDTECHNOLOGY
receiver=Axis
technology=95
@AND
CITYTAKEN
city=Oslo
attacker=Axis
defender=Anybody
Continouos
@THEN
justonce
CreateUnit
owner=Axis
unit=Recon Unit
count=8
veteran=no
homecity=Wien
;for quick capturing of northern european cities
randomize
locations
193,51
196,56
189,43
190,36
198,30
206,16
214,8
220,8
endlocations
@ENDIF

@IF  
RECEIVEDTECHNOLOGY
receiver=Axis
technology=95
@AND
TURN
turn=26
@THEN
justonce
CreateUnit
owner=Axis
unit=Recon Unit
count=1
veteran=no
homecity=Wien
randomize
;for quick capturing of Saloniki
locations
218,102
endlocations
@ENDIF

@IF  
RECEIVEDTECHNOLOGY
receiver=Axis
technology=95
@AND
CITYTAKEN
city=Saloniki
attacker=Axis
defender=Anybody
@THEN
justonce
CreateUnit
owner=Axis
unit=Recon Unit
count=4
veteran=no
homecity=Wien
randomize
;quick capturing of greek cities
locations
213,109
219,111
216,114
218,116
endlocations
@ENDIF


;Axis reinforcements
@IF  
RECEIVEDTECHNOLOGY
receiver=Axis
technology=5
@AND
UNITKILLED
unit=ANYUNIT
attacker=Anybody
defender=Axis
@THEN
CreateUnit
owner=Axis
unit=Pz Kw II
veteran=yes
count=5
homecity=Frankfurt
InCapital			
locations
199,93
endlocations
Text
Axis get some reinforcments
EndText
@ENDIF

;advanced Axis reinforcments
@IF  
RECEIVEDTECHNOLOGY
receiver=Axis
technology=27
@AND
UNITKILLED
unit=ANYUNIT
attacker=France
defender=Axis
@THEN
CreateUnit
owner=Axis
unit=Pz Kw IV
Count=3
veteran=yes
homecity=Frankfurt
locations
164,84
165,79
163,75
168,76
171,77
180,72
174,74
178,68
180,66
183,67
endlocations
Text
Axis troops in France get some reinforcements
EndText
@ENDIF

@IF  
RECEIVEDTECHNOLOGY
receiver=Axis
technology=27
@AND
UNITKILLED
unit=ANYUNIT
attacker=USSR
defender=Axis
@THEN
CreateUnit
owner=Axis
unit=Pz Kw IV
Count=3
veteran=yes
homecity=Budapest
randomize
locations
218,44
225,47
231,51
227,59
235,83
217,51
237,77
233,71
218,68
217,61
endlocations
Text
Axis troops invading USSR get some reinforcements
EndText
@ENDIF

@IF  
RECEIVEDTECHNOLOGY
receiver=Axis
technology=27
@AND
UNITKILLED
unit=ANYUNIT
attacker=Allies
defender=Axis
@THEN
CreateUnit
owner=Axis
unit=Pz Kw IV
Count=2
veteran=yes
homecity=Mnchen
locations
164,84
165,79
163,75
168,76
171,77
180,72
174,74
178,68
180,66
183,67
endlocations
Text
Axis troops in France get some reinforcments (Allies)
EndText
@ENDIF

;disable axis Reinforcements
@IF  
RECEIVEDTECHNOLOGY
receiver=USSR
technology=95
Continuous
@AND
UNITKILLED
unit=T-34/85
attacker=Axis
defender=USSR
@THEN
justonce
TakeTechnology
whom=Axis
Technology=27
Text
Axis loose ability to make up for losses.
EndText
@ENDIF

@IF  
RECEIVEDTECHNOLOGY
receiver=Allies
technology=95
Continuous
@AND
UNITKILLED
unit=M4 Sherman
attacker=Axis
defender=Allies
@THEN
justonce
TakeTechnology
whom=Axis
Technology=27
Text
Axis loose ability to make up for losses.
EndText
@ENDIF


;enable USSR Reinforcements if USSR AI and Axis Human
@IF  
RECEIVEDTECHNOLOGY
receiver=USSR
technology=95
@AND
RECEIVEDTECHNOLOGY
receiver=Axis
technology=93
@THEN
justonce
GiveTechnology		
technology=5
receiver=USSR
@ENDIF

;USSR reinforcements
@IF  
RECEIVEDTECHNOLOGY
receiver=USSR
technology=5
@AND
UNITKILLED
unit=ANYUNIT
attacker=Axis
defender=USSR
@THEN
CreateUnit
owner=USSR
unit=BT-7
Count=3
veteran=no
homecity=Kazan
locations
262,42
268,52
262,56
266,68
267,81
endlocations
@ENDIF
;automatet update if leos workshop is installed

;enable Allies Reinforcements if Allies AI and Axis Human
@IF  
RECEIVEDTECHNOLOGY
receiver=Allies
technology=95
@AND
RECEIVEDTECHNOLOGY
receiver=Axis
technology=93
@THEN
justonce
GiveTechnology		
technology=5
receiver=Allies
@ENDIF

;allies reinforcements
@IF  
RECEIVEDTECHNOLOGY
receiver=Allies
technology=5
@AND
UNITKILLED
unit=ANYUNIT
attacker=Axis
defender=Allies
@THEN
CreateUnit
owner=Allies
unit=M3 Lee
Count=2
veteran=no
homecity=Boston
locations
6,92
3,97
3,105
2,108
1,117
2,126
endlocations
@ENDIF

;enable advanced Allies reinforcements
@IF  
RECEIVEDTECHNOLOGY
receiver=Allies
technology=5
@AND
CITYTAKEN
city=London
attacker=Axis
defender=Anybody
@THEN
justonce
GiveTechnology
Technology=27
receiver=Allies
TakeTechnology
whom=Allies
Technology=5
CreateUnit
owner=Allies
unit=P-51
count=30
veteran=no
homecity=Scranton
randomize
locations
6,92
3,97
3,105
2,108
1,117
2,126
Endlocations
@ENDIF

;or
@IF  
RECEIVEDTECHNOLOGY
receiver=Allies
technology=5
continuous
@AND
turn
turn=32
@THEN
justonce
GiveTechnology
Technology=27
receiver=Allies
TakeTechnology
whom=Allies
Technology=5
CreateUnit
owner=Allies
unit=P-51
count=30
veteran=no
homecity=Scranton
randomize
locations
6,92
3,97
3,105
2,108
1,117
2,126
Endlocations
@ENDIF


;advanced Allies reinforcements
@IF  
RECEIVEDTECHNOLOGY
receiver=Allies
technology=27
@AND
UNITKILLED
unit=ANYUNIT
attacker=Axis
defender=Allies
@THEN
CreateUnit
owner=Allies
unit=M4 Sherman
Count=3
veteran=no
homecity=Boston
locations
199,109
194,112
178,114
168,112
154,114
134,116
2,110
endlocations
@ENDIF


@IF  
RECEIVEDTECHNOLOGY
receiver=Allies
technology=95
@AND
TURN
turn=26
@THEN
CreateUnit
owner=Allies
unit=Recon Unit
count=1
veteran=yes
homecity=London
randomize
locations
217,107
216,110
217,105
;take Saloniki with spy if not captured by Axis
endlocations
EndText
@ENDIF




;enable advanced military research
;through axis attack
;War Entry
@IF  
CITYTAKEN
city=Anycity
attacker=Axis
defender=France
@THEN
JUSTONCE
GiveTechnology		
technology=14
receiver=France
@ENDIF

@IF  
UNITKILLED
unit=ANYUNIT
attacker=Axis
defender=USSR
defender only
@THEN
JUSTONCE
GiveTechnology		
technology=14
receiver=USSR
@ENDIF

@IF  
UNITKILLED
unit=ANYUNIT
attacker=Axis
defender=Turkey
defender only
@THEN
JUSTONCE
GiveTechnology		
technology=14
receiver=Turkey
@ENDIF

@IF  
UNITKILLED
unit=ANYUNIT
attacker=Axis
defender=Spain
@THEN
JUSTONCE
GiveTechnology		
technology=14
receiver=Spain
@ENDIF

IF
CityTaken
city=Anycity
attacker=Axis
defender=Allies
@THEN
Text
^Because of attacking british owned cities the United States declare War on Germany.
endtext
JUSTONCE
GiveTechnology		
technology=14
receiver=Allies
CHANGEMONEY
receiver=Allies
amount=15000
;increase science
CreateUnit
;United States became Ally
owner=Allies
unit=M3 Lee
count=20
veteran=yes
homecity=none
randomize
locations
6,92
3,97
3,105
2,108
1,117
2,126
endlocations
@ENDIF

;or
;allow further military research if not attacked by axis within 1939-1941
;war entry
@IF
RECEIVEDTECHNOLOGY
receiver=Neutrals
FutureTech=3
@THEN
JUSTONCE
GiveTechnology		
technology=14
receiver=Neutrals
@ENDIF

@IF
RECEIVEDTECHNOLOGY
receiver=Spain
FutureTech=1
@THEN
JUSTONCE
GiveTechnology		
technology=14
receiver=Spain
@ENDIF

@IF
RECEIVEDTECHNOLOGY
receiver=Turkey
FutureTech=1
@THEN
JUSTONCE
GiveTechnology		
technology=14
receiver=Turkey
@ENDIF

@IF
RECEIVEDTECHNOLOGY
receiver=France
FutureTech=3
@THEN
JUSTONCE
GiveTechnology		
technology=14
receiver=France
@ENDIF

@IF
RECEIVEDTECHNOLOGY
receiver=Allies
FutureTech=3
@THEN
JUSTONCE
GiveTechnology		
technology=14
receiver=Allies
@ENDIF

@IF
RECEIVEDTECHNOLOGY
receiver=USSR
FutureTech=3
@THEN
JUSTONCE
GiveTechnology		
technology=14
receiver=USSR
@ENDIF



;diplomatic activities
@IF
CITYTAKEN
city=Anycity
attacker=Allies
defender=neutral
@and
RECEIVEDTECHNOLOGY
receiver=Axis
technology=95
@THEN
Text
^Capturing a neutral City causes axis diplomatic activities around all neutral countries.
endtext
delay=1
CreateUnit
owner=Axis
unit=Recon Unit
count=1
veteran=yes
homecity=none
randomize
locations
192,36
211,11
150,98
150,98
204,44
217,39
158,54
245,109
268,104
216,106
endlocations
@ENDIF






;Naval Warefare

@IF
CITYTAKEN
city=Paris
attacker=Axis
defender=France
@THEN
CreateUnit
owner=Axis
unit=Torpedo
count=5
veteran=yes
homecity=Dsseldorf
randomize
locations
160,70
163,75
165,79
164,84
Endlocations
@ENDIF


@IF
CITYTAKEN
city=Paris
attacker=Axis
defender=France
@THEN
CreateUnit
owner=Allies
unit=Depth Charge
count=5
veteran=yes
homecity=Montreal
randomize
locations
2,128
0,120
1,115
2,110
4,104
5,97
Endlocations
@ENDIF



@IF
UnitKilled
unit=Freighter
attacker=Axis
defender=neutral
@THEN
CreateUnit
owner=neutral
unit=Freighter
veteran=no
homecity=none
randomize
locations
22,128
20,120
51,115
32,110
44,104
15,97
16,123
43,123
endlocations
Text
^Freighter sunk.
endtext
@ENDIF

@IF
UnitKilled
unit=Freighter
attacker=Axis
defender=neutral
@AND
RECEIVEDTECHNOLOGY
receiver=Axis
technology=93
Continuous
@THEN
ChangeMoney			
receiver=Allies
amount=-500
Text
^Freighter sunk.
endtext

@IF
UnitKilled
unit=Freighter
attacker=Allies
defender=neutral
@THEN
CreateUnit
owner=neutral
unit=Freighter
veteran=yes
homecity=none
randomize
locations
22,128
20,120
51,115
32,110
44,104
15,97
16,123
43,123
endlocations
Text
^Convoy deployed.
endtext
@ENDIF


@ENDEVENTS
