on_yearly_pulse = {
	events = {
		PlusFaction.250 # Main Annual faction maintenance event
		PlusFaction.220 # Annual faction maintenance event
	}
}

#character
on_decade_pulse = {
	random_events = {
		200 = PlusFaction.120 #former MTTH event
		400 = 0
	}
}

on_death = {
	events = {
		PlusFaction.205 # Faction maintenance upon ruler death
	}
}

# ROOT is the creating character, FROM is the title
on_create_title = {
	events = {
		PlusFaction.216 # Update matrilineal marriage status for created titles
	}
}

# ROOT is the character, FROM is the title, FROMFROM is the old holder
on_new_holder = {
	events = {
		PlusFaction.213 # Check for invalidated succession law
        PlusFaction.230 # PF: War liege change
        PlusFaction.231 # PF: Rebel drops-out of a civil war due to title loss
        PlusFaction.232 # PF: Rebel drops-out of a civil war due to title gain
        PlusFaction.233 # PF: Loyalist/neutral's liege changes due to title gain
	}
}

# ROOT is the character, FROM is the title, FROMFROM is the old holder
on_new_holder_inheritance = {
	events = {
		PlusFaction.213 # Check for invalidated succession law
        PlusFaction.230 # PF: War liege change
        PlusFaction.231 # PF: Rebel drops-out of a civil war due to title loss
        PlusFaction.232 # PF: Rebel drops-out of a civil war due to title gain
        PlusFaction.233 # PF: Loyalist/neutral's liege changes due to title gain
	}
}

# ROOT is the character, FROM is the title, FROMFROM is the old holder
on_new_holder_usurpation = {
	events = {
		PlusFaction.213 # Check for invalidated succession law
        PlusFaction.230 # PF: War liege change
        PlusFaction.231 # PF: Rebel drops-out of a civil war due to title loss
        PlusFaction.232 # PF: Rebel drops-out of a civil war due to title gain
        PlusFaction.233 # PF: Loyalist/neutral's liege changes due to title gain
	}
}

on_unlanded = {
	events = {
        PlusFaction.234 # PF: Loyalist/neutral unlanded
	}
}

# From = Attacker, Root = Defender
on_war_ended_victory = {
	effect = {
		FROM = {
			pf_glory_plus2_effect = yes
		}
		ROOT = {
			pf_glory_minus2_effect = yes
		}
	}
}

# From = Attacker, Root = Defender
on_war_ended_defeat = {
	effect = {
		FROM = {
			pf_glory_minus2_effect = yes
		}
		ROOT = {
			pf_glory_plus2_effect = yes
		}
	}
}

GRANT_LANDED_TITLE_INTERACTION_ACCEPT_EVENT = {
	events = {
        PlusFaction.211 # Fires faction response upon a granted title
	}
}
