# Extra Grand Campaign events for 1.3

###########################
# Safavid Persia sequence #
###########################

#Tribesmen Join the Safavid Cause#
event = {

	id = 3995
	random = no 
	country = PER
	name = "EVENTNAME3998"
	desc = "EVENTHIST3998"

	date = { day = 1 month = january year = 1492 }
	offset = 30
	deathdate = { day = 1 month = january year = 1500 }

	action_a = {					#The Tribesmen join us#
		name = "ACTIONNAME3998"
		command = { type = INF which = -1 value = 8000 }
		command = { type = CAV which = -4 value = 4000 }
		command = { type = CAV which = -4 value = 4000 }
		command = { type = missionaries value = 1 }
		command = { type = cash value = 200 }
	}
}

#Tribesmen Join the Safavid Cause#
event = {

	id = 3996
	random = no 
	country = PER
	name = "EVENTNAME3998"
	desc = "EVENTHIST3998"

	date = { day = 1 month = january year = 1500 }
	offset = 30
	deathdate = { day = 1 month = january year = 1510 }

	action_a = {					#The Tribesmen join us#
		name = "ACTIONNAME3998"
		command = { type = INF which = -1 value = 8000 }
		command = { type = CAV which = -4 value = 4000 }
		command = { type = CAV which = -4 value = 4000 }
		command = { type = missionaries value = 1 }
		command = { type = cash value = 200 }
	}
}

#Tribesmen Join the Safavid Cause#
event = {

	id = 3997
	random = no 
	country = PER
	name = "EVENTNAME3998"
	desc = "EVENTHIST3998"

	date = { day = 1 month = january year = 1510 }
	offset = 30
	deathdate = { day = 1 month = january year = 1520 }

	action_a = {					#The Tribesmen join us#
		name = "ACTIONNAME3998"
		command = { type = INF which = -1 value = 8000 }
		command = { type = CAV which = -4 value = 4000 }
		command = { type = CAV which = -4 value = 4000 }
		command = { type = missionaries value = 1 }
		command = { type = cash value = 200 }
	}
}

#Tribesmen Join the Safavid Cause#
event = {

	id = 3998
	random = no 
	country = PER
	name = "EVENTNAME3998"
	desc = "EVENTHIST3998"

	date = { day = 1 month = january year = 1520 }
	offset = 30
	deathdate = { day = 1 month = january year = 1530 }

	action_a = {					#The Tribesmen join us#
		name = "ACTIONNAME3998"
		command = { type = INF which = -1 value = 8000 }
		command = { type = CAV which = -4 value = 4000 }
		command = { type = CAV which = -4 value = 4000 }
		command = { type = missionaries value = 1 }
		command = { type = cash value = 200 }
	}
}

#The Safavid Heresy#
event = {

	id = 3999
	random = no
	country = FAR
	trigger = { exists = PER }
	name = "EVENTNAME3999"
	desc = "EVENTHIST3999"

	date = { day = 1 month = january year = 1492 }
	offset = 30
	deathdate = { day = 1 month = january year = 1530 }

	action_a ={				#Accept Ismail as Shah of Persia#
		name = "ACTIONNAME3999A"
		trigger = { 
			ai = yes
		}
		command = { type = trigger which = 4001 }
	}
	action_b = {				#Crush the Safavid Heresy#
		name = "ACTIONNAME3999B"
		command = { type = relation which = PER value = -200 }
		command = { type = war which = PER }
		command = { type = INF which = -2 value = 10000 }
		command = { type = CAV which = -2 value = 5000 }
		command = { type = stability value = 3 }
	}
}

