I believe this would do the trick if you don't actually mind becoming the Papacy. I think it's still possible to get a nice new shiny flag and such via events, and you could add future Italian events to the Papacy file triggering off of previous events about Italian unification.
Of course, you'll also need to wake/sleep monarchs and leaders.
#Reconciliation With Rome#
event = {
id = xxxxx
trigger = { NOT = { exists = PAP }
OR = {religion = catholic}
{religion = counterreform}
owned = {province = 399 data = xxx}
}
random = no
country = xxx
style = 2
date = { day = 1 month = january year = 1600 }
offset = 120
deathdate = { day = 1 month = january year = 1819 }
name = "Reconciliation with Rome"
desc = "The Pope had opposed every move to unify Italy, rightfully seeing it as an event which would dilute his authority. However, he was now faced with two very ugly facts: first, Italy had unified despite his efforts and he his lands were now controlled by a very large, and very militant, enemy. Second, his authority in Europe had been waning over time, especially so with the Protestant Reformation, and few kings paid heed to Papal edicts. Swallowing these bitter pills, the Pope decided to make the best of a bad situation and attempt to use the new Kingdom of Italy to restore some of the Church's lost authority. In return for annexation into the Kingdom the Pope was given a large amount of cash, granted permanent tithes from Roma, and promised that Italy would further catholicism across Europe and beyond, by war if necessary. Italy committed itself to the goal of one church, with the Pope at its head."
action_a = { #We are Rome!#
name = "We welcome the Pope into Italy"
command = { type = country which = PAP } command = { type = addcore which = 399 }
command = { type = religion which = counterreform }
command = { type = treasury value = -500 }
command = { type = provincetax which = 399 value = -5 }
command = { type = domestic which = innovative value = -2 }
}
action_b = { #Who needs the pope?#
name = "Who needs the Pope?"
command = { type = addcore which = 399 }
command = { type = stability value = -2 }
}
}