event = {

	id = 887844014
	trigger = {
	          NOT = { exists = PAP }
                  }
	country = STT
	random = no
	name = "Claiming the Papal States"
	desc = "Now that the Pope is in prison we can claim the title and become Antipopes."
	style = 5

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

	action_a = {
		name = "Become Antipopes"
		command = { type = country which = PAP }
		command = { type = addcore which = 391 } #Romagna
  		command = { type = addcore which = 392 } #Marche
		command = { type = addcore which = 399 } #Rome
	}
	action_b = {
		name = "Stay loyal to the real Pope"
		command = { }
	}
}

event = {

	id = 887844015
	trigger = {
	          NOT = { exists = PAP }
	          event = 887844014
                  }
	country = STT
	random = no
	name = "Claiming the Papal States"
	desc = "Now that the Pope is in prison we can claim the title and become Antipopes."
	style = 5

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

	action_a = {
		name = "Become Antipopes"
		command = { type = country which = PAP }
		command = { type = addcore which = 391 } #Romagna
  		command = { type = addcore which = 392 } #Marche
		command = { type = addcore which = 399 } #Rome
	}
	action_b = {
		name = "Stay loyal to the real Pope"
		command = { }
	}
}

event = {

	id = 887844016
	trigger = {
	          NOT = { exists = PAP }
	          event = 887844015
                  }
	country = STT
	random = no
	name = "Claiming the Papal States"
	desc = "Now that the Pope is in prison we can claim the title and become Antipopes."
	style = 5

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

	action_a = {
		name = "Become Antipopes"
		command = { type = country which = PAP }
		command = { type = addcore which = 391 } #Romagna
  		command = { type = addcore which = 392 } #Marche
		command = { type = addcore which = 399 } #Rome
	}
	action_b = {
		name = "Stay loyal to the real Pope"
		command = { }
	}
}