#
###################################################
## Wandering Lyonese Monk
## by Ewan Cowhig Croft
###################################################
#
## We really just use this to contain our variables & variable lists.
#
#story_lyonese_monk = {
#
#	on_setup = {
#		# Start tracking how many events we've tried to fire from within our current_phase.
#		set_variable = {
#			name = lm_phase_tally
#			value = 0
#		}
#		# Set our school score variables.
#		set_variable = {
#			name = school_elipandic
#			value = 0
#		}
#		## Slight edge for the Felicitous school, as scope:acolyte is an explicit Felix of Urgell fan.
#		set_variable = {
#			name = school_felicitous
#			value = 1
#		}
#		set_variable = {
#			name = school_radical
#			value = 0
#		}
#	}
#
#	on_owner_death = {
#		if = {
#			limit = { exists = story_owner.player_heir }
#			story_owner = {
#				# Transfer flags.
#				if = {
#					limit = { has_character_flag = fp2_lyonese_monk_entered_controversy_flag }
#					player_heir = { add_character_flag = fp2_lyonese_monk_entered_controversy_flag }
#				}
#				if = {
#					limit = { has_character_flag = fp2_lyonese_monk_entered_schism_flag }
#					player_heir = { add_character_flag = fp2_lyonese_monk_entered_schism_flag }
#				}
#				save_scope_as = dead_owner
#				# Transfer over scopes & prepare to optionally send the story itself.
#				player_heir = {
#					save_scope_as = acolyte_host
#					trigger_event = {
#						id = fp2_lyonese_monk.0011
#						days = 7
#					}
#				}
#			}
#		}
#		else = {
#			var:acolyte = { silent_disappearance_effect = yes }
#			end_story = yes
#		}
#	}
#
#	on_end = {
#		story_owner = {
#			# Wipe them tracking flags.
#			remove_character_flag ?= fp2_lyonese_monk_entered_controversy_flag
#			remove_character_flag ?= fp2_lyonese_monk_entered_schism_flag
#		}
#	}
#
#	#Maintenance group
#	effect_group = {
#		days = 1
#		trigger = {
#			story_owner = { is_landed = no }
#		}
#		triggered_effect = {
#			trigger = { always = yes }
#			effect = {
#				#You became a landless adventurer/administrative! Ending story prematurely.
#				story_owner = { save_scope_as = story_owner }
#				debug_log = "Reformer invalidated"
#				debug_log_scopes = yes
#				end_story = yes
#			}
#		}
#	}
#}
#