#############################################
#First we need to determine every bishopric.#
#############################################

event = {

	id = 78793510
	random = no
	country = MAI
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

event = {

	id = 78793511
	random = no
	country = KOL
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

event = {

	id = 78793512
	random = no
	country = PIC
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

event = {

	id = 78793513
	random = no
	country = MAG
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

event = {

	id = 78793514
	random = no
	country = BRE
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

event = {

	id = 78793515
	random = no
	country = MUN
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

event = {

	id = 78793516
	random = no
	country = THU
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

event = {

	id = 78793517
	random = no
	country = SLZ
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

event = {

	id = 78793518
	random = no
	country = POK
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

event = {

	id = 78793519
	random = no
	country = HEI
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

event = {

	id = 78793520
	random = no
	country = TAN
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { year = 1388 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

event = {

	id = 78793521
	random = no
	country = U01
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

event = {

	id = 78793522
	random = no
	country = ROM
	name = "BISHOPEVENTSNAME1"
	desc = "BISHOPEVENTSDESC1"
	style = 1

	date = { day = 1 month = january year = 1337 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION1A"
		command = { type = setflag which = Prince-Bishop }
		command = { type = ai which = "Bishoprics.ai" }
	}
}

###################################################################
#Then we need to make the abolish events that happened historical.#
###################################################################

event = {

	id = 78793530
	random = no
	country = MAG
	name = "BISHOPEVENTSNAME3"
	desc = "BISHOPEVENTSDESC3"
	style = 1

	date = { day = 24 month = september year = 1545 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION3A"
		command = { type = clrflag which = Prince-Bishop }
		command = { type = ai which = "peaceful.ai" }
		command = { type = relation which = PAP value = -150 }
	}
	action_b ={
		name = "BISHOPEVENTSOPTION3B"
		command = { type = relation which = PAP value = 50 }
	}
}

event = {

	id = 78793531
	random = no
	country = BRE
	name = "BISHOPEVENTSNAME3"
	desc = "BISHOPEVENTSDESC3"
	style = 1

	date = { day = 22 month = january year = 1558 }
	offset = 30
	deathdate = { day = 1 month = january year = 1914 }

	action_a ={
		name = "BISHOPEVENTSOPTION3A"
		command = { type = clrflag which = Prince-Bishop }
		command = { type = ai which = "peaceful.ai" }
		command = { type = relation which = PAP value = -150 }
	}
	action_b ={
		name = "BISHOPEVENTSOPTION3B"
		command = { type = relation which = PAP value = 50 }
	}
}   

#########################################
#Then we need to make the random events.#
#########################################

event = {
	id = 78793540
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                     NOT = {
                             religion = catholic #Is not Catholic
                             religion = counterreform #Is not Counter-Reform Catholic
                             }
                   }
	random = yes
	name = "BISHOPEVENTSNAME2"
	desc = "BISHOPEVENTSDESC2"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION2A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -300 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION2B"
			command = { type = religion which = catholic }
			command = { type = relation which = PAP value = 100 }
		}
	}

event = {
	id = 78793541
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                     NOT = {
                             religion = catholic #Is not Catholic
                             religion = counterreform #Is not Counter-Reform Catholic
                             }
                   }
	random = yes
	name = "BISHOPEVENTSNAME2"
	desc = "BISHOPEVENTSDESC2"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION2A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -300 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION2B"
			command = { type = religion which = catholic }
			command = { type = relation which = PAP value = 100 }
		}
	}
	
event = {
	id = 78793542
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                     NOT = {
                             religion = catholic #Is not Catholic
                             religion = counterreform #Is not Counter-Reform Catholic
                             }
                   }
	random = yes
	name = "BISHOPEVENTSNAME2"
	desc = "BISHOPEVENTSDESC2"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION2A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -300 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION2B"
			command = { type = religion which = catholic }
			command = { type = relation which = PAP value = 100 }
		}
	}

event = {
	id = 78793543
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                     NOT = {
                             religion = catholic #Is not Catholic
                             religion = counterreform #Is not Counter-Reform Catholic
                             }
                   }
	random = yes
	name = "BISHOPEVENTSNAME2"
	desc = "BISHOPEVENTSDESC2"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION2A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -300 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION2B"
			command = { type = religion which = catholic }
			command = { type = relation which = PAP value = 100 }
		}
	}

event = {
	id = 78793544
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                     NOT = {
                             religion = catholic #Is not Catholic
                             religion = counterreform #Is not Counter-Reform Catholic
                             }
                   }
	random = yes
	name = "BISHOPEVENTSNAME2"
	desc = "BISHOPEVENTSDESC2"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION2A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -300 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION2B"
			command = { type = religion which = catholic }
			command = { type = relation which = PAP value = 100 }
		}
	}

event = {
	id = 78793545
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                     NOT = {
                             religion = catholic #Is not Catholic
                             religion = counterreform #Is not Counter-Reform Catholic
                             }
                   }
	random = yes
	name = "BISHOPEVENTSNAME2"
	desc = "BISHOPEVENTSDESC2"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION2A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -300 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION2B"
			command = { type = religion which = catholic }
			command = { type = relation which = PAP value = 100 }
		}
	}
	
event = {
	id = 78793546
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                     NOT = {
                             religion = catholic #Is not Catholic
                             religion = counterreform #Is not Counter-Reform Catholic
                             }
                   }
	random = yes
	name = "BISHOPEVENTSNAME2"
	desc = "BISHOPEVENTSDESC2"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION2A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -300 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION2B"
			command = { type = religion which = catholic }
			command = { type = relation which = PAP value = 100 }
		}
	}