#Ismail's Resurrection of Persia#
event = {

	id = 4000
	random = no
	country = FAR
	trigger = {
		atwar = no
		isvassal = no
		stability = 1
		countrysize = 5
		owned = { province = 533 data = -1 } # Isfahan
		control = { province = 533 data = -1 }
		NOT = { exists = PER }
	}

	name = "EVENTNAME4000"
	desc = "EVENTHIST4000"

	date = { day = 1 month = january year = 1492 }
	offset = 30
	deathdate = { day = 1 month = january year = 1530 }

	action_a ={				#Take up the Safavid cause#
		name = "ACTIONNAME4000A"
		command = { type = religion which = shia } # Just in case
		command = { type = conversion which = -2 }
		command = { type = missionaries value = 3 }
		command = { type = land value = 3000 }
		command = { type = INF which = -2 value = 10000 }
		command = { type = CAV which = -2 value = 20000 }
		command = { type = ART which = -2 value = 10 }
		command = { type = addcore_national which = 471 } # Persian cores
		command = { type = addcore_national which = 472 }
		command = { type = addcore_national which = 473 }
		command = { type = addcore_national which = 474 }
		command = { type = addcore_national which = 486 }
		command = { type = addcore_national which = 487 }
		command = { type = addcore_national which = 488 }
		command = { type = addcore_national which = 489 }
		command = { type = addcore_national which = 508 }
		command = { type = addcore_national which = 525 }
		command = { type = addcore_national which = 526 }
		command = { type = addcore_national which = 527 }
		command = { type = addcore_national which = 528 }
		command = { type = addcore_national which = 529 }
		command = { type = addcore_national which = 530 }
		command = { type = addcore_national which = 531 }
		command = { type = addcore_national which = 532 }
		command = { type = addcore_national which = 533 }
		command = { type = addcore_national which = 534 }
		command = { type = addcore_national which = 535 }
		command = { type = addcore_national which = 1529 }
		command = { type = addcore_national which = 1530 }
		command = { type = addcore_national which = 1531 }
		command = { type = flagname which = "" }
		command = { type = country which = PER }
		command = { type = vp value = 200 }
	}
	action_b = {				#Exterminate the Shi'a Heresy#
		name = "ACTIONNAME4000B"
		command = { type = religion which = sunni } # Just in case
		command = { type = conversion which = -2 }
		command = { type = missionaries value = 3 }
		command = { type = revoltrisk which = 120 value = 6 }
		command = { type = stability value = -3 }
	}
}

# Fars is annexed into Persia
event = {
	id = 4001
	random = no
	country = PER
	name = "EVENTNAME4001"
	desc = "EVENTHIST4001"

	action = { # Marvellous!
		name = "ACTIONNAME4001A"
		command = { type = inherit which = FAR }
	}
}

#The Safavid Heresy#
event = {

	id = 4002
	random = no
	country = KHO
	trigger = { exists = PER }
	name = "EVENTNAME3999"
	desc = "EVENTHIST3999"

	date = { day = 1 month = january year = 1492 }
	offset = 30
	deathdate = { day = 1 month = january year = 1530 }

	action_a ={				#Accept Ismail as Shah of Persia#
		name = "ACTIONNAME3999A"
		trigger = { 
			ai = yes
		}
		command = { type = trigger which = 4003 }
	}
	action_b = {				#Crush the Safavid Heresy#
		name = "ACTIONNAME3999B"
		command = { type = relation which = PER value = -200 }
		command = { type = war which = PER }
		command = { type = INF which = -2 value = 10000 }
		command = { type = CAV which = -2 value = 5000 }
		command = { type = stability value = 3 }
	}
}

# Khorasan is annexed into Persia
event = {
	id = 4003
	random = no
	country = PER
	name = "EVENTNAME4003"
	desc = "EVENTHIST4003"

	action = { # Marvellous!
		name = "ACTIONNAME4003A"
		command = { type = inherit which = KHO }
	}
}

#The Safavid Heresy#
event = {

	id = 4188
	random = no
	country = SHI
	trigger = { exists = PER }
	name = "EVENTNAME3999"
	desc = "EVENTHIST3999"

	date = { day = 1 month = january year = 1492 }
	offset = 30
	deathdate = { day = 1 month = january year = 1530 }

	action_a ={				#Accept Ismail as Shah of Persia#
		name = "ACTIONNAME3999A"
		trigger = { 
			ai = yes
		}
		command = { type = trigger which = 4189 }
	}
	action_b = {				#Crush the Safavid Heresy#
		name = "ACTIONNAME3999B"
		command = { type = relation which = PER value = -200 }
		command = { type = war which = PER }
		command = { type = INF which = -2 value = 10000 }
		command = { type = CAV which = -2 value = 5000 }
		command = { type = stability value = 3 }
	}
}

