#################################
#### Event by Lambert Simnel ####
#################################

#Creation of the Dutch Republic#
event = {

	id = 28001
	trigger = {
			owned = {
					province = 337
					data = -1
				}
			owned = {
					province = 338
					data = -1
				}
			owned = {
					province = 339
					data = -1
				}
			owned = {
					province = 340
					data = -1
				}
			owned = {
					province = 378
					data = -1
				}
			owned = {
					province = 380
					data = -1
				}
			NOT = {
				exists = HOL
				}
		}
	random = no
	country = FRI
	name = "EVENTNAME28000"
	desc = "EVENTHIST28001"
	style = 2

	date = { day = 1 month = january year = 1559 }
	offset = 3600
	deathdate = { day = 1 month = january year = 1648 }

	action_a ={
		name = "ACTIONNAME28001A"
		command = { type = vp value = 200 }
		command = { type = stability value = -2 }
		command = { type = revoltrisk   which = 48 value = 8 } 
		command = { type = domestic which = CENTRALIZATION value = 3 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = gainbuilding   which = -1 value = bailiff } 
		command = { type = gainbuilding   which = -1 value = bailiff } 
		command = { type = gainbuilding   which = -1 value = bailiff }  
		command = { type = gainbuilding   which = -1 value = bailiff } 
		command = { type = gainbuilding   which = -1 value = courthouse }  
		command = { type = gainbuilding   which = -1 value = courthouse }
	}

	action_b ={
		name = "ACTIONNAME28002B"
		command = { type = vp value = -200 }
		command = { type = inflation value = 10 }
		command = { type = stability value = -1 }
		command = { type = country which = HOL }
		command = { type = religion   which = reformed } 
		command = { type = sleepevent   which = 3900 } 
		command = { type = domestic which = CENTRALIZATION value = -5 }
		command = { type = domestic which = ARISTOCRACY value = -3 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = domestic which = MERCANTILISM value = -2 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = domestic which = QUALITY value = -3 }
		command = { type = addcore which = 337 }
		command = { type = addcore which = 338 }
		command = { type = addcore which = 339 }
		command = { type = addcore which = 340 }
		command = { type = addcore which = 378 }
		command = { type = addcore which = 380 }
	}
}

#Friesland events by TheF, modified by Twoflower#

#Schieringers and Vetkopers# 
event = {
	id = 22010
	random = no 
	country = FRI 
	name = "EVENTNAME22010" 
	desc = "EVENTHIST22010"
	style = 1 

	date = { day = 2 month = january year = 1419 } 
	offset = 0 
	deathdate = { day = 31 month = january year = 1498 } 

	action_a ={ 
		name = "ACTIONNAME22010A" 
		command = { type = stability value = -6 } 
		command = { type = province_revoltrisk which = 337 value = 10 } 
		} 
} 

#Reconciliation effort of the Schieringers, triggered by U10_88017# 
event = {
	id = 22011 
	random = no 
	country = FRI 
	name = "EVENTNAME22011" 
	desc = "EVENTHIST22011"
	style = 1 

	action_a ={ 
		name = "ACTIONNAME22011A" 
		command = { type = stability value = 1 } 
		command = { type = revoltrisk which = 337 value = -5 } 
		} 
} 

#Vetkoper reaction, triggered by U10_88015# 
event = {
	id = 22012 
	random = no 
	country = FRI 
	name = "EVENTNAME22012" 
	desc = "EVENTHIST22012"
	style = 1 

	action_a ={ 
		name = "ACTIONNAME40098A" 
		command = { type = stability value = -1 } 
		command = { type = INF which = 337 value = 4000 } 
		} 
} 

#Reaction to Jan becoming lord of Frisia, triggered by 88018# 
event = {
	id = 22013 
	random = no 
	country = FRI 
	name = "EVENTNAME22013" 
	desc = "EVENTHIST22013"
	style = 1 

	action_a ={ 
		name = "ACTIONNAME40098A" 
		command = { type = stability value = -1 } 
		} 
} 

#Jan institutes a 'rentmeester'# 
event = { 
	id = 22014 
	random = no 
	country = FRI 
	name = "EVENTNAME22014" 
	desc = "EVENTHIST22014"
	style = 1 
	trigger = { event = 88018 } 
	date = { day = 1 month = april year = 1421 } 
	offset = 0 
	deathdate = { day = 30 month = april year = 1421 } 

	action_a = { 
		name = "ACTIONNAME22014A" 
		command = { type = gainbuilding which = 337 value = bailiff } 
		command = { type = treasury value = -25 } 
		} 

	action_b = { 
		name = "ACTIONNAME22014B" 
		command = { type = treasury value = 25 } 
		command = { type = relation which = U10 value = -100 } 
		} 
} 
#Breaking the vassalization# 
event = { 
	id = 22015 
	random = no 
	country = FRI 
	name = "EVENTNAME22015" 
	desc = "EVENTHIST22015"
	style = 1 

	action_a = { 
	name = "ACTIONNAME22015A" 
	command = { type = breakvassal which = U10 } 
	} 
} 

