#
# HoI - United Kingdom Events
#
#		written by Henrik Fåhraeus
#

#########################################################################
#  Spanish Civil War - Intervention
#########################################################################
event = { 
	id = 3400
	random = no
	country = ENG
	
	trigger = {
		war = { country = SPA country = SPR }
		event = 3100 #SPA fascist nation
		NOT = {
			OR = {
			government = fascist
			alliance = { country = ENG country = SPR }
			war = { country = ENG country = SPR }
			war = { country = ENG country = SOV }
			war = { country = ENG country = GER }
			war = { country = ENG country = USA }
			war = { country = ENG country = FRA }
			}
		}
	        }
	
	name = "EVT_3400_NAME"
	desc = "EVT_3400_DESC"
	style = 0
	picture = "SCW"
	
	date = { day = 19 month = july year = 1936 }
	offset = 5
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ACTIONNAME3400A" # Why support anarchist rabble?
		ai_chance = 90
		command = { type = dissent value = 1 }
		command = { type = relation which = SPR value = -15 }
		command = { type = relation which = SPA value = 10 }
		command = { type = relation which = SOV value = -5 }
		command = { type = relation which = FRA value = 5 }
		command = { type = relation which = GER value = 5 }
		command = { type = relation which = ITA value = 10 }
		command = { type = relation which = POR value = 10 }
		command = { type = domestic which = interventionism value = -1 }
	}
	action_b = {
		name = "ACTIONNAME3400B" # Send materiel and volunteers
		ai_chance = 10
		command = { type = money value = -600 }
		command = { type = manpowerpool value = -20 }
		command = { type = resource which = supplies value = -1000 } # % of max daily income
		command = { type = dissent value = 2 }
		command = { type = relation which = SPR value = 15 }
		command = { type = relation which = SPA value = -10 }
		command = { type = relation which = SOV value = 5 }
		command = { type = relation which = FRA value = -5 }
		command = { type = relation which = GER value = -5 }
		command = { type = relation which = ITA value = -10 }
		command = { type = relation which = POR value = -10 }
		command = { type = domestic which = interventionism value = 1 }
		command = { type = domestic which = political_left value = 1 }
		command = { type = trigger which = 3103 } #SPR
		command = { type = trigger which = 3722 } #USA
		command	= { type = setflag which = SCW_allied_intervention }
	}
}