# Shirvan is annexed into Persia
event = {
	id = 4189
	random = no
	country = PER
	name = "EVENTNAME4189"
	desc = "EVENTHIST4189"

	action = { # Marvellous!
		name = "ACTIONNAME4189A"
		command = { type = inherit which = SHI }
	}
}

############################
# Sale of Küstrin sequence #
############################

# The Sale of Küstrin (LAT) #
event = {
	id = 25034
	trigger = {
		OR = {
			exists = BRA
			exists = POL
			exists = BOH
		}
		owned = { province = 313 data = -1 } # Küstrin
	}
	random = no
	country = LAT
	name = "EVENTNAME25034"
	desc = "EVENTHIST25034"

	date = { day = 1 month = january year = 1455 }
	offset = 60
	deathdate = { day = 1 month = january year = 1465 }

	action_a = {	# Offer the sale to Brandenburg #
		name = "ACTIONNAME25034A"
		trigger = { 
			exists = BRA
			NOT = { war = { country = LAT country = BRA } }
		}
		command = { type = trigger which = 25035 }
	}

	action_b = {	# Offer the sale to Poland #
		name = "ACTIONNAME25034B"
		trigger = { 
			exists = POL
			NOT = { war = { country = LAT country = POL } }
		}
		command = { type = trigger which = 25036 }
	}

	action_c = {	# Request Bohemia buy back the land #
		name = "ACTIONNAME25034C"
		trigger = { 
			exists = BOH
			NOT = { war = { country = LAT country = BOH } }
		}
		command = { type = trigger which = 25037 }
	}

	action_d = {	# Sell Küstrin to a minor noble #
		name = "ACTIONNAME25034D"
		command = { type = treasury value = 150 }
		command = { type = independence which = KUS }
	}

	action = {	# Keep Küstrin #
		name = "ACTIONNAME25034E"
		command = { type = provincetax which = 313 value = -1 }
		command = { type = stability value = -1 }
	}
}

# The Order Offers to sell us Küstrin (BRA) #
event = {
	id = 25035
	random = no
	country = BRA
	name = "EVENTNAME25035"
	desc = "EVENTHIST25035"

	action_a = {	# Yes, Küstrin should be ours #
		name = "ACTIONNAME25035A"
		command = { type = trigger which = 25038 }
		command = { type = treasury value = -250 }
		# BRA should already start with a core on Küstrin
	}

	action_b = {	# No, it is too expensive #
		name = "ACTIONNAME25035B"
		command = { type = trigger which = 25039 }
	}
}

# The Order Offers to sell us Küstrin (POL) #
event = {
	id = 25036
	random = no
	country = POL
	name = "EVENTNAME25036"
	desc = "EVENTHIST25036"

	action_a = {	# Yes, Küstrin should be ours #
		name = "ACTIONNAME25036A"
		command = { type = trigger which = 25040 }
		command = { type = treasury value = -250 }
		command = { type = addcore_claim which = 313 } # Küstrin
	}

	action_b = {	# No, it is too expensive #
		name = "ACTIONNAME25036B"
		command = { type = trigger which = 25041 }
	}
}

# The Order Offers to sell us Küstrin (BOH) #
event = {
	id = 25037
	random = no
	country = BOH
	name = "EVENTNAME25037"
	desc = "EVENTHIST25037"

	action_a = {	# Yes, Küstrin should be ours #
		name = "ACTIONNAME25037A"
		command = { type = trigger which = 25042 }
		command = { type = treasury value = -250 }
		command = { type = addcore_claim which = 313 } # Küstrin
	}

	action_b = {	# No, it is too expensive #
		name = "ACTIONNAME25037B"
		command = { type = trigger which = 25043 }
	}
}

