﻿#fp2_lyonese_monk_events_cycle = {
#	effect = {
#		# Should things invalidate?
#		if = {
#			limit = { fp2_lyonese_monk_0000_valid_for_events_trigger = no }
#			# Scope:acolyte has died or is no longer your courtier or vassal.
#			if = {
#				limit = { fp2_lyonese_monk_0000_out_of_realm_trigger = yes }
#				trigger_event = fp2_lyonese_monk.0021
#			}
#			# Your incarceration causes scope:acolyte to disappear - and the story along with HerHim.
#			else_if = {
#				limit = { fp2_lyonese_monk_0000_out_of_freedom_trigger = yes }
#				trigger_event = fp2_lyonese_monk.0051
#			}
#			# The destruction of the Papacy leaves little room in everyone's hearts for the minutiae of doctrine.
#			else_if = {
#				limit = { fp2_lyonese_monk_0000_out_of_popes_trigger = yes }
#				trigger_event = fp2_lyonese_monk.0041
#			}
#			# You or scope:acolyte are no longer the correct faith.
#			else_if = {
#				limit = { fp2_lyonese_monk_0000_out_of_faith_trigger = yes }
#				trigger_event = fp2_lyonese_monk.0031
#			}
#		}
#		# If not, run the usual.
#		else = {
#			# Phase: Private Teachings
#			## Gateway event
#			if = {
#				limit = { scope:story.var:lm_phase_tally = 0 }
#				trigger_event = fp2_lyonese_monk.0201
#			}
#			## Random events
#			else_if = {
#				limit = {
#					scope:story.var:lm_phase_tally >= 1
#					scope:story.var:lm_phase_tally <= 3
#				}
#				trigger_event = { on_action = fp2_lyonese_monk_events_phase_teachings_events }
#			}
#			## Gateway event
#			else_if = {
#				limit = { scope:story.var:lm_phase_tally = 4 }
#				trigger_event = fp2_lyonese_monk.0241
#			}
#			# Phase: Public Controversy
#			## Gateway event
#			else_if = {
#				limit = { scope:story.var:lm_phase_tally = 5 }
#				trigger_event = fp2_lyonese_monk.0401
#			}
#			## Random events
#			else_if = {
#				limit = {
#					scope:story.var:lm_phase_tally >= 6
#					scope:story.var:lm_phase_tally <= 8
#				}
#				trigger_event = { on_action = fp2_lyonese_monk_events_phase_controversy_events }
#			}
#			## Gateway event
#			else_if = {
#				limit = { scope:story.var:lm_phase_tally = 9 }
#				trigger_event = fp2_lyonese_monk.0441
#			}
#			# Phase: Schism
#			## Gateway event
#			else_if = {
#				limit = { scope:story.var:lm_phase_tally = 10 }
#				trigger_event = fp2_lyonese_monk.0601
#			}
#			## Random events
#			else_if = {
#				limit = {
#					scope:story.var:lm_phase_tally >= 11
#					scope:story.var:lm_phase_tally <= 13
#				}
#				trigger_event = { on_action = fp2_lyonese_monk_events_phase_schism_events }
#			}
#			## Gateway event
#			else = { trigger_event = fp2_lyonese_monk.0641 }
#		}
#	}
#}
#
#fp2_lyonese_monk_events_phase_teachings_events = {
#	random_events = {
#		100 = fp2_lyonese_monk.0211
#		100 = fp2_lyonese_monk.0221
#		100 = fp2_lyonese_monk.0231
#	}
#	fallback = fp2_lyonese_monk_events_cycle_no_valid_events_fallback
#}
#
#fp2_lyonese_monk_events_phase_controversy_events = {
#	random_events = {
#		100 = fp2_lyonese_monk.0411
#		100 = fp2_lyonese_monk.0421
#		100 = fp2_lyonese_monk.0431
#	}
#	fallback = fp2_lyonese_monk_events_cycle_no_valid_events_fallback
#}
#
#fp2_lyonese_monk_events_phase_schism_events = {
#	random_events = {
#		100 = fp2_lyonese_monk.0611
#		100 = fp2_lyonese_monk.0621
#		100 = fp2_lyonese_monk.0631
#	}
#	fallback = fp2_lyonese_monk_events_cycle_no_valid_events_fallback
#}
#
#fp2_lyonese_monk_events_cycle_no_valid_events_fallback = {
#	effect = {
#		# Should things invalidate?
#		if = {
#			limit = { fp2_lyonese_monk_0000_valid_for_events_trigger = no }
#			# Scope:acolyte has died or is no longer your courtier or vassal.
#			if = {
#				limit = { fp2_lyonese_monk_0000_out_of_realm_trigger = yes }
#				trigger_event = fp2_lyonese_monk.0021
#			}
#			# Your incarceration causes scope:acolyte to disappear - and the story along with HerHim.
#			else_if = {
#				limit = { fp2_lyonese_monk_0000_out_of_freedom_trigger = yes }
#				trigger_event = fp2_lyonese_monk.0051
#			}
#			# The destruction of the Papacy leaves little room in everyone's hearts for the minutiae of doctrine.
#			else_if = {
#				limit = { fp2_lyonese_monk_0000_out_of_popes_trigger = yes }
#				trigger_event = fp2_lyonese_monk.0041
#			}
#			# You or scope:acolyte are no longer the correct faith.
#			else_if = {
#				limit = { fp2_lyonese_monk_0000_out_of_faith_trigger = yes }
#				trigger_event = fp2_lyonese_monk.0031
#			}
#		}
#		# If not, run the usual.
#		else = {
#			# Increment the incident tally by 1 if we're not at a cap event.
#			if = {
#				limit = {
#					NOR = {
#						scope:story.var:lm_phase_tally = 0
#						scope:story.var:lm_phase_tally = 4
#						scope:story.var:lm_phase_tally = 5
#						scope:story.var:lm_phase_tally = 9
#						scope:story.var:lm_phase_tally = 10
#					}
#				}
#				scope:story = {
#					change_variable = {
#						name = lm_phase_tally
#						add = 1
#					}
#				}
#			}
#			# Run the cycle again.
#			trigger_event = {
#				on_action = fp2_lyonese_monk_events_cycle
#				months = { 2 5 }
#			}
#		}
#	}
#}
#