event = {
	id = 78793547
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                     NOT = {
                             religion = catholic #Is not Catholic
                             religion = counterreform #Is not Counter-Reform Catholic
                             }
                   }
	random = yes
	name = "BISHOPEVENTSNAME2"
	desc = "BISHOPEVENTSDESC2"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION2A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -300 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION2B"
			command = { type = religion which = catholic }
			command = { type = relation which = PAP value = 100 }
		}
	}
	

event = {
	id = 78793548
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                     NOT = {
                             religion = catholic #Is not Catholic
                             religion = counterreform #Is not Counter-Reform Catholic
                             }
                   }
	random = yes
	name = "BISHOPEVENTSNAME2"
	desc = "BISHOPEVENTSDESC2"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION2A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -300 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION2B"
			command = { type = religion which = catholic }
			command = { type = relation which = PAP value = 100 }
		}
	}
	
event = {
	id = 78793549
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                     NOT = {
                             religion = catholic #Is not Catholic
                             religion = counterreform #Is not Counter-Reform Catholic
                             }
                   }
	random = yes
	name = "BISHOPEVENTSNAME2"
	desc = "BISHOPEVENTSDESC2"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION2A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -300 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION2B"
			command = { type = religion which = catholic }
			command = { type = relation which = PAP value = 100 }
		}
	}

event = {
	id = 78793550
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
                   }
	random = yes
	name = "BISHOPEVENTSNAME4"
	desc = "BISHOPEVENTSDESC4"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION4A"
			command = { type = cash value = -200 }
			command = { type = relation which = PAP value = 100 }
			command = { type = setflag which = Pays_to_Pope }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION4B"
			command = { type = relation which = PAP value = -300 }
		}
	}
	
event = {
	id = 78793551
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
                   }
	random = yes
	name = "BISHOPEVENTSNAME4"
	desc = "BISHOPEVENTSDESC4"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION4A"
			command = { type = cash value = -200 }
			command = { type = relation which = PAP value = 100 }
			command = { type = setflag which = Pays_to_Pope }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION4B"
			command = { type = relation which = PAP value = -300 }
		}
	}