# Brandenburg Agrees to Purchase Küstrin (LAT) #
event = {
	id = 25038
	random = no
	country = LAT
	name = "EVENTNAME25038"
	desc = "EVENTHIST25038"

	action_a = {	# Excellent! #
		name = "ACTIONNAME25038A"
		command = { type = treasury value = 250 }
		command = { type = relation which = BRA value = 100 }
		command = { type = cedeprovince which = BRA value = 313 } # Küstrin
	}
}

# Brandenburg Refuses to Purchase Küstrin (LAT) #
event = {
	id = 25039
	random = no
	country = LAT
	name = "EVENTNAME25039"
	desc = "EVENTHIST25039"

	action_a = {	# So be it #
		name = "ACTIONNAME25039A"
		command = { type = relation which = BRA value = -50 }
	}
}

# Poland Agrees to Purchase Küstrin (LAT) #
event = {
	id = 25040
	random = no
	country = LAT
	name = "EVENTNAME25040"
	desc = "EVENTHIST25040"

	action_a = {	# Excellent! #
		name = "ACTIONNAME25040A"
		command = { type = treasury value = 250 }
		command = { type = relation which = POL value = 100 }
		command = { type = cityname which = 313 value = "Kostrzyn" }
		command = { type = provinceculture which = 313 value = polish }
		command = { type = cedeprovince which = POL value = 313 } # Küstrin
		command = { type = sleepevent which = 338076 } #ProvinceSpec*313: Polish settlers in Küstrin
	}
}

# Poland Refuses to Purchase Küstrin (LAT) #
event = {
	id = 25041
	random = no
	country = LAT
	name = "EVENTNAME25041"
	desc = "EVENTHIST25041"

	action_a = {	# So be it #
		name = "ACTIONNAME25041A"
		command = { type = relation which = POL value = -50 }
	}
}

# Bohemia Agrees to Purchase Küstrin (LAT) #
event = {
	id = 25042
	random = no
	country = LAT
	name = "EVENTNAME25042"
	desc = "EVENTHIST25042"

	action_a = {	# Excellent! #
		name = "ACTIONNAME25042A"
		command = { type = treasury value = 250 }
		command = { type = relation which = BOH value = 100 }
		command = { type = provincetax which = 313 value = 2 }
		command = { type = provincemanpower which = 313 value = 1 }
		command = { type = cedeprovince which = BOH value = 313 } # Küstrin
	}
}

# Bohemia Refuses to Purchase Küstrin (LAT) #
event = {
	id = 25043
	random = no
	country = LAT
	name = "EVENTNAME25043"
	desc = "EVENTHIST25043"

	action_a = {	# So be it #
		name = "ACTIONNAME25043A"
		command = { type = relation which = BOH value = -50 }
	}
}

################################
# Thirteen Years' War sequence #
################################

# The Thirteen Years' War (POL) #
event = {
	id = 25044
	trigger = {
		exists = LAT
		isvassal = no
		countrysize = 4
		NOT = {
			alliance = { country = POL country = LAT }
			vassal = { country = POL country = LAT }
			war = { country = POL country = LAT }
		}
		LAT = {
			owned = { province = 301 data = -1 } # Danzig
		}
	}
	random = no
	country = POL
	name = "EVENTNAME25044"
	desc = "EVENTHIST25044"

	date = { day = 1 month = january year = 1454 }
	offset = 60
	deathdate = { day = 1 month = january year = 1464 }

	action_a = {	# Demand Eastern Pomerania #
		name = "ACTIONNAME25044A"
		command = { type = trigger which = 25045 }
		command = { type = relation which = LIT value = -50 }
		command = { type = relation which = BRA value = -50 }
		command = { type = relation which = POM value = -50 }
		command = { type = relation which = DAN value = -50 }
		command = { type = relation which = SWE value = -50 }
		command = { type = stability value = -1 }
	}

	action_b = {	# Demand all of Prussia #
		name = "ACTIONNAME25044B"
		trigger = { 
			LAT = { owned = { province = 282 data = -1 } }
		}
		command = { type = trigger which = 25046 }
		command = { type = relation which = LIT value = -100 }
		command = { type = relation which = BRA value = -100 }
		command = { type = relation which = POM value = -100 }
		command = { type = relation which = DAN value = -100 }
		command = { type = relation which = SWE value = -100 }
		command = { type = stability value = -2 }
	}

	action_c = {	# Settle for a negotiated peace #
		name = "ACTIONNAME25044C"
		command = { type = trigger which = 25047 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = stability value = 1 }
	}
}

