	# Character scope
on_startup = {
	events = {
		HF.1     # Set up Great Conquerors for Shattered World
		HF.2     # Set up Primogeniture in Shattered World
		HF.5     # Alternate Start General maintenance
		HF.20372 # Apply crowned_by_traits
		HF.23205 # Altstart Dogmatic/Cosmopolitan effects
		HF.25057 # Give West African Grand Masters some Masks
		HF.23472 # Add Irminsul special building on Charlemagne start
		HF.23035 # Status of Women cleanup for customized religions on Random Start
		HF.25070 # Add Tattoos to landless starting Warrior Lodge members of high ranks
		HF.15099 # Setup rain in African regions
		HF.23776 # Assign African tattoos
		HF.23778 # Setting up god-emperors on Altstart

		HFP.30031 # Set up freckles
		HFP.40028 # Removes the prince(ss) titles from the children of the Prince of Antioch
		HFP.24025 # Enable Eldership for appropriate religions/Doctrines
		HFP.20804 # Clear Byzantine commander variables on the Emperor
		HFP.23028 # Cleanup Monemvasia if Hellenism rule is off
		HFP.24120 # Setup Princely Elector Titles
		HFP.11051 # Hidden event to give commanders (who do not have it already) the commander bonus
	}
}

# Character scope
on_yearly_pulse = {
	events = {
		HF.3     # Activate GHW's and holy orders when running randomized rel names
		HF.304   # Child of Destiny gains bloodline if above Duke tier
		HF.20405 # Ticking negative opinion modifier for uncrowned Catholic
		HF.21999 # Main Sway hidden event, no further pulses are required
		HF.22999 # Main Antagonize hidden event, no further pulses are required
		HF.49100 # Check if to start Northern Crusade
		HF.49116 # Check if Northern Crusade has succeeded
		HF.49120 # Flavor event tombola Northern Crusade
		HF.49460 # Reconquista Adventurer
		HF.49470 # Reconquista flavor tombola

		HFP.44002 # Holy Orders check if their liege, if any, is still fit to rule them
		HFP.24001 # Elder has too much to live for
	}
	random_events = {
		# Holy Fury Flavor
		150 = HF.46000 # Booming saint tomb burial site
		150 = HF.46001 # Inspired by Local Saint
		150 = HF.46010 # Pillage Local Saintly Burial Site

		200 = HFP.1     # Giant-trait character gains Frail or Brawny
		200 = HFP.4     # Giant-trait character gets health problems
		100 = HFP.30000 # Family member confronts you about your drinking
		100 = HFP.30020 # Court Physician offers you a potion that might stop you being depressed
		 20 = HFP.30010 # Giant-trait character keeps hitting their head on doorways
		 10 = HFP.30100 # Meteorite Falls

		# Holy Fury Bloodline Events
		350 = HF.110   # Gain Sympathy for Founder religion
		200 = HF.120   # Chance of gaining a personality trait of Founder
		300 = HF.43000 # Chance for zealots to help aid your cause
		200 = HF.43250 # Chance for Great Theologian to join your Court
		150 = HF.43300 # Frenzied zealots at your capital
		150 = HF.43400 # Monk Society helping out

		# Trans-Saharan Trade Post Events
		100 = HFP.80010 # Gold mine depleted
		100 = HFP.80020 # Gold inflation in province
		 75 = HFP.80000 # Gold Rush!

		yearly_child_of_destiny_chance = {
			9999 = 0
			1 = HF.199 # Extra chance for player children to become Children of Destiny
		}
	}
}

# Character scope
on_bi_yearly_pulse = {
	events = {
		HF.15098 # African Rain/Drought delayed weather change event (HF.15120 is the actual tombola)
	}
}