#CB's on Holland and Oldenburg.# 
event = { 
	id = 22016 
	random = no 
	country = FRI 	
	name = "EVENTNAME22016" 
	desc = "EVENTHIST22016"
	style = 1 

	date = { day = 1 month = january year = 1464 } 
	offset = 364 
	deathdate = { day = 1 month = january year = 1465 } 

	action_a = { 
		name = "ACTIONNAME22016A" 
		command = { type = relation which = BUR value = 75 } 
		command = { type = relation which = GEL value = 75 } 
		command = { type = relation which = OLD value = 75 } 
		command = { type = stability value = 1 } 
		} 

	action_b = { 
		name = "ACTIONNAME22016B" 
		command = { type = relation which = GEL value = -50 } 
		command = { type = relation which = BUR value = -50 } 
		command = { type = relation which = OLD value = -50 } 
		command = { type = addcore which = 335 } 
		command = { type = addcore which = 339 } 
		command = { type = stability value = -1 } 
		} 
} 

#Ratification of the Charlemagne-privilege# 
event = { 
	id = 22017 
	random = no 
	country = FRI 
	name = "EVENTNAME22017" 
	desc = "EVENTHIST22017"
	style = 1 

	date = { day = 1 month = january year = 1493 } 
	offset = 364 
	deathdate = { day = 1 month = january year = 1494 } 

	action_a = { 
		name = "ACTIONNAME3855A" 
		command = { type = stability value = 1 } 
		command = { type = domestic which = aristocracy value = -1 } 
		command = { type = domestic which = innovative value = 1 } 
		command = { type = relation which = HAB value = 50 }
		} 
} 

#Albrecht von Sachsen# 
#Triggered by SAC_22005# 
event = { 
	id = 22006 
	random = no 
	country = FRI 
	name = "EVENTNAME22018" 
	desc = "EVENTHIST22006"
	style = 1 

	action_a = { 
		name = "ACTIONNAME22006A" 
		command = { type = domestic which = centralization value = 2 } #reforms# 
		command = { type = domestic which = aristocracy value = 1 } 
		command = { type = domestic which = serfdom value = 1 } 
		command = { type = domestic which = innovative value = -1 } 
		command = { type = domestic which = mercantilism value = 1 } 
		command = { type = stability value = 1 } 
		command = { type = relation which = SAC value = 100} 
		command = { type = wakemonarch which = 03571 } 
		command = { type = wakemonarch which = 03572 } 
		command = { type = wakemonarch which = 03573 } 
		command = { type = wakemonarch which = 03574 } 
		command = { type = wakemonarch which = 03575 } 
		command = { type = wakemonarch which = 03576 } 
		command = { type = sleepmonarch which = 03578 } 
		command = { type = province_revoltrisk which = 337 value = -5 } #The civil war lessened# 
		} 
} 

#If SAC doesn't exist# 
event = { 
	id = 22018 
	random = no 
	country = FRI 
	name = "EVENTNAME22018" 
	desc = "EVENTHIST22018"
	style = 1 
	trigger = { NOT = { exists = SAC } } 
	date = { day = 1 month = january year = 1498 } 
	offset = 350 
	deathdate = { day = 30 month = december year = 1498 } 
	action_a = { 
		name = "ACTIONNAME22006A" 
		command = { type = domestic which = centralization value = 2 } #reforms# 
		command = { type = domestic which = aristocracy value = 1 } 
		command = { type = domestic which = serfdom value = 1 } 
		command = { type = domestic which = innovative value = -1 } 
		command = { type = domestic which = mercantilism value = 1 } 
		command = { type = stability value = 1 } 
		command = { type = relation which = SAC value = 100} 
		command = { type = wakemonarch which = 03571 } 
		command = { type = wakemonarch which = 03572 } 
		command = { type = wakemonarch which = 03573 } 
		command = { type = wakemonarch which = 03574 } 
		command = { type = wakemonarch which = 03575 } 
		command = { type = wakemonarch which = 03576 } 
		command = { type = sleepmonarch which = 03578 } 
		command = { type = province_revoltrisk which = 337 value = -5 } #The civil war lessened# 
		} 
} 

#Revolt# 
event = { 
	id = 22019
	random = NO 
	country = FRI 
	name = "EVENTNAME22019" 
	desc = "EVENTHIST22019"
	style = 1 

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

	action_a = { 
		name = "ACTIONNAME5251A" 
		command = { type = revolt which = 337 } 
		command = { type = stability value = -1 } 
		} 
} 