event = {
	id = 78793552
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          countrysize = 6
                   }
	random = yes
	name = "BISHOPEVENTSNAME4"
	desc = "BISHOPEVENTSDESC4"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION4A"
			command = { type = cash value = -350 }
			command = { type = relation which = PAP value = 100 }
			command = { type = setflag which = Pays_to_Pope }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION4B"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -300 }
		}
	}
	
event = {
	id = 78793553
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          countrysize = 15
                   }
	random = yes
	name = "BISHOPEVENTSNAME4"
	desc = "BISHOPEVENTSDESC4"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION4A"
			command = { type = cash value = -500 }
			command = { type = relation which = PAP value = 100 }
			command = { type = setflag which = Pays_to_Pope }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION4B"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -300 }
		}
	}
	
event = {
	id = 78793554
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
                   }
	random = yes
	name = "BISHOPEVENTSNAME5"
	desc = "BISHOPEVENTSDESC5"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION5A"
			command = { type = cash value = -50 }
			command = { type = population   which = -1 value = -100 }
			command = { type = diplomats   value = 1 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION5B"
			command = { type = vp   value = -1 }
		}
	}
	
event = {
	id = 78793555
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
                   }
	random = yes
	name = "BISHOPEVENTSNAME5"
	desc = "BISHOPEVENTSDESC5"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION5A"
			command = { type = cash value = -50 }
			command = { type = population   which = -1 value = -100 }
			command = { type = colonists   value = 1 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION5B"
			command = { type = vp   value = -1 }
		}
	}
	
event = {
	id = 78793556
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
                   }
	random = yes
	name = "BISHOPEVENTSNAME5"
	desc = "BISHOPEVENTSDESC5"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION5A"
			command = { type = cash value = -50 }
			command = { type = population   which = -1 value = -100 }
			command = { type = merchants   value = 1 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION5B"
			command = { type = vp   value = -1 }
		}
	}
	
event = {
	id = 78793557
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
                   }
	random = yes
	name = "BISHOPEVENTSNAME5"
	desc = "BISHOPEVENTSDESC5"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION5A"
			command = { type = cash value = -50 }
			command = { type = population   which = -1 value = -100 }
			command = { type = missionaries   value = 1 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION5B"
			command = { type = vp   value = -1 }
		}
	}
	
event = {
	id = 78793558
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
                   }
	random = yes
	name = "BISHOPEVENTSNAME5"
	desc = "BISHOPEVENTSDESC5"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION5A"
			command = { type = cash value = -50 }
			command = { type = population   which = -1 value = -100 }
			command = { type = missionaries   value = 1 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION5B"
			command = { type = vp   value = -1 }
		}
	}
	
event = {
	id = 78793559
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
                   }
	random = yes
	name = "BISHOPEVENTSNAME5"
	desc = "BISHOPEVENTSDESC5"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION5A"
			command = { type = cash value = -50 }
			command = { type = population   which = -1 value = -100 }
			command = { type = missionaries   value = 1 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION5B"
			command = { type = vp   value = -1 }
		}
	}
	
event = {
	id = 78793560
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
                   }
	random = yes
	name = "BISHOPEVENTSNAME6"
	desc = "BISHOPEVENTSDESC6"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION6A"
			command = { type = gainbuilding   which = -1 value = bailiff } 
		}
	}
	
event = {
	id = 78793561
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
                   }
	random = yes
	name = "BISHOPEVENTSNAME6"
	desc = "BISHOPEVENTSDESC6"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION6A"
			command = { type = gainmanufactory   which = -1 value = -1 } 
		}
	}
	
event = {
	id = 78793562
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
                   }
	random = yes
	name = "BISHOPEVENTSNAME6"
	desc = "BISHOPEVENTSDESC6"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION6A"
			command = { type = fortress   which = -1 value = 1 } 
		}
	}