# Character scope
on_five_year_pulse = {
	events = {
		HF.99    # Legendary warrior arrives
		HF.10050 # Warrior Lodges: Maintenance: AIs joins available warrior lodges
		HF.15100 # Rain/Drought status changes in most of Africa
		HF.20375 # Catholic/Fraticelli Kings/Emperors who have not been crowned will receive random negative events
		HF.21997 # AI picks Antagonizing target
		HF.21998 # AI picks Swaying target
		HF.24129 # Knights and Bards arrive
		HF.24132 # Lady seeks protection
		HF.24236 # Artists arrive

		HFP.20604 # Hidden check for physique_variable
	}
	random_events = {
		2 = HFP.20801 # Character becoming Groomed due to Focus
		2 = HFP.20802 # Character becoming Uncouth due to Focus

		# Crown events
		10 = HF.20399 # The nail in the Iron Cross
		10 = HF.20400 # The HRE crown and the prince

		# Physical shape events
		10 = HFP.20647 # Health complications - Fat
		10 = HFP.20648 # Health complications - Malnourished
		10 = HFP.20649 # Help from friend
		 5 = HFP.20606 # Character is getting fat
		 5 = HFP.20629 # Character is getting malnourished
	}
}

# Character scope
on_decade_pulse = {
	events = {
		HF.23400 # Astrology + Haruspicy = Religious Head reads the stars
	}
	random_events = {
		# Late life health complications
		200 = HFP.20661 # Character has become obese
		200 = HFP.20662 # Character has become severely underweight
		100 = HF.23404 # Astrology + Haruspicy + No Religious Head: Court Chaplain occasionally reads the signs

		forged_bloodlines = {
			15 = HF.24200 	# Chance to claim Alexander the Great's Bloodline
			15 = HF.24220 	# Chance to claim Ashoka's Bloodline
			7900 = 0
		}

		eldership_succession = {
			15 = HFP.24002	# Pleased Elder moves in
			15 = HFP.24004	# Grumpy Elder moves out
			 5 = HFP.24006	# Happy Elder suggests County grant
			45 = HFP.24010	# Grumpy Elder suggests County grant
			 5 = HFP.24014	# Pleased Elder feels lonely
			 3 = HFP.24016	# Grumpy Elder fabricates claim against ruler
			 2 = HFP.24020	# Ecstatic Elder praises ruler
			 1 = HFP.24022	# Ecstatic Elder mentors ruler
			150 = 0
		}

		horse_prophecy = {
			delay = 128
			40 = HF.6 # A Prophecy foretold
			890 = 0
		}
	}
}

# For characters older than AGE_CHILDHOOD_PULSE but not an adult as defined by ADULT_AGE_FEMALE and ADULT_AGE_MALE
on_yearly_childhood_pulse = {
	events = {
		HF.302 # Child of Destiny gets extra stats

		HFP.20057 # Hollow Child nickname
	}

	random_events = {
		bloodline_events = {
			100 = HF.24100	# Child is bored with his guardian
			50 = HF.24230	# Depressed heir of Alexander/Ashoka
			1000 = 0
		}

		childrens_crusade = {
			100 = HF.25800	# The Children's Crusade
			7900 = 0
		}
	}
}

# FROM is the commander of the opposing side
# FROMFROM is the liege of the commander of the opposing side
on_combat_pulse = {
	events = {
	}

	random_events = {
		500 = HFP.11000 # Tombola for battle events

		# # # # Below: Outcommented - some remade, some moved into tombola.
		# # # # Actually, just disabled with always = no for compatching purposes
		# # # # See HFP.11000 for more details....
		old_on_action_block = {
			# 10 = 242 # Killed
			# 20 = 243 # Wounded
			# 10 = 244 # Maimed
			#  5 = 245 # Serious head injury

			# 50 = 246 # Improves martial education
			# 20 = 247 # Flat improvement to martial skill
			# 20 = 248 # Knowledge boost in capital from battle.
			# 10 = 255 # Marshal: Unnecessary violence

			# 25 = 270 # Gain Brave
			# 25 = 271 # Gain Craven
			# 25 = HL.10200 # Lose Craven
			# 25 = HL.10300 # Gain Brave
			# 20 = 272 # Gain Wroth
			# 20 = 273 # Gain Patient

			# 30 = 96500 # Gain Combat Trait 1
			# 15 = 96501 # Gain Combat Trait 2
			# 15 = 96502 # Gain Combat Trait 3
			# 15 = 96503 # Gain Combat Trait 4

			# 50 = TOG.3000 # Becomes Berserker
			# 15 = TOG.3001 # Berserker Maimed
			# 20 = TOG.3002 # Berserker Wounded
			# 15 = TOG.3003 # Berserker Killed
			# 25 = TOG.3004 # Berserker Kills Many
			# 15 = 79009 # Shieldmaiden can save liege on battlefield
			# 15 = 79001 # Shieldmaiden saves liege, but she is injured (small chain)
		}
	}
}

