﻿namespace = advcm_events

#Character Naming
advcm_events.1 = {
	type = character_event
	title = advcm_events.1.title
	desc = advcm_events.1.desc
	theme = default
	left_portrait = {
		character = scope:change_name
		animation = personality_bold
	}

	widgets = {
		widget = {
			gui = "event_window_widget_name_child"
			container = "dynamic_birth_name"
			controller = name_character
			setup_scope = { scope:change_name = { save_scope_as = name_character_target } }
		}
	}

	option = {
		name = advcm_events.1.option
	}
}

advcm_events.2 = {
	type = character_event
	title = advcm_events.2.title
	desc = advcm_events.2.desc
	theme = default
	right_portrait = root
	
	artifact = {
		target = scope:selected_artifact
		position = lower_center_portrait
	}

	widget = {
		gui = "event_window_widget_enter_text"
		container = "dynamic_birth_name"
		controller = {
			type = text
			data = {
				key = test_saved_text
				default = architect_advcm_desc
			}
		}
		setup_scope = {
			root = { save_scope_as = text_target }
		}
	}

	option = {
		name = artifact_new_desc
		store_localized_text_in_death = test_saved_text
		scope:selected_artifact = {
			set_artifact_description = advcm_artifact_desc
		}
		remove_variable = test_saved_text
	}
	
	option = {
		name = artifact_append_desc
		store_localized_text_in_death = test_saved_text
		scope:selected_artifact = {
			set_artifact_description = advcm_artifact_desc_append
		}
		remove_variable = test_saved_text
	}
}

advcm_events.3 = {
	type = character_event
	title = advcm_events.2.title
	desc = advcm_events.2.desc
	theme = default
	right_portrait = root

	widget = {
		gui = "event_window_widget_enter_text"
		container = "dynamic_birth_name"
		controller = {
			type = text
			data = {
				key = test_saved_text
				default = architect_advcm_desc
			}
		}
		setup_scope = {
			root = { save_scope_as = text_target }
		}
	}

	option = {
		name = artifact_new_desc
		root.dynasty = {
			set_dynasty_name = advcm_de_dynasty_prefix
		}
		root.house = {
			set_house_name = advcm_de_house_prefix
		}
	}
	
	option = {
		name = artifact_append_desc
		store_localized_text_in_death = test_saved_text
		scope:selected_artifact = {
			set_artifact_description = advcm_artifact_desc_append
		}
		remove_variable = test_saved_text
	}
}

advcm_events.999 = {
    orphan = yes
    hidden = yes
	type = character_event
    immediate = {
        fix_variable_error = { X = artifact_modifier_list }
		fix_variable_error = { X = advcm_commander_traits }
		fix_variable_error = { X = advcm_title_selected_char }
		fix_variable_error = { X = artifact_quality_list }
		fix_variable_error = { X = advcm_other_traits }
		fix_variable_error = { X = weapon_type_list }
		fix_variable_error = { X = court_type_list }
		fix_variable_error = { X = advcm_health_traits}
		fix_variable_error = { X = armor_type_list }
		fix_variable_error = { X = advcm_fame_traits}
		fix_variable_error = { X = table}
		fix_variable_error = { X = diwan }
		fix_variable_error = { X = test }
		fix_variable_error = { X = regalia_type_list }
		fix_variable_error = { X = advcm_lifestyle_traits }
		fix_variable_error = { X = advcm_physical_traits }
		fix_variable_error = { X = change_name }
		fix_variable_error = { X = selected_artifact }
		fix_variable_error = { X = artifact_quality }
		fix_variable_error = { X = selected_culture}
		fix_variable_error = { X = innovation_culture }
		fix_variable_error = { X = selected_faith }
		fix_variable_error = { X = artifact_modifier}
		fix_variable_error = { X = artifact_type}
		fix_variable_error = { X = advcm_societal_tradition_list}
		fix_variable_error = { X = advcm_regional_tradition_list}
		fix_variable_error = { X = advcm_combat_tradition_list}
		fix_variable_error = { X = advcm_ritual_tradition_list}
		fix_variable_error = { X = religion_list}
		fix_variable_error = { X = advcm_ritual_tradition_list}
		fix_variable_error = { X = advcm_realm_tradition_list}
		fix_variable_error = { X = danger}
		fix_variable_error = { X = travel}
		fix_variable_error = { X = wit}
		fix_variable_error = { X = advcm_character_spawner_none}
		fix_variable_error = { X = advcm_seduce_scheme_power_mult}
		fix_variable_error = { X = advcm_character_spawner_preset_list}
		fix_variable_error = { X = advcm_cc_chronicler}
		fix_variable_error = { X = advcm_cc_chief_eunuch}
		fix_variable_error = { X = advcm_cc_seneschal}
		fix_variable_error = { X = advcm_cc_court_scholar}
		fix_variable_error = { X = advcm_cc_court_gardener}
		fix_variable_error = { X = advcm_cc_court_musician}
		fix_variable_error = { X = advcm_cc_court_jester}
		fix_variable_error = { X = advcm_cc_court_artificer}
		fix_variable_error = { X = advcm_cc_court_physician}
		fix_variable_error = { X = advcm_cc_court_poet}
		fix_variable_error = { X = advcm_cc_antiquarian}
		fix_variable_error = { X = advcm_cc_caravan_master}
		fix_variable_error = { X = advcm_cc_executioner}
		fix_variable_error = { X = advcm_cc_champion}
		fix_variable_error = { X = advcm_cc_bodyguard}
		fix_variable_error = { X = advcm_cc_lady_in_waiting}
		fix_variable_error = { X = advcm_cc_court_tutor}
		fix_variable_error = { X = advcm_cc_high_almoner}
		fix_variable_error = { X = advcm_cc_royal_architect}
		fix_variable_error = { X = advcm_cc_chief_qadi}
		fix_variable_error = { X = advcm_cc_master_assassin}
		fix_variable_error = { X = advcm_cc_master_of_horse}
		fix_variable_error = { X = advcm_cc_master_of_hunt}
		fix_variable_error = { X = advcm_cc_wet_nurse}
		fix_variable_error = { X = advcm_cc_keeper_of_swans}
		fix_variable_error = { X = advcm_cc_OP}
		fix_variable_error = { X = advcm_cc_garuda}
		fix_variable_error = { X = advcm_cc_food_taster}
		fix_variable_error = { X = advcm_cc_cupbearer}
		fix_variable_error = { X = advcm_cc_cultural_emissary}


		
    }
}
	
	