#########################################################################
#  Guarantee Independence to Poland
#########################################################################
event = {
	id = 3401
	random = no
	country = ENG

	trigger = {
		exists = POL
	        exists = GER
		OR = { 
		       event = 2006 #  The End of Czechoslovakia - Czechs annexed
		       event = 2007 #  The End of Czechoslovakia - Czechs wish a fight!
		       event = 2011 #  The End of Czechoslovakia - Czecho-Slovakia partitioned
		       event = 2012 #  The End of Czechoslovakia - Czechs fight!
		}
		NOT = {
			OR = {
				ispuppet = ENG
				alliance = { country = POL country = SOV }
				alliance = { country = POL country = GER }
                                alliance = { country = POL country = ENG }
			}
		}
		NOT = {
			atwar = POL
		}
	}


	name = "EVT_3401_NAME"
	desc = "EVT_3401_DESC"
	style = 0
	picture = "guarantee_POL"

	date = { day = 30 month = march year = 1939 }

	action_a = {
		ai_chance = 99
		name = "ACTIONNAME3401A" # Poland must be protected
		command = { type = relation which = POL value = 25 }
		command = { type = relation which = FRA value = 10 }
		command = { type = relation which = GER value = -15 }
		command = { type = domestic which = interventionism value = 1 }
		command = { type = money value = -200 }
		command = { type = trigger which = 3600 } # POL
	}
	action_b = {
		ai_chance = 1
		name = "ACTIONNAME3401B" # The world must be spared another Great War
		command = { type = dissent value = 15 }
		command = { type = relation which = POL value = -25 }
		command = { type = relation which = FRA value = -10 }
		command = { type = relation which = GER value = 15 }
		command = { type = domestic which = interventionism value = -2 }
		command = { type = trigger which = 3603 } # POL
	}
}
#########################################################################
#  Guarantee Independence to Poland - Poland Accepts
#########################################################################
event = {
	id = 3402
	random = no
	country = ENG

	# Triggered by POL 3600

	name = "EVT_3402_NAME"
	desc = "EVT_3402_DESC"
        picture = "chameberlain"
	style = 0

	action_a = {
		name = "OK" # Great!
		command = { type = alliance which = POL }
	}
}
#########################################################################
#  Guarantee Independence to Poland - Poland Declines
#########################################################################
event = {
	id = 3403
	random = no
	country = ENG

	# Triggered by POL 3600

	name = "EVT_3403_NAME"
	desc = "EVT_3403_DESC"
       picture = "poland"
	style = 0

	action_a = {
		name = "OK" # Their loss
		command = { }
	}
}
#########################################################################
#  The Lend-Lease Act - The First Shipment
#########################################################################
event = {
	id = 3404
	random = no
	country = ENG

	# Triggered by USA 3700

	name = "EVT_3404_NAME"
	desc = "EVT_3404_DESC"
	style = 0
	picture = "lend_lease"

	action_a = {
		name = "OK" # Excellent!
		command = { type = supplies value = 5000 }
		command = { type = oilpool value = 2500 }
		command = { type = metalpool value = 2500 }

		command = { type = money value = 10000 }
	}
}
#########################################################################
#  A Lend-Lease Shipment Arrives from the USA
#########################################################################
event = {
	id = 3405
	random = no
	country = ENG
	persistent = yes

	# Triggered by USA 3702. NOTE: May be triggered several times.

	name = "EVT_3405_NAME"
	desc = "EVT_3405_DESC"
	style = 0
	picture = "lend_lease"

	action_a = {
		name = "OK" # Excellent!
		command = { type = supplies value = 3000 }
		command = { type = oilpool value = 1000 }
		command = { type = metalpool value = 1000 }
		command = { type = construct which = ic where = 9 value = 1 } #
		command = { type = construct which = ic where = 10 value = 1 } #
		command = { type = money value = 5000 }
	}
}
#########################################################################
#  The Independence of India
#########################################################################
event = {
	id = 3406
	random = no
	country = ENG

	trigger = {
		government = democratic
		random = 8 # 8% chance every month
		control = { province = 1469 data = ENG } # Delhi
		control = { province = 1475 data = ENG } # Mushafarrabad
		NOT = {
			exists = IND
			exists = PAK
			exists = GER
		}
	}

	name = "EVT_3406_NAME"
	desc = "EVT_3406_DESC"
        picture = "india"
	style = 0

	date = { day = 1 month = november year = 1945 }
	offset = 30
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ACTIONNAME3406A" # They cannot be held back any longer
		
		
		# Burma - done in advance
		command = { type = removecore which = 1289 }
		command = { type = removecore which = 1290 }
		command = { type = removecore which = 1296 }
		command = { type = removecore which = 1297 }
		command = { type = removecore which = 1298 }
		command = { type = removecore which = 1299 }
		command = { type = removecore which = 1300 }
		command = { type = removecore which = 1301 }
		command = { type = removecore which = 1302 }
		command = { type = removecore which = 1346 }
		command = { type = removecore which = 1304 }
		command = { type = removecore which = 1292 }
		command = { type = removecore which = 1295 }
		command = { type = removecore which = 1291 }
		command = { type = removecore which = 1877 }
		command = { type = removecore which = 1898 }
		command = { type = removecore which = 1294 }

		# India
		command = { type = removecore which = 1465 }
		command = { type = removecore which = 1466 }
		command = { type = removecore which = 1479 }
		command = { type = removecore which = 1476 }
		command = { type = removecore which = 1478 }
		command = { type = removecore which = 1477 }
		command = { type = removecore which = 1469 }
		command = { type = removecore which = 1470 }
		command = { type = removecore which = 1471 }
		command = { type = removecore which = 1472 }
		command = { type = removecore which = 1456 }
		command = { type = removecore which = 1468 }
		command = { type = removecore which = 1467 }
		command = { type = removecore which = 1464 }
		command = { type = removecore which = 1463 }
		command = { type = removecore which = 1460 }
		command = { type = removecore which = 1459 }
		command = { type = removecore which = 1457 }
		command = { type = removecore which = 1458 }
		command = { type = removecore which = 1461 }
		command = { type = removecore which = 1508 }
		command = { type = removecore which = 1462 }
		command = { type = removecore which = 1505 }
		command = { type = removecore which = 1506 }
		command = { type = removecore which = 1507 }
		command = { type = removecore which = 1509 }
		command = { type = removecore which = 1510 }
		command = { type = removecore which = 1511 }
		command = { type = removecore which = 1512 }
		command = { type = removecore which = 1513 }
		command = { type = removecore which = 1514 }
		command = { type = removecore which = 1515 }
		command = { type = removecore which = 1284 }
		command = { type = removecore which = 1287 }
		command = { type = removecore which = 1454 }
		command = { type = removecore which = 1878 }
		command = { type = removecore which = 1474 }
		command = { type = removecore which = 1516 }
		command = { type = removecore which = 1517 }
		command = { type = removecore which = 1518 }
		command = { type = removecore which = 1519 }
		command = { type = removecore which = 1285 }
		command = { type = removecore which = 1286 }
		command = { type = removecore which = 1288 }

		# Pakistan
		command = { type = removecore which = 1494 }
		command = { type = removecore which = 1481 }
		command = { type = removecore which = 1480 }
		command = { type = removecore which = 1482 }
		command = { type = removecore which = 1483 }
		command = { type = removecore which = 1475 }
		command = { type = removecore which = 1474 }
		command = { type = removecore which = 1285 }
		command = { type = removecore which = 1286 }
		command = { type = removecore which = 1288 }
		


		command = { type = independence which = PAK value = 1 }
		command = { type = trigger which = 900130 }
		command = { type = trigger which = 134 }

		command = { type = independence which = IND value = 1 }
		command = { type = trigger which = 900127 }

		

	}
	action_b = {
		name = "ACTIONNAME3406B" # This must not be allowed, it would signal the death of Empire

		command = { type = dissent value = 20 }

		# Burma - done in advance
		command = { type = removecore which = 1289 }
		command = { type = removecore which = 1290 }
		command = { type = removecore which = 1296 }
		command = { type = removecore which = 1297 }
		command = { type = removecore which = 1298 }
		command = { type = removecore which = 1299 }
		command = { type = removecore which = 1300 }
		command = { type = removecore which = 1301 }
		command = { type = removecore which = 1302 }
		command = { type = removecore which = 1346 }
		command = { type = removecore which = 1304 }
		command = { type = removecore which = 1292 }
		command = { type = removecore which = 1295 }
		command = { type = removecore which = 1291 }
		command = { type = removecore which = 1877 }
		command = { type = removecore which = 1898 }
		command = { type = removecore which = 1294 }

		# India
		command = { type = removecore which = 1465 }
		command = { type = removecore which = 1466 }
		command = { type = removecore which = 1479 }
		command = { type = removecore which = 1476 }
		command = { type = removecore which = 1478 }
		command = { type = removecore which = 1477 }
		command = { type = removecore which = 1469 }
		command = { type = removecore which = 1470 }
		command = { type = removecore which = 1471 }
		command = { type = removecore which = 1472 }
		command = { type = removecore which = 1456 }
		command = { type = removecore which = 1468 }
		command = { type = removecore which = 1467 }
		command = { type = removecore which = 1464 }
		command = { type = removecore which = 1463 }
		command = { type = removecore which = 1460 }
		command = { type = removecore which = 1459 }
		command = { type = removecore which = 1457 }
		command = { type = removecore which = 1458 }
		command = { type = removecore which = 1461 }
		command = { type = removecore which = 1508 }
		command = { type = removecore which = 1462 }
		command = { type = removecore which = 1505 }
		command = { type = removecore which = 1506 }
		command = { type = removecore which = 1507 }
		command = { type = removecore which = 1509 }
		command = { type = removecore which = 1510 }
		command = { type = removecore which = 1511 }
		command = { type = removecore which = 1512 }
		command = { type = removecore which = 1513 }
		command = { type = removecore which = 1514 }
		command = { type = removecore which = 1515 }
		command = { type = removecore which = 1284 }
		command = { type = removecore which = 1287 }
		command = { type = removecore which = 1454 }
		command = { type = removecore which = 1878 }
		command = { type = removecore which = 1474 }
		command = { type = removecore which = 1516 }
		command = { type = removecore which = 1517 }
		command = { type = removecore which = 1518 }
		command = { type = removecore which = 1519 }
		command = { type = removecore which = 1285 }
		command = { type = removecore which = 1286 }
		command = { type = removecore which = 1288 }

		# Pakistan
		command = { type = removecore which = 1494 }
		command = { type = removecore which = 1481 }
		command = { type = removecore which = 1480 }
		command = { type = removecore which = 1482 }
		command = { type = removecore which = 1483 }
		command = { type = removecore which = 1475 }
		command = { type = removecore which = 1474 }
		command = { type = removecore which = 1285 }
		command = { type = removecore which = 1286 }
		command = { type = removecore which = 1288 }
	}
}