# ROOT is winning army leader
# FROM opponent army leader
on_battle_won_leader = {
	events = {
		HF.49121 # Northern Crusade Flavor Randomizer
		HF.49471 # Reconquista Flavor Randomizer

		HFP.41085 # Add to Crusade pot at the end of every won battle
	}
}

# ROOT is winning army leader
# FROM opponent army leader
on_major_battle_won_leader = {
	events = {
		HF.49121 # Northern Crusade Flavor Randomizer
		HF.49471 # Reconquista Flavor Randomizer

		HFP.41085 # Add to Crusade pot at the end of every won battle
	}
}

# ROOT is the owner (?) of the unit
# FROM is the taken holding title
on_siege_won_leader = {
	events = {
		HF.49121 # Northern Crusade flavor tombola
		HF.49471 # Reconquista flavor tombola
	}
}

# ROOT is the owner of the winning unit
# FROM is the taken holding title
on_siege_over_winner = {
	events = {
		HF.23473 # Destroy Tribal Great Pillar
		HFP.41084 # Piety and Prestige on siege wins
	}
	random_events = {
		50 = HF.46020 # Taking Saintly Burial Site
	}
}

# Character scope
on_birth = {
	events = {
		HF.23019 # Zodiac signs assigned on Hellenic babies
		HF.23750 # Stable Doctrine gives chance to shield newborn heir from harm

		HFP.20068 # Cleanup for children born after father's death
		HFP.20403 # Remove pregnancy_finishing trait, check all special circumstances for child's birth
		HFP.20555 # Clear all hard_pregnancy traits and flags
		HFP.30030 # Apply freckles trait properly
	}

	random_events = {
		child_of_destiny_chance = { # Chance of a newborn child becoming a Child of Destiny
			15000 = 0
			1 = HF.200 # Child becomes Child of Destiny
		}
	}
}

# Character scope
on_adulthood = {
	events = {
		HF.23016 # Reformed pagans with no religious head pick their religious branch
		HF.300 # Child of Destiny reaches adulthood
		HF.23775 # African adulthood rite

		HFP.20592 # Child of troubled pregnancy speaks to mother
	}
}

on_adolescence = { # Checked on 12th birthday.
	events = {
		HF.23020 # Child thinking about his Zodiac sign.

		HFP.20058 # Hollow child special event
	}

	random_events = {
		10 = HFP.30037 # Left-handed character corrected.
	}
}

# Character scope (at 2 months)
on_pregnancy = {
	events = {
		HFP.20401 # Hidden event to set clock for regency during final months.
		HFP.20556 # Umbrella event for positive pregnancy flavor.
	}
}

# Sent to employers of both spouses
# ROOT is employer
# FROM is employers "employee"
# new_character is the other spouse.
on_marriage = {
	events = {
		HF.23777 # Doctrine close kin marriage
	}
}

# Triggers when someone gets imprisoned for any reason
# ROOT is prisoner
# FROM is imprisoner
on_become_imprisoned_any_reason = {
	events = {
		HF.25803 # Childrens' Crusade leader has been captured, disband everything.
		HF.12305 # Legendary Hero has been imprisoned - notifies society members
		HFP.24024 # Elder imprisoned without reason, other Elders upset.
	}
}

