story_cycle_violet_poet = {
	# by Nick Meredith
	visible = yes

	icon = {
		trigger = {
			always = yes
		}
		reference = "gfx/interface/icons/artifact/artifact_chronicle.dds"
	}

	visualization = {
		traits = {
			violet_poet
		}
		artifact = { variable_name = "artifact" label = "POETRY_BOOK_LABEL" }
	}

	on_setup = {
		set_variable = {
			name = violet_poet
			value = story_owner
		}
	}

	on_end = {
		debug_log = "Violet Poet story cycle ended on:"
		debug_log_date = yes
	}

	on_owner_death = {
		if = { #Pass on to Wallada's heir but NOT past her heir
			limit = {
				exists = story_owner.player_heir
				story_owner = {
					this = character:andalusian_0003
				}
			}
			make_story_owner = story_owner.player_heir
			set_variable = {
				name = violet_poet
				value = story_owner
			}
		}
		# Or destroy
		else = {
			end_story = yes
			remove_variable = violet_poet
		}
	}

	# Events for the Violet Poet
	effect_group = {
		days = { 100 200 }

		trigger = {
			story_owner = {
				is_available = yes
				is_alive = yes
				is_adult = yes
			}
		}

		first_valid = {
			triggered_effect = {
				trigger = { always = yes }
				effect = {
					save_scope_as = story_scope
					story_owner = {
						trigger_event = {
							on_action = ongoing_violet_poet_owner_events
						}
					}
				}
			}
		}
	}
}