event = {
	id = 78793570
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                   NOT = {
                           relation = { country = PAP data = 0 } #Relations to the Pope should be lower than 0
                           }
                           domestic = { type = aristocracy value = 6 } #The government should be aristocratic
                  }
	random = yes
	name = "BISHOPEVENTSNAME8"
	desc = "BISHOPEVENTSDESC8"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION8A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -200 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION8B"
			command = { type = relation which = PAP value = 200 }
		}
	}
	
event = {
	id = 78793571
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                   NOT = {
                           relation = { country = PAP data = 0 } #Relations to the Pope should be lower than 0
                           }
                           domestic = { type = aristocracy value = 6 } #The government should be aristocratic
                  }
	random = yes
	name = "BISHOPEVENTSNAME8"
	desc = "BISHOPEVENTSDESC8"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION8A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -200 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION8B"
			command = { type = relation which = PAP value = 200 }
		}
	}
	
event = {
	id = 78793572
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                   NOT = {
                           domestic = { type = aristocracy value = 5 } #The government should be plutocratic
                           relation = { country = PAP data = 0 } #Relations to the Pope should be lower than 0
                           }
                  }
	random = yes
	name = "BISHOPEVENTSNAME8"
	desc = "BISHOPEVENTSDESC8"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION8B"
			command = { type = domestic   which = aristocracy value = 1 } 
			command = { type = relation which = PAP value = 200 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION8A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -200 }
		}
	}
	
event = {
	id = 78793573
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	                   NOT = {
                           domestic = { type = aristocracy value = 5 } #The government should be plutocratic
                           relation = { country = PAP data = 0 } #Relations to the Pope should be lower than 0
                           }
                  }
	random = yes
	name = "BISHOPEVENTSNAME8"
	desc = "BISHOPEVENTSDESC8"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION8B"
			command = { type = domestic   which = aristocracy value = 1 }
			command = { type = relation which = PAP value = 200 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION8A"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
			command = { type = relation which = PAP value = -200 }
		}
	}

event = {
	id = 78793574
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
                  }
	random = yes
	name = "BISHOPEVENTSNAME7"
	desc = "BISHOPEVENTSDESC7"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION7A"
			command = { type = population   which = -1 value = 250 }
			command = { type = relation which = PAP value = 10 }
		}
	}
event = {
	id = 78793575
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
                  }
	random = yes
	name = "BISHOPEVENTSNAME7"
	desc = "BISHOPEVENTSDESC7"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION7A"
			command = { type = population   which = -1 value = 250 }
			command = { type = relation which = PAP value = 10 }
		}
	}
event = {
	id = 78793576
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
                  }
	random = yes
	name = "BISHOPEVENTSNAME7"
	desc = "BISHOPEVENTSDESC7"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION7A"
			command = { type = population   which = -1 value = 250 }
			command = { type = relation which = PAP value = 10 }
		}
	}
event = {
	id = 78793577
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
                  }
	random = yes
	name = "BISHOPEVENTSNAME7"
	desc = "BISHOPEVENTSDESC7"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION7A"
			command = { type = population   which = -1 value = 500 }
			command = { type = relation which = PAP value = 10 }
		}
	}
event = {
	id = 78793578
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
                  }
	random = yes
	name = "BISHOPEVENTSNAME7"
	desc = "BISHOPEVENTSDESC7"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION7A"
			command = { type = population   which = -1 value = 500 }
			command = { type = relation which = PAP value = 10 }
		}
	}
event = {
	id = 78793579
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
                  }
	random = yes
	name = "BISHOPEVENTSNAME7"
	desc = "BISHOPEVENTSDESC7"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION7A"
			command = { type = population   which = -1 value = 500 }
			command = { type = relation which = PAP value = 10 }
		}
	}
event = {
	id = 78793580
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
                  }
	random = yes
	name = "BISHOPEVENTSNAME10"
	desc = "BISHOPEVENTSDESC10"
	style = 0
	action_a = {
			name = "BISHOPEVENTSOPTION10A"
			command = { type = conversion   which = -1 }
			command = { type = provinceculture which = -3 value = -1 }
		}
	}
	