# Triggers if someone is released from prison
# ROOT is prisoner
# FROM is imprisoner
on_released_from_prison = {
	events = {
		HF.23446 # Prisoner about to be put through blood games is released before the games start. His jailer has no champion left.
	}
}

# Character scope, isn't dead yet
on_death = {
	events = {
		HF.20014 # On death of sponsor before baptism
		HF.20016 # On death of converter before baptism
		HF.20022 # On death of sponsor after baptism
		HF.20095 # On death of converter after baptism
		HF.20034 # True believer vassal dies before ceremony, heir chooses what to do
		HF.20227 # Character flag inheritance during wars for Coronation
		HF.20228 # Character flag inheritance during wars for Coronation
		HF.20229 # Character flag inheritance during wars for Coronation
		HF.20231 # Notification if priest dies before the end of the Coronation Ceremony
		HF.20374 # Set uncrowned trait to handle real uncrowned Kings not gaining a crown after death
		HF.20393 # On death of vassal, heir prompted to pay homage to crowned liege
		HF.20406 # Artifact inheritance for special crowns / Add hidden traits to make dead kings wear special crowns after the artifact has been transferred
		HF.21001 # Clear sway target on swayer(s)
		HF.22119 # Clear antagonize target on antagonizer(s)
		HF.40000 # Potential Beatification
		HF.40090 # Potential bad Papal beatification
		HF.40100 # Potential Ancestor Worship
		HF.21152 # Clear special interest Sway/Antagonize characters on_death of Swayer/Antagonizer
		HF.23410 # Haruspicy + Bloodthirsty Gods = Read future in human entrails of your sacrifices
		HF.23430 # Bloodthirsty Gods gain points for sacrifying people
		HF.23448 # A contender for the blood games dies before the games start
		HF.23450 # Host of blood games dies before the games start
		HF.23801 # Host of a great tribal festival dies, end the event chain
		HF.10502 # Clears quest target for: Warrior Lodge duel-, wage war-, and recruit child-missions
		HF.25801 # Leader of Childrens' Crusade died before war, disband everything
		HF.560   # Notify Lodge Members that die in duels
		HF.25071 # Clear Warriors of Ukko event troops
		HF.24017 # Murder points for Forge Bloodline Ambition
		HF.24232 # Dragon Blood
		HF.12304 # Legendary Journey: Notify current heir and other warrior lodge members of your untimely demise
		HF.49201 # Reconquista Death
		HF.49208 # Clean up event troops at an old ex-Reconquistadors death

		HFP.10997 # For logging purposes: how many of my commanders died during my lifetime
		HFP.41002 # Change the Official Crusade Recipient if the current one dies
		HFP.41053 # Change Beneficiary when a Beneficiary dies
		HFP.41170 # Check Crusade Dynasty Modifier
		HFP.24019 # Elder has been killed, other Elders hate the killer.
		HFP.19101 # Varangian guards return home upon becoming players
	}

	random_events = {
		2 = HF.40050 # Potential Bad Beatification
		5 = HF.51000 # Crucible steel weapon chain
	}
}

# When a holding is burned down
# ROOT is owner of looting unit
# FROM is looted holding title
on_loot_settlement = {
	events = {
		HF.25503 # Warrior Lodge Mission: Raid province
		HF.23212 # Earned Seaking Bloodline.
	}

	random_events = {
		80 = HF.23214 # Pirating events: hiring local mercenaries.
		60 = HF.23210 # Pirating events: destroying large port city.
		30 = HF.23209 # Pirating events: stealing cattle.
		20 = HF.23207 # Pirating events: taking thralls.
	}
}

# When someone is looting currently in a province
# ROOT is looter
# FROM is province
on_loot_province = {
	random_events = {
		10 = HF.23219  # Pirate events: infiltrate holding.
	}
}