#########################################################################
#  US Occupation of Iceland and Greenland
#########################################################################
event = { 
	id = 3900
	random = no
	country = ENG
	
	# Triggered by USA 3705
	
	name = "EVT_3900_NAME"
	desc = "EVT_3900_DESC"
       picture = "american_soldiers_winter"
	style = 0
	
	action_a = {
		name = "OK" # Give them to the USA.
		command = { type = secedeprovince which = USA value = 800 } # Gothab
		command = { type = secedeprovince which = USA value = 1 } # Reykjavik
		command = { type = secedeprovince which = USA value = 2 } # Akureyri
		command = { type = relation which = GER value = -15 }
		command = { type = relation which = USA value = 10 }
	}
}

##################################################  #######################
#  Spanish Civil War ends - An important experience (UK)
##################################################  #######################
event = {
	id = 3901
	random = no
	country = ENG

	trigger = {
		# pre-requisites for event to trigger: 
		government = democratic
		flag = SCW_allied_intervention
		NOT = { exists = SPA }

		# conditions that prevent event:
		NOT = {
			OR = {
			war = { country = ENG country = SPA }
			war = { country = ENG country = SPR }
			war = { country = ENG country = SOV }
			war = { country = ENG country = GER }
			war = { country = ENG country = FRA }
			war = { country = ENG country = ITA }
			}
		}
	}

	name = "EVT_3901_NAME"
	desc = "EVT_3901_DESC"
	style = 0
	picture = "SCWuk"

	date = { day = 18 month = july year = 1936 }
	offset = 5
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ACTIONNAME3901A" # Great! 
		command = { type = relation which = SPR value = 10 }	# 
		command = { type = manpowerpool value = 5 }		# Soldiers return home
		command = { type = dissent value = -1 }
		command = { type = gain_tech which = -1 } 		# get random tech blueprints
	}
}