# Poland Demands Eastern Pomerania (LAT) #
event = {
	id = 25045
	random = no
	country = LAT
	name = "EVENTNAME25045"
	desc = "EVENTHIST25045"

	action_a = {	# No, we shall stand our ground #
		name = "ACTIONNAME25045A"
		command = { type = trigger which = 25048 }
	}

	action_b = {	# Yes, we cannot afford another war #
		name = "ACTIONNAME25045B"
		command = { type = trigger which = 25049 }
		command = { type = revoltrisk which = 24 value = 2 }
		command = { type = removecore_national which = 301 }
		command = { type = cedeprovince which = POL value = 301 } # Danzig
		command = { type = cedeprovince which = POL value = 302 } # just in case
	}
}

# Poland Demands Prussia (LAT) #
event = {
	id = 25046
	random = no
	country = LAT
	name = "EVENTNAME25046"
	desc = "EVENTHIST25046"

	action_a = {	# No, we shall stand our ground #
		name = "ACTIONNAME25046A"
		command = { type = trigger which = 25050 }
	}

	action_b = {	# Yes, we cannot afford another war #
		name = "ACTIONNAME25046B"
		command = { type = trigger which = 25051 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = capital which = 282 }
		command = { type = removecore_national which = 289 }
		command = { type = removecore_national which = 290 }
		command = { type = removecore_national which = 301 }
		command = { type = cedeprovince which = POL value = 289 } # Prussia
		command = { type = cedeprovince which = POL value = 290 }
		command = { type = cedeprovince which = POL value = 301 }
		command = { type = cedeprovince which = POL value = 302 } # just in case
	}
}

# Poland Offers a Negotiated Peace (LAT) #
event = {
	id = 25047
	random = no
	country = LAT
	name = "EVENTNAME25047"
	desc = "EVENTHIST25047"

	action_a = {	# Very well, let us compromise #
		name = "ACTIONNAME25047A"
		command = { type = trigger which = 25052 }
		command = { type = revoltrisk which = 24 value = 3 }
		command = { type = treasury value = -250 }
		command = { type = removecore_national which = 301 }
		command = { type = cedeprovince which = POL value = 302 } # just in case
		command = { type = free which = PRL }
	}

	action_b = {	# There will be no craven pact with the Devil #
		name = "ACTIONNAME25047B"
		command = { type = trigger which = 25053 }
	}
}

# Teutonic Order Refuses to Surrender Eastern Pomerania (POL) #
event = {
	id = 25048
	random = no
	country = POL
	name = "EVENTNAME25048"
	desc = "EVENTHIST25048"

	action_a = {	# Assemble the army! #
		name = "ACTIONNAME25048A"
		command = { type = war which = LAT }
		command = { type = casusbelli which = LAT value = 36 }
		command = { type = relation which = LAT value = -200 }
	}
}

# Teutonic Order Surrenders Eastern Pomerania (POL) #
event = {
	id = 25049
	random = no
	country = POL
	name = "EVENTNAME25049"
	desc = "EVENTHIST25049"

	action_a = {	# Excellent! #
		name = "ACTIONNAME25049A"
		command = { type = relation which = LAT value = 100 }
	}
}

# Teutonic Order Refuses to Surrender Prussia (POL) #
event = {
	id = 25050
	random = no
	country = POL
	name = "EVENTNAME25050"
	desc = "EVENTHIST25050"

	action_a = {	# Assemble the army! #
		name = "ACTIONNAME25050A"
		command = { type = war which = LAT }
		command = { type = casusbelli which = LAT value = 36 }
		command = { type = relation which = LAT value = -200 }
	}
}

