############################################################
############# LEGENDARY BLOODLINES SHOWDOWN ################
############################################################

has_a_warrior_lodge_battle_blade_trigger = {
	any_artifact = {
		OR = {
			artifact_type = sword_1_battlefield
			artifact_type = sword_2_battlefield
			artifact_type = sword_3_battlefield
		}
	}
}

weapon_was_found_on_battlefield_trigger = {
	OR = {
        artifact_type = sword_1_battlefield
        artifact_type = sword_2_battlefield
        artifact_type = sword_3_battlefield
        has_artifact_flag = battlefield_loot
    }
}
is_available_hero_trigger = {
    is_alive = yes
    NOT = { character = ROOT }
    prisoner = no
}

has_killed_at_least_1_trigger = {
	any_kill_list_character = {
	 	death_reason = death_legendary_win_duel
	}
}
has_killed_at_least_3_trigger = {
	any_kill_list_character = {
	 	count = 3
	 	death_reason = death_legendary_win_duel
	}
}
has_killed_at_least_5_trigger = {
	any_kill_list_character = {
	 	count = 5
	 	death_reason = death_legendary_win_duel
	}
}
has_killed_at_least_7_trigger = {
	any_kill_list_character = {
	 	count = 7
	 	death_reason = death_legendary_win_duel
	}
}
has_killed_at_least_10_trigger = {
	any_kill_list_character = {
	 	count = 10
	 	death_reason = death_legendary_win_duel
	}
}

#### For creating bloodlines in general ####
### ROOT is the holder. FROM is the bloodline ###
### This trigger should be used in bloodline defines themselves, in combination with set_bloodline_founder_religion_flag_effect ###
religion_same_as_bloodline_founder_trigger = {
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_norse_pagan_religion }
		}
		ROOT = { show_scope_change = no religion_openly_norse_or_reformed_trigger = yes }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_baltic_pagan_religion }
		}
		ROOT = { show_scope_change = no religion_openly_baltic_or_reformed_trigger = yes }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_finnish_pagan_religion }
		}
		ROOT = { show_scope_change = no religion_openly_finnish_or_reformed_trigger = yes }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_slavic_pagan_religion }
		}
		ROOT = { show_scope_change = no religion_openly_slavic_or_reformed_trigger = yes }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_tengri_pagan_religion }
		}
		ROOT = { show_scope_change = no religion_openly_tengri_or_reformed_trigger = yes }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_west_african_pagan_religion }
		}
		ROOT = { show_scope_change = no religion_openly_west_african_or_reformed_trigger = yes }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_zun_pagan_religion }
		}
		ROOT = { show_scope_change = no religion_openly_zun_or_reformed_trigger = yes }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_bon_pagan_religion }
		}
		ROOT = { show_scope_change = no religion_openly_bon_or_reformed_trigger = yes }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_hellenic_pagan_religion }
		}
		ROOT = { show_scope_change = no religion_openly_hellenic_or_reformed_trigger = yes }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_aztec_pagan_religion }
		}
		ROOT = { show_scope_change = no religion_openly_aztec_or_reformed_trigger = yes }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_catholic_religion }
		}
		ROOT = { show_scope_change = no religion = catholic }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_cathar_religion }
		}
		ROOT = { show_scope_change = no religion = cathar }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_fraticelli_religion }
		}
		ROOT = { show_scope_change = no religion = fraticelli }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_waldensian_religion }
		}
		ROOT = { show_scope_change = no religion = waldensian }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_lollard_religion }
		}
		ROOT = { show_scope_change = no religion = lollard }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_orthodox_religion }
		}
		ROOT = { show_scope_change = no religion = orthodox }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_bogomilist_religion }
		}
		ROOT = { show_scope_change = no religion = bogomilist }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_monothelite_religion }
		}
		ROOT = { show_scope_change = no religion = monothelite }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_iconoclast_religion }
		}
		ROOT = { show_scope_change = no religion = iconoclast }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_paulician_religion }
		}
		ROOT = { show_scope_change = no religion = paulician }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_miaphysite_religion }
		}
		ROOT = { show_scope_change = no religion = miaphysite }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_monophysite_religion }
		}
		ROOT = { show_scope_change = no religion = monophysite }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_nestorian_religion }
		}
		ROOT = { show_scope_change = no religion = nestorian }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_messalian_religion }
		}
		ROOT = { show_scope_change = no religion = messalian }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_sunni_religion }
		}
		ROOT = { show_scope_change = no religion = sunni }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_zikri_religion }
		}
		ROOT = { show_scope_change = no religion = zikri }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_yazidi_religion }
		}
		ROOT = { show_scope_change = no religion = yazidi }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_shiite_religion }
		}
		ROOT = { show_scope_change = no religion = shiite }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_druze_religion }
		}
		ROOT = { show_scope_change = no religion = druze }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_hurufi_religion }
		}
		ROOT = { show_scope_change = no religion = hurufi }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_ibadi_religion }
		}
		ROOT = { show_scope_change = no religion = ibadi }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_kharijite_religion }
		}
		ROOT = { show_scope_change = no religion = kharijite }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_jewish_religion }
		}
		ROOT = { show_scope_change = no religion = jewish }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_samaritan_religion }
		}
		ROOT = { show_scope_change = no religion = samaritan }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_karaite_religion }
		}
		ROOT = { show_scope_change = no religion = karaite }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_zoroastrian_religion }
		}
		ROOT = { show_scope_change = no religion = zoroastrian }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_mazdaki_religion }
		}
		ROOT = { show_scope_change = no religion = mazdaki }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_manichean_religion }
		}
		ROOT = { show_scope_change = no religion = manichean }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_khurmazta_religion }
		}
		ROOT = { show_scope_change = no religion = khurmazta }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_taoist_religion }
		}
		ROOT = { show_scope_change = no religion = taoist }
	}

	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_hindu_religion }
		}
		ROOT = { show_scope_change = no religion = hindu }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_buddhist_religion }
		}
		ROOT = { show_scope_change = no religion = buddhist }
	}
	trigger_if = {
		limit = {
			FROM = { has_bloodline_flag = requires_jain_religion }
		}
		ROOT = { show_scope_change = no religion = jain }
	}
}


