restoring_roman_provinces_story = {

	on_setup = {
	}

	on_end = {
	}

	on_owner_death = {
	}

	effect_group = {
		days = 36 #Checked every 365 days
		
		triggered_effect = {
			trigger = {
				story_owner = {
					roman_restoration_is_valid_roman_empire_trigger = yes
					OR = {
						has_title = title:h_roman_empire #Not for Byzantium.
						has_title = title:h_eastern_roman_empire #Not for Byzantium.
					}
				}
			}
			effect = {
				story_owner = {
					trigger_event = {
						on_action = on_action_roman_restoration_pulse
					}
				}
			}
		}
	}

	#Maintenance group
	effect_group = {
		days = 1
		trigger = {
			story_owner = { is_landed = no }
		}
		triggered_effect = {
			trigger = { always = yes }
			effect = {
				#You became a landless adventurer with different lifestyles! Ending story prematurely.
				story_owner = { save_scope_as = story_owner }
				debug_log = "Roman Restoration invalidated"
				debug_log_scopes = yes
				end_story = yes
			}
		}
	}
}