# ROOT is the character
# FROM is the title
# FROMFROM is the old holder
on_new_holder = {
	events = {
		HF.23700 # Apply proper succession laws tied to gender Doctrines when creating a new vassal
		HF.25510 # Clear loot province mission if province has fallen under your control
		# HF.49205 # Reconquista Beneficiary
		HF.23779 # Setting up next god-emperor

		HFP.41053 # Check Beneficiaries
		HFP.42002 # Check titular Crusader titles
		HFP.40033 # Romagna / Papacy check
		HFP.19100 # Make sure the Varangian guard handles its inheritance if not male-lead
	}
}

# ROOT is the character
# FROM is the title
# FROMFROM is the old holder
on_new_holder_inheritance = {
	events = {
		HF.25510 # Clear loot province mission if province has fallen under your control
		# HF.49205 # Reconquista Beneficiary
		HF.23779 # Setting up next god-emperor
		HF.20407 # Inherit special crowns on abdication

		HFP.41087 # Makes sure the Holy Orders doesn't get any part of the pot
		HFP.42002 # Check titular Crusader titles
		HFP.40033 # Romagna / Papacy check
		HFP.19100 # Make sure the Varangian guard handles its inheritance if not male-lead
	}
}

# ROOT is the character
# FROM is the title
# FROMFROM is the old holder
on_new_holder_usurpation = {
	events = {
		HF.20414 # Hidden check to move special crowns to holder of the title they are tied to
		HF.25510 # Clear loot province mission if province has fallen under your control
		# HF.49205 # Reconquista Beneficiary
		HF.20417 # Clear uncrowned modifier

		HFP.42002 # Check titular Crusader titles
		HFP.40033 # Romagna / Papacy check
		HFP.19100 # Make sure the Varangian guard handles its inheritance if not male-lead
	}
}

# Character may still be a landless ruler!
# ROOT is unlanded character
on_unlanded = {
	events = {
		HFP.44008 # Livonian Order disappears
		HFP.44009 # Teutonic State reverts to Teutonic Order
	}
}

# Character converts religion, for whatever reason
# ROOT is the character after conversion
# FROM scope has the old religion
on_character_convert_religion = {
	events = {
		# Baptism - Mass Conversion checks
		HF.20012 # On conversion of sponsor during baptism
		HF.20018 # On conversion of converter after baptism
		HF.20020 # On conversion of sponsor after baptism
		HF.20027 # On baptism of deceitful player, maintain previous faith
		HF.20408 # Ruler has converted in the middle of coronation, stop everything
		HF.20416 # Cleanup uncrowned modifiers when converting away from Catholicism/Fraticelli
		HF.23033 # Acquire Pagan religious branch when converting to a religion that has No Head
		HF.23034 # Acquire Gender law when converting to Matriarchal/Equal/Patriarchal religion
		HF.23458 # Host of Blood Games converts to non-Bloodthirsty religion in the middle of the tournament
		# Reconquista
		HF.49202 # Clean up event for religion conversion in the Reconquista
		# Crusades
		HFP.41001 # Checks if Official Crusade Recipient is still a valid target
	}
}

# FROM is attacker
# ROOT is defender
on_war_started = {
	events = {
		HF.24013 # Corsair ships for special bloodline
		HF.23803 # Interrupt Great Tribal Festival
		HF.24021 # Reset peaceful_years variable for Forged Bloodlines
		HF.50000 # Ask Warrior Lodge member for help in war
	}
}

# FROM is attacker
# ROOT is defender
on_war_ended_victory = {
	events = {
		HF.23012 # Clean-up haruspicy modifiers
		HF.24010 # Teuta bloodline applied
		HF.24250 # Matilda bloodline applied
		HF.25002 # Clear warriors of Ukko cooldown
		HF.25035 # Clear Call to Glory effects
		HF.24018 # Won Wars Bloodline counter
		HF.10515 # Complete Wage War mission, if you went about it some non-conventional way
		HF.50100 # Warrior Lodge War Aid conclusion

		HFP.23025 # Remove stolen spouse from concubinage
	}
}

