
namespace = nomads


#Th'aal Hask'Guron, The Champion
country_event = {
	id = nomads.1555
	title = "nomads.1555.name"
	desc = "nomads.1555.desc"
	show_sound = nom_paragon_6_thaal_huskgoron_the_champion
	is_triggered_only = yes

	picture = GFX_leader_recruitment_bg_renowned
	auto_opens = no
	event_window_type = leader_recruit
	notification_event_icon = "GFX_message_leader_recruitment_champion"

	immediate = {
		ethic_leader_creator = {
			SPECIES_CLASS = AI
			LEADER_PORTRAIT = par_renown_21
			CLASS = commander
			TIER = leader_tier_renowned
			NAME = NAME_nomadic_champion
			LEVEL = 4
			GENDER = male
			IMMORTAL = no
			ETHIC = authoritarian
			DESC = DESC_nomadic_champion
			CATCH_PHRASE = catch_phrase_nomadic_champion
		}
		last_created_leader = {
			add_trait = {
				trait = subclass_commander_general
				consume_selection = yes
			}
			add_trait = {
				trait = leader_trait_butcher
				consume_selection = yes
			}
			add_trait = {
				trait = leader_trait_dreaded_2
				consume_selection = yes
			}
			add_trait = {
				trait = leader_trait_hardy
				consume_selection = yes
			}
			add_trait = {
				trait = leader_trait_victory_or_death_2
				consume_selection = yes
			}
			add_trait = {
				trait = leader_trait_nomadic_champion
				consume_selection = yes
			}
			set_age = 24
		}
		set_variable = {
			which = champion_trophies_collected
			value = 0
		}
	}

	picture_event_data = {
		portrait = event_target:ethic_leader
		room = ethic_spaceship_room
	}

	option = {
		name = DISMISS
		tag = dismiss_leader
		hidden_effect = {
			remove_global_flag = nomadic_champion # Put this leader back into the pool, so player can still get them
			ethic_leader_kill_effect = yes
			set_country_flag = dismissed_nomadic_champion
		}
	}
	option = {
		name = nomads.1555.a
		response_text = nomads.1555.a.response
		is_dialog_only = yes
	}
	option = {
		name = nomads.1555.b
		response_text = nomads.1555.b.response
		is_dialog_only = yes
	}
	option = {
		name = nomads.1555.c
		response_text = nomads.1555.c.response
		is_dialog_only = yes
	}
	option = {
		name = nomads.1555.d
		response_text = nomads.1555.d.response
		is_dialog_only = yes
	}
	option = {
		trigger = {
			species_portrait = mam9
		}
		name = nomads.1555.e
		response_text = nomads.1555.e.response
		is_dialog_only = yes
	}
	option = {
		trigger = {
			species_portrait = pro2
		}
		name = nomads.1555.f
		response_text = nomads.1555.f.response
		is_dialog_only = yes
	}
	option = {
		name = HIRE
		tag = hire_leader
		random_owned_colony = {
			limit = {
				is_capital = yes
			}
			add_deposit = d_trophy_hall
		}
		hidden_effect = {
			ethic_leader_hire_effect = {
				GLOBAL_EVENT_TARGET = nomadic_champion
			}
			set_country_flag = hired_nomadic_champion
			set_global_flag = hired_nomadic_paragon_5
		}
	}
}

# Orun Veyth, The Revenant
country_event = {
	id = nomads.1505
	title = "nomads.1505.name"
	desc = "nomads.1505.desc"
	show_sound = nom_paragon_1_orun_veyth_the_revenant
	is_triggered_only = yes

	picture = GFX_leader_recruitment_bg_renowned
	auto_opens = no
	event_window_type = leader_recruit
	notification_event_icon = "GFX_message_leader_recruitment_revenant"

	immediate = {
		ethic_leader_creator = {
			SPECIES_CLASS = random_non_machine
			LEADER_PORTRAIT = par_renown_17
			CLASS = commander
			TIER = leader_tier_renowned
			NAME = NAME_nomadic_revenant
			LEVEL = 4
			GENDER = indeterminable
			IMMORTAL = no
			ETHIC = egalitarian
			DESC = DESC_nomadic_revenant
			CATCH_PHRASE = catch_phrase_nomadic_revenant
		}
		last_created_leader = {
			add_trait = {
				trait = subclass_commander_admiral
				consume_selection = yes
			}
			add_trait = {
				trait = leader_trait_unyielding
				consume_selection = yes
			}
			add_trait = {
				trait = leader_trait_artillerist
				consume_selection = yes
			}
			add_trait = {
				trait = leader_trait_volatile
				consume_selection = yes
			}
			add_trait = {
				trait = leader_trait_adaptable
				consume_selection = yes
			}
			add_trait = {
				trait = leader_trait_nomadic_revenant
				consume_selection = yes
			}
			set_age = 42
		}
	}

	picture_event_data = {
		portrait = event_target:ethic_leader
		room = ethic_spaceship_room
	}

	option = {
		name = DISMISS
		tag = dismiss_leader
		hidden_effect = {
			remove_global_flag = nomadic_revenant # Put this leader back into the pool, so player can still get them
			ethic_leader_kill_effect = yes
			set_country_flag = dismissed_nomadic_revenant
		}
	}
	option = {
		name = nomads.1505.a
		response_text = nomads.1505.a.response
		is_dialog_only = yes
	}
	option = {
		name = nomads.1505.b
		response_text = nomads.1505.b.response
		is_dialog_only = yes
	}
	option = {
		name = nomads.1505.c
		response_text = nomads.1505.c.response
		is_dialog_only = yes
	}
	option = {
		name = nomads.1505.d
		response_text = nomads.1505.d.response
		is_dialog_only = yes
	}
	option = {
		trigger = {
			species_portrait = humanoid_02
		}
		name = nomads.1505.e
		response_text = nomads.1505.e.response
		is_dialog_only = yes
	}
	option = {
		name = HIRE
		tag = hire_leader
		custom_tooltip = nomads.1505.hire_custom_tooltip
		hidden_effect = {
			ethic_leader_hire_effect = {
				GLOBAL_EVENT_TARGET = nomadic_revenant
			}
			set_country_flag = hired_nomadic_revenant
			set_variable = {
				which = revenant_oath
				value = 1
			}
			set_global_flag = hired_nomadic_paragon_1
		}
	}
}