# Teutonic Order Surrenders Prussia (POL) #
event = {
	id = 25051
	random = no
	country = POL
	name = "EVENTNAME25051"
	desc = "EVENTHIST25051"

	action_a = {	# Rule Prussia directly #
		name = "ACTIONNAME25051A"
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = relation which = LAT value = 100 }
		command = { type = addcore_claim which = 289 }
		command = { type = addcore_claim which = 290 }
	}

	action_b = {	# Rule Prussia as a fief #
		name = "ACTIONNAME25051B"
		trigger = { 
			NOT = { exists = PRU }
		}
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = independence which = PRU }
		command = { type = relation which = PRU value = 150 }
		command = { type = relation which = LAT value = 150 }
		command = { type = addcore_claim which = 289 }
		command = { type = addcore_claim which = 290 }
	}
}

# Teutonic Order Agrees to a Negotiated Peace (POL) #
event = {
	id = 25052
	random = no
	country = POL
	name = "EVENTNAME25052"
	desc = "EVENTHIST25052"

	action_a = {	# Now let us focus on other matters #
		name = "ACTIONNAME25052A"
		command = { type = treasury value = 250 }
		command = { type = alliance which = PRL }
		command = { type = relation which = PRL value = 150 }
		command = { type = relation which = LAT value = 150 }
		command = { type = removecore_national which = 301 }
	}
}

# Teutonic Order Refuses a Negotiated Peace (POL) #
event = {
	id = 25053
	random = no
	country = POL
	name = "EVENTNAME25053"
	desc = "EVENTHIST25053"

	action_a = {	# So be it #
		name = "ACTIONNAME25053A"
		command = { type = casusbelli which = LAT value = 12 }
		command = { type = relation which = LAT value = -100 }
	}
}

###########################
# Halley's Comet sequence #
###########################

# (1456) Halley's Comet
event = { 
	id = 25054
	global = yes

	name = "EVENTNAME25054"
	desc = "EVENTHIST25054"

	style = "25054"

	date = { day = 9 month = june year = 1456 }

	action_a = {	# It is an omen... #
		name = "ACTIONNAME25054A"
		command = { type = stability value = -1 }
	}
}

# (1531) Halley's Comet
event = { 
	id = 25055
	global = yes

	name = "EVENTNAME25054"
	desc = "EVENTHIST25054"

	style = "25054"

	date = { day = 26 month = august year = 1531 }

	action_a = {	# It is an omen... #
		name = "ACTIONNAME25054A"
		command = { type = stability value = -1 }
	}
}

# (1607) Halley's Comet
event = { 
	id = 25059
	global = yes

	name = "EVENTNAME25054"
	desc = "EVENTHIST25054"

	style = "25054"

	date = { day = 27 month = october year = 1607 }

	action_a = {	# It is an omen... #
		name = "ACTIONNAME25054A"
		command = { type = stability value = -1 }
	}
}

# (1682) Halley's Comet
event = { 
	id = 25060
	global = yes

	name = "EVENTNAME25054"
	desc = "EVENTHIST25054"

	style = "25054"

	date = { day = 15 month = september year = 1682 }

	action_a = {	# It is an omen... #
		name = "ACTIONNAME25054A"
		command = { type = stability value = -1 }
	}
}

# (1758) Halley's Comet
event = { 
	id = 25061
	global = yes

	name = "EVENTNAME25054"
	desc = "EVENTHIST25054"

	style = "25054"

	date = { day = 13 month = march year = 1758 }

	action_a = {	# It is an omen... #
		name = "ACTIONNAME25054A"
		command = { type = stability value = -1 }
	}
}

# (1835) Halley's Comet
event = { 
	id = 25062
	global = yes

	name = "EVENTNAME25054"
	desc = "EVENTHIST25054"

	style = "25054"

	date = { day = 16 month = november year = 1835 }

	action_a = {	# It is an omen... #
		name = "ACTIONNAME25054A"
		command = { type = stability value = -1 }
	}
}