# FROM is attacker
# ROOT is defender
on_war_ended_whitepeace = {
	events = {
		HF.23012 # Clean-up haruspicy modifiers
		HF.25002 # Clear warriors of Ukko cooldown
		HF.25035 # Clear Call to Glory effects
		HF.10516 # Completes Wage War mission for Warrior Lodge members
		HF.50101 # Warrior Lodge War Aid conclusion
	}
}

# FROM is attacker
# ROOT is defender
on_war_ended_defeat = {
	events = {
		HF.23012 # Clean-up haruspicy modifiers
		HF.25002 # Clear warriors of Ukko cooldown
		HF.25035 # Clear Call to Glory effects
		HF.24019 # Won Wars Bloodline counter
		HF.10517 # Completes Wage War mission for Warrior Lodge members
		HF.50102 # Warrior Lodge War Aid conclusion

		HFP.23026 # Remove stolen spouse from concubinage
	}
}

# FROM is attacker
# ROOT is defender
on_war_ended_invalid = {
	events = {
		HF.23012 # Clean-up haruspicy modifiers
		HF.25002 # Clear warriors of Ukko cooldown
		HF.25035 # Clear Call to Glory effects
		HF.10518 # Clear mission to Wage War
		HF.50101 # Warrior Lodge War Aid conclusion
	}
}

# ROOT is builder
# FROM is title
on_settlement_construction_completed = {
	events = {
		HF.24022 # Architect Bloodline check
		HF.24023 # Castellan Bloodline check
		HF.24024 # Monumental Bloodline check
	}
}

# Fires every two years for characters who are members of any society
on_society_bi_yearly_pulse = {
	events = {
		HF.10054 # Warrior Lodges: Maintenance: Rank up event (AI only)
		HF.25499 # Warrior Lodges: quest tombola
	}

	random_events = {
		75 = HF.14001 # Warrior Lodges: Teaching Moment
		70 = HF.25250 # Flyting contest during feast
		40 = HF.25600 # Warrior Lodges Ritual Hunting
		20 = HF.25200 # Arm-wrestling during feast
		10 = HF.25280 # Drinking games
		 5 = HF.25226 # Dice-throwing during feast

		warrior_lodge_heroes_train_other_members = {
			delay = 40
			75 = HF.500 # Train other member
			25 = 0
		}

		warrior_lodge_members_duel_enemies = {
			delay = 24
			80 = 0
			40 = HF.550 # Warrior Lodge members with high PCS might go out and duel random people to the death
		}
	}
}

# A character leaves or is forced to leave a society
# ROOT is character
# FROM is society
on_character_leave_society = {
	events = {
		HF.25036 # Clear Call to Glory effects
		HF.25071 # Clear Warriors of Ukko event troops
	}
}

# A character asks to join a society. Only works on player
# ROOT is character
# FROM is society
on_character_ask_to_join_society = {
	events = {
		HF.10003 # Warrior Lodge Hero will inform new recruit about the initation duel
	}
}

# The last member of a society leaves the society and is not replaced
# ROOT is character
# FROM is society
on_society_destroyed = {
	events = {
		HF.10053 # Warrior Lodges: Maintenance: Society tries to respawn if it died
	}
}

# A character selects a focus
# ROOT is character
on_focus_selected = {
	events = {
		HF.25506 # Changing to War focus - warrior lodge quest
		HF.25507 # Changing to Hunting focus - warrior lodge quest
		HF.25508 # Changing to Rulership focus - warrior lodge quest
		HF.25509 # Changing to Carousing focus - warrior lodge quest
	}
}

# ROOT is new artifact owner
# FROM is inherited artifact
# FROMFROM is previous owner
on_artifact_inheritance = {
	events = {
		HFP.16004 # CleanSlate meta event to deal with all artifact inheritance
	}
}

# Triggers when the society progress is increased / set to the value 100
# ROOT is the affected society grandmaster
# FROM is the affected society
on_society_progress_full = {
	events = {
		HF.11999 # Prepare legendary Warrior Lodge journey
	}
}