event = {
	id = 78793581
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
	          NOT = { exists = PAP exists = STT }
	          owned = { province = 1415 data = -1 } #Avignon
                  }
	random = yes
	name = "BISHOPEVENTSNAME9"
	desc = "BISHOPEVENTSDESC9"
	style = 0
	
 	date = { day = 1 month = january year = 1337 }
	offset = 360
	deathdate = { day = 1 month = january year = 1500 }

	action_a = {
			name = "BISHOPEVENTSOPTION9A"
			command = { type = country which = STT }
                        command = { type = trigger which = 78793586 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION9B"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
		}
	}
	
event = {
	id = 78793582
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
	          NOT = { exists = PAP exists = STT }
	          owned = { province = 1415 data = -1 } #Avignon
                  }
	random = yes
	name = "BISHOPEVENTSNAME9"
	desc = "BISHOPEVENTSDESC9"
	style = 0
	
 	date = { day = 1 month = january year = 1337 }
	offset = 360
	deathdate = { day = 1 month = january year = 1500 }

	action_a = {
			name = "BISHOPEVENTSOPTION9A"
			command = { type = country which = STT }
                        command = { type = trigger which = 78793586 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION9B"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
		}
	}
	
event = {
	id = 78793583
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
	          NOT = { exists = PAP exists = STT }
	          owned = { province = 1415 data = -1 } #Avignon
                  }
	random = yes
	name = "BISHOPEVENTSNAME9"
	desc = "BISHOPEVENTSDESC9"
	style = 0
	
 	date = { day = 1 month = january year = 1337 }
	offset = 360
	deathdate = { day = 1 month = january year = 1500 }

	action_a = {
			name = "BISHOPEVENTSOPTION9A"
			command = { type = country which = STT }
                        command = { type = trigger which = 78793586 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION9B"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
		}
	}
	
event = {
	id = 78793584
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
	          NOT = { exists = PAP exists = STT }
	          owned = { province = 1415 data = -1 } #Avignon
                  }
	random = yes
	name = "BISHOPEVENTSNAME9"
	desc = "BISHOPEVENTSDESC9"
	style = 0

 	date = { day = 1 month = january year = 1337 }
	offset = 360
	deathdate = { day = 1 month = january year = 1500 }

	action_a = {
			name = "BISHOPEVENTSOPTION9A"
			command = { type = country which = STT }
                        command = { type = trigger which = 78793586 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION9B"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
		}
	}
	
event = {
	id = 78793585
	trigger = {
	          flag = Prince-Bishop #Need to be a Prince-Bishop
	          flag = Pays_to_Pope #Need to pay to the Pope
	          NOT = { exists = PAP exists = STT }
	          owned = { province = 1415 data = -1 } #Avignon
                  }
	random = yes
	name = "BISHOPEVENTSNAME9"
	desc = "BISHOPEVENTSDESC9"
	style = 0
	
 	date = { day = 1 month = january year = 1337 }
	offset = 360
	deathdate = { day = 1 month = january year = 1500 }

	action_a = {
			name = "BISHOPEVENTSOPTION9A"
			command = { type = country which = STT }
                        command = { type = trigger which = 78793586 }
		}
	action_b = {
			name = "BISHOPEVENTSOPTION9B"
			command = { type = clrflag which = Prince-Bishop }
			command = { type = ai which = "peaceful.ai" }
		}
	}
	
event = {
	id = 78793586
	country = STT
	random = yes
	name = "Avignon is the new Holy City again"
	desc = "Our great bishops around Europe have helped us get back into power."
	style = 0
	action_a = {
			name = "Great"
			command = { type = country which = PAP }
                        command = { type = addcore which = 391 } #Romagna
		        command = { type = addcore which = 392 } #Marche
		        command = { type = addcore which = 399 } #Rome
		}
	}


