namespace = QOL_new_character

#Events:
# 
# 0001 - Last ruler died
# 0002 - I decided to move on

QOL_new_character.0001 = {
	type = character_event
	title = QOL_new_character.0001.t
	desc = QOL_new_character.0001.desc

	theme = death

	left_portrait = {
		character = root # is now scope:chosen_character
		triggered_animation = {
			trigger = { gauge_physique < fine_health }
			animation = worry
		}
		triggered_animation = {
			trigger = { total_skill >= 90 }
			animation = thinking
		}
		triggered_animation = {
			trigger = { total_skill < 60 }
			animation = personality_irrational
		}
		animation = idle
	}
	right_portrait = {
		character = scope:last_player
		triggered_animation = {
			trigger = { scope:last_player.piety_level >= high_piety_level }
			animation = personality_zealous
		}
		animation = dead
	}

	trigger = {
		exists = var:mr_qol_last_rand_player
    }

    immediate = {
		var:mr_qol_last_rand_player = { save_scope_as = last_player }
	}

	option = {
		name = QOL_new_character.0001.confirm
	}

	after = {
		clear_saved_scope = last_player
	}
}