# Triggers for all characters in a unit (leading a flank or subunit) when it enters a province
# ROOT is the affected character
on_unit_entering_province = {
	events = {
		# HF.49121 # Northern Crusade flavor

		HFP.42320 # Shepherds Tombola
	}
}

# Triggers when Crusade preparation starts
# ROOT is the religious head
# Warning - This fires for all Crusades / Jihads / Great Holy Wars upon creation regardless if they have a preparation phase - Use "uses_new_crusade = yes" trigger to limit effects
on_crusade_preparation_starts = {
	events = {
		HF.49000 # Fourth Crusade Event

		HFP.41000 # Set Official Recipient
		HFP.41003 # Crusade preparation pre-Announcement event
		HFP.41005 # Pledge preperation start event - AI only
		HFP.41021 # Pope asking a player owing him a favor, to pledge
		HFP.41070 # Getting AI defense pledges
		HFP.41080 # Initial Rewards
		HFP.41081 # Seeking Christian Monetary support - AI
	}
}

# Triggers when Crusade preparation ends
# ROOT is the religious head
on_crusade_launches = {
	events = {
		HF.49006 # The Pope declares the launch of the Fourth Crusade

		HFP.41008 # Crusade Launch pre-announcement event
		HFP.41083 # Giving out gold at the start of a Crusade
		HFP.41130 # Pope finds people to be disappointed in - AI only
		HFP.41140 # Pope checking if anyone hasn't been properly Crusading
		HFP.49122 # For dealing with pesky NAP breakers...
	}
}

# Triggers when a Crusade is canceled
# ROOT is the religious head
on_crusade_canceled = {
	events = {
		HFP.41010 # Crusade fail to launch pre-announcement event
	}
}

# Triggers once a month while a Crusade is preparing or active
# ROOT is the religious head
on_crusade_monthly = {
	events = {
		HFP.41006 # Pledge monthly event - AI only
		HFP.41012 # Crusade cancelled check
		HFP.41020 # Pope forcing people owing him a favor to pledge - AI only
		HFP.41050 # The Pope decides to ask a player for their pledge for the Crusade
		HFP.41052 # Recheck Beneficiary every month
		HFP.41055 # Monthly Pulse check
		HFP.41073 # Defense severely outmatched - AI only
		HFP.41074 # Any character owing a favor of the same religion will pledge to the defense - AI only
		HFP.41086 # No Pot rewards for Holy Orders - AI only
		HFP.42200 # Monthly Pulse Crusade Events - Tombola
	}
}

# Triggers when the target of a crusade changes (either through script or invalidation, or the target's heir inheriting). Happens immediately after the crusade_target_char and crusade_target_title scopes are updated
# ROOT is the religious head
# FROM is the previous target character
# FROMFROM is the previous target title
# FROMFROMFROM is the character who made the change, if via diplomatic action. Otherwise not defined
on_crusade_target_changes = {
	events = {
		HFP.41000 # Set Official Recipient
		HFP.41072 # Get new pledges, if the target is changed to someone of another religion - AI only
	}
}

# Triggers when a character pledges their participation. Triggers even if the war has started. Does *not* trigger when the character is auto-pledged due to joining the war
# ROOT is the character pledging
on_pledge_crusade_participation = {
	events = {
		HFP.41030 # Random Event Tombola when you pledge to join the Crusade - Player Only
	}
}

# Triggers when a character unpledges their participation, including the automatic unpledging on death and conversion
# ROOT is the character unpledging
on_unpledge_crusade_participation = {
	events = {
		HFP.41040 # Random Event Tombola when you remove your pledge from the Crusade - Player Only
	}
}

# Triggers when someone is excommunicated via the hardcoded diplomatic interaction
# ROOT is excommunicated person
# FROM is asker
# FROMFROM is Pope
on_excommunicate_interaction = {
	events = {
		HFP.23002 # Add opinion modifier to prevent excommunication spamming
	}
}