#Georg returns and imposes the Ordinance of Saksen# 
event = { 
	id = 22020 
	random = no 
	country = FRI 
	name = "EVENTNAME22020" 
	desc = "EVENTHIST22020"
	style = 1 
	trigger = { vassal = { country = SAC country = FRI } }
	date = { day = 1 month = june year = 1504 } 
	offset = 100 
	deathdate = { day = 30 month = december year = 1498 } 

	action_a = { 
		name = "ACTIONNAME22020A" 
		command = { type = gainbuilding which = -2 value = courthouse } 
		command = { type = domestic which = centralization value = 1 } 
		command = { type = treasury value = -25 } 
		command = { type = stability value = -1 } 
		command = { type = infra value = 300 } 
		command = { type = loansize which = 250 } 
		command = { type = provincetax which = -2 value = 2 } 
		command = { type = revoltrisk which = 240 value = 2 } 
		} 

	action_b = { 
		name = "ACTIONNAME22020B" 
		command = { type = treasury value = 100 } 
		command = { type = stability value = -1 } 
		command = { type = infra value = 200 } 
		command = { type = loansize which = 250 } 
		command = { type = provincetax which = -2 value = 1 } 
		command = { type = revoltrisk which = 240 value = 3 }
		} 

	action_c = { 
		name = "ACTIONNAME22020C" 
		command = { type = gainbuilding which = -2 value = courthouse } 
		command = { type = domestic which = centralization value = 1 } 
		command = { type = treasury value = -100 } 
		command = { type = infra value = 300 } 
		command = { type = loansize which = 250 } 
		} 

	action_d = { 
		name = "ACTIONNAME22020D" 
		command = { type = stability value = 1 } 
		} 
} 
event = { 
	id = 22021 
	trigger = { vassal = { country = SAC country = FRI }}
	random = no 
	country = FRI 
	name = "EVENTNAME22021" 
	desc = "EVENTHIST22021"
	style = 1 

	date = { day = 1 month = january year = 1512 } 
	offset = 350 
	deathdate = { day = 1 month = january year = 1513 } 

	action_a = { 
		name = "ACTIONNAME22021A" 
		command = { type = relation which = SAC value = -50 } 
		command = { type = stability value = 1 } 
		command = { type = revoltrisk which = 34 value = 2 } 
		} 

	action_b = { 
		name = "ACTIONNAME22021B" 
		command = { type = stability value = -1 } 
		} 
} 

event = { 
	id = 22022 
	trigger = { event = 22009
            exists = GEL }
	random = no 
	country = FRI 
	name = "EVENTNAME22022" 
	desc = "EVENTHIST22022"
	style = 1 

	date = { day = 2 month = january year = 1515 } 
	offset = 25 
	deathdate = { day = 2 month = february year = 1515 } 

	action_a = { 
		name = "ACTIONNAME22022A" 
		command = { type = trigger which = 22023 } 
		} 

	action_b = { 
		name = "ACTIONNAME22022B" 
		command = { type = trigger which = 22024 } 
		} 

	action_c = { 
		name = "ACTIONNAME22022C" 
		command = { type = domestic which = innovative value = 2 } 
		command = { type = domestic which = centralization value = -3 } 
		command = { type = domestic which = serfdom value = -2 } 
		command = { type = INF which = -2 value = 5000 } 
		command = { type = CAV which = -2 value = 1000 } 
		command = { type = war which = HAB } 
		command = { type = relation which = HAB value = -200 } 
		command = { type = relation which = GEL value = 50 } 
		command = { type = relation which = OLD value = 50 } 
		command = { type = wakemonarch which = 03578 } #Frisian Council 
		command = { type = wakeleader which = 03005 } #Grote Pier 
		command = { type = wakeleader which = 03006 } #Grote Pier 
		} 
} 


event = { 
	id = 22025
	trigger = { event = 22009
            NOT = { exists = GEL } }
	random = no 
	country = FRI 
	name = "EVENTNAME22022" 
	desc = "EVENTHIST22022"
	date = { day = 2 month = january year = 1515 } 
	offset = 25 
	deathdate = { day = 2 month = february year = 1515 } 

	action_a = { 
		name = "ACTIONNAME22022B" 
		command = { type = trigger which = 22024 } 
		} 

	action_b = { 
		name = "ACTIONNAME22022C" 
		command = { type = domestic which = innovative value = 2 } 
		command = { type = domestic which = centralization value = -3 } 
		command = { type = domestic which = serfdom value = -2 } 
		command = { type = INF which = -2 value = 5000 } 
		command = { type = CAV which = -2 value = 1000 } 
		command = { type = war which = HAB } 
		command = { type = relation which = HAB value = -200 } 
		command = { type = relation which = GEL value = 50 } 
		command = { type = relation which = OLD value = 50 } 
		command = { type = wakemonarch which = 03578 } #Frisian Council 
		command = { type = wakeleader which = 03005 } #Grote Pier 
		command = { type = wakeleader which = 03006 } #Grote Pier 
		} 
} 
