any_new_traditions_1 = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/mpo_decision_great_khan.dds"
	}
	decision_group_type = any_new_traditions
	desc = any_new_traditions_1_desc
	selection_tooltip = any_new_traditions_1_tooltip
	ai_check_interval = 0

	is_shown = {
		is_ai = no
		OR = {
			culture = { has_cultural_tradition = tradition_by_lance }
		}
        NOT = {
            is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_1
			}
        }
	}
	
	is_valid = {
		prestige_level >= 5
		OR = {
			custom_tooltip = {
				text = 1000_of_riders_plains
				number_maa_soldiers_of_type = {
					target = riders_plains
					value >= 1000
				}
			}
			custom_tooltip = {
				text = 500_of_riders_plains
				primary_title = {
					any_owned_title_maa_regiment = {
						is_maa_type = riders_plains
						count >= 2
						maa_size >= 5
					}
				}
			}
			custom_tooltip = {
				text = 1000_of_horse_archers_plains
				number_maa_soldiers_of_type = {
					target = h_archers_p
					value >= 1000
				}
			}
			custom_tooltip = {
				text = 500_of_horse_archers_plains
				primary_title = {
					any_owned_title_maa_regiment = {
						is_maa_type = h_archers_p
						count >= 2
						maa_size >= 5
					}
				}
			}
		}
		OR = {
			custom_tooltip = {
				text = 500_of_knights_plains
				number_maa_soldiers_of_type = {
					target = knights_plains
					value >= 500
				}
			}
			custom_tooltip = {
				text = 250_of_knights_plains
				primary_title = {
					any_owned_title_maa_regiment = {
						is_maa_type = knights_plains
						count >= 2
						maa_size >= 5
					}
				}
			}
		}
	}

	effect = {
        root.culture = {
            custom_tooltip = {
                text = remove_tradition_by_lance
                remove_culture_tradition = tradition_by_lance
            }
        }
        root.culture = {
            custom_tooltip = {
                text = add_tradition_by_lance2
                add_culture_tradition = tradition_by_lance2
            }
			custom_tooltip = { text = change_h_archers_p }
			custom_tooltip = { text = change_riders_plains }
			custom_tooltip = { text = change_knights_plains }
        }
		root.dynasty = {
			add_dynasty_modifier = ary_traditions_1_modifier
		}
		hidden_effect = {
			add_to_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_1
			}
		}
	}

	cost = { prestige = 25000 }

	ai_will_do = {
		base = 0
	}
}

any_new_traditions_2 = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/fp2_decision_struggle_opening.dds"
	}
	decision_group_type = any_new_traditions
	desc = any_new_traditions_2_desc
	selection_tooltip = any_new_traditions_2_tooltip
	ai_check_interval = 0

	is_shown = {
		is_ai = no
		OR = {
			culture = { has_cultural_tradition = tradition_btsas }
		}
        NOT = {
            is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_2
			}
        }
	}
	
	is_valid = {
		prestige_level >= 5
		OR = {
			custom_tooltip = {
				text = 1000_of_ary_exspear
				number_maa_soldiers_of_type = {
					target = ary_exspear
					value >= 1000
				}
			}
			custom_tooltip = {
				text = 500_of_ary_exspear
				primary_title = {
					any_owned_title_maa_regiment = {
						is_maa_type = ary_exspear
						count >= 2
						maa_size >= 5
					}
				}
			}
		}
		OR = {
			custom_tooltip = {
				text = 1000_of_ary_exsword
				number_maa_soldiers_of_type = {
					target = ary_exsword
					value >= 1000
				}
			}
			custom_tooltip = {
				text = 500_of_ary_exsword
				primary_title = {
					any_owned_title_maa_regiment = {
						is_maa_type = ary_exsword
						count >= 2
						maa_size >= 5
					}
				}
			}
		}
	}

	effect = {
        root.culture = {
            custom_tooltip = {
                text = remove_tradition_btsas
                remove_culture_tradition = tradition_btsas
            }
        }
        root.culture = {
            custom_tooltip = {
                text = add_tradition_btsas2
                add_culture_tradition = tradition_btsas2
            }
			custom_tooltip = { text = change_ary_exspear }
			custom_tooltip = { text = change_ary_exsword }
        }
		root.dynasty = {
			add_dynasty_modifier = ary_traditions_2_modifier
		}
		hidden_effect = {
			add_to_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_2
			}
		}
	}

	cost = { prestige = 25000 }

	ai_will_do = {
		base = 0
	}
}

any_new_traditions_3 = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_activity.dds"
	}
	decision_group_type = any_new_traditions
	desc = any_new_traditions_3_desc
	selection_tooltip = any_new_traditions_3_tooltip
	ai_check_interval = 0

	is_shown = {
		is_ai = no
		OR = {
			culture = { has_cultural_tradition = tradition_by_the_arrow }
		}
        NOT = {
            is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_3
			}
        }
	}
	
	is_valid = {
		prestige_level >= 5
		OR = {
			custom_tooltip = {
				text = 1000_of_rangers_forest
				number_maa_soldiers_of_type = {
					target = rangers_forest
					value >= 1000
				}
			}
			custom_tooltip = {
				text = 500_of_rangers_forest
				primary_title = {
					any_owned_title_maa_regiment = {
						is_maa_type = rangers_forest
						count >= 2
						maa_size >= 5
					}
				}
			}
		}
		OR = {
			custom_tooltip = {
				text = 1000_of_ary_elight_footmen
				number_maa_soldiers_of_type = {
					target = ary_elight_footmen
					value >= 1000
				}
			}
			custom_tooltip = {
				text = 500_of_ary_elight_footmen
				primary_title = {
					any_owned_title_maa_regiment = {
						is_maa_type = ary_elight_footmen
						count >= 2
						maa_size >= 5
					}
				}
			}
		}
	}

	effect = {
        root.culture = {
            custom_tooltip = {
                text = remove_tradition_by_the_arrow
                remove_culture_tradition = tradition_by_the_arrow
            }
        }
        root.culture = {
            custom_tooltip = {
                text = add_tradition_by_the_arrow2
                add_culture_tradition = tradition_by_the_arrow2
            }
			custom_tooltip = { text = change_rangers_forest }
			custom_tooltip = { text = change_ary_elight_footmen }
        }
		root.dynasty = {
			add_dynasty_modifier = ary_traditions_3_modifier
		}
		hidden_effect = {
			add_to_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_3
			}
		}
	}

	cost = { prestige = 25000 }

	ai_will_do = {
		base = 0
	}
}

any_new_traditions_4 = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
	}
	decision_group_type = any_new_traditions
	desc = any_new_traditions_4_desc
	selection_tooltip = any_new_traditions_4_tooltip
	ai_check_interval = 0

	is_shown = {
		is_ai = no
		OR = {
			culture = { has_cultural_tradition = tradition_ice_age1 }
		}
        NOT = {
            is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_4
			}
        }
	}
	
	is_valid = {
		prestige_level >= 5
		OR = {
			custom_tooltip = {
				text = 50_of_mammonth1
				number_maa_soldiers_of_type = {
					target = mammonth1
					value >= 50
				}
			}
			custom_tooltip = {
				text = 30_of_mammonth1
				primary_title = {
					any_owned_title_maa_regiment = {
						is_maa_type = mammonth1
						count >= 1
						maa_size >= 5
					}
				}
			}
		}
		OR = {
			custom_tooltip = {
				text = 50_of_mammonth2
				number_maa_soldiers_of_type = {
					target = mammonth2
					value >= 50
				}
			}
			custom_tooltip = {
				text = 30_of_mammonth2
				primary_title = {
					any_owned_title_maa_regiment = {
						is_maa_type = mammonth2
						count >= 1
						maa_size >= 5
					}
				}
			}
		}
	}

	effect = {
        root.culture = {
            custom_tooltip = {
                text = remove_tradition_ice_age1
                remove_culture_tradition = tradition_ice_age1
            }
        }
        root.culture = {
            custom_tooltip = {
                text = add_tradition_ice_age2
                add_culture_tradition = tradition_ice_age2
            }
			custom_tooltip = { text = new_maa_mammonth3 }
        }
		root.dynasty = {
			add_dynasty_modifier = ary_traditions_4_modifier
		}
		hidden_effect = {
			add_to_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_4
			}
		}
	}

	cost = { prestige = 25000 }

	ai_will_do = {
		base = 0
	}
}

any_new_traditions_5 = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_family_tree.dds"
	}
	decision_group_type = ary_traditions_group_type
	desc = any_new_traditions_5_desc
	selection_tooltip = any_new_traditions_5_tooltip
	ai_check_interval = 0

	is_shown = {
		is_ai = no
		OR = {
			culture = { has_cultural_tradition = tradition_supremeblood }
		}
        NOT = {
            is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_5
			}
        }
	}
	
	is_valid = {
		prestige_level >= 5
		piety_level >= 5
		learning >= 35
		has_trait = scholar
		has_trait = theologian
		OR = {
			learning >= 50
			has_trait = education_learning_5
			has_trait = zealous
			has_trait = intellect_good_3
			has_trait = lifestyle_mystic
		}
		OR = {
			has_trait = diplomat
			has_trait = august
			has_trait = family_first
			has_trait = strategist
			has_trait = overseer
			has_trait = gallant
			has_trait = avaricious
			has_trait = architect
			has_trait = administrator
		}
	}

	effect = {
        root.culture = {
            custom_tooltip = {
                text = remove_tradition_supremeblood
                remove_culture_tradition = tradition_supremeblood
            }
        }
        root.culture = {
            custom_tooltip = {
                text = add_tradition_supremeblood2
                add_culture_tradition = tradition_supremeblood2
            }
			custom_tooltip = { text = new_maa_supremeblood1 }
			custom_tooltip = { text = new_maa_supremeblood2 }
        }
		root.dynasty = {
			add_dynasty_modifier = ary_traditions_5_modifier
		}
		hidden_effect = {
			root.dynasty = {
				add_dynasty_prestige >= 10000
			}
			add_to_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_5
			}
		}
		show_as_tooltip = {
			root.dynasty = {
				add_dynasty_prestige >= 10000
			}
		}
	}

	cost = {
		gold = 10000
		prestige = 50000
		piety = 20000
	}

	ai_will_do = {
		base = 0
	}
}

any_new_traditions_6 = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/fp2_decision_struggle_hostility.dds"
	}
	decision_group_type = any_new_traditions
	desc = any_new_traditions_6_desc
	selection_tooltip = any_new_traditions_6_tooltip
	ai_check_interval = 0

	is_shown = {
		is_ai = no
		OR = {
			culture = { has_cultural_tradition = tradition_lotsap }
		}
        NOT = {
            is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_6
			}
        }
	}
	
	is_valid = {
		prestige_level >= 5
		martial >= 30
		has_trait = strategist
		has_trait = gallant
		OR = {
			custom_tooltip = {
				text = 1000_of_ary_kg
				number_maa_soldiers_of_type = {
					target = ary_kg
					value >= 1000
				}
			}
			custom_tooltip = {
				text = 500_of_ary_kg
				primary_title = {
					any_owned_title_maa_regiment = {
						is_maa_type = ary_kg
						count >= 2
						maa_size >= 5
					}
				}
			}
		}
		OR = {
			custom_tooltip = {
				text = 2000_of_corsair_raid
				number_maa_soldiers_of_type = {
					target = corsair_raid
					value >= 2000
				}
			}
			custom_tooltip = {
				text = 1000_of_corsair_raid
				primary_title = {
					any_owned_title_maa_regiment = {
						is_maa_type = corsair_raid
						count >= 2
						maa_size >= 5
					}
				}
			}
		}
	}

	effect = {
		root.dynasty = {
			add_dynasty_modifier = fp1_legacy_of_piracy_modifier
		}
		hidden_effect = {
			add_to_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_6
			}
		}
	}

	cost = { prestige = 0 }

	ai_will_do = {
		base = 0
	}
}

any_new_traditions_7 = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
	}
	decision_group_type = any_new_traditions
	desc = any_new_traditions_7_desc
	selection_tooltip = any_new_traditions_7_tooltip
	ai_check_interval = 0

	is_shown = {
		is_ai = no
		OR = {
			culture = { has_cultural_tradition = tradition_tb }
		}
        NOT = {
            is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_7
			}
        }
	}
	
	is_valid = {
		prestige_level >= 5
		stewardship >= 30
		has_trait = architect
		has_trait = scholar
		NOT = { has_trait = lazy }
		OR = {
			has_trait = education_stewardship_5
			stewardship >= 40
			has_trait = intellect_good_3
			has_trait = diligent
			has_trait = shrewd
		}
	}

	effect = {
		root.culture = {
            custom_tooltip = {
                text = remove_tradition_tb
                remove_culture_tradition = tradition_tb
            }
        }
        root.culture = {
            custom_tooltip = {
                text = add_tradition_tb2
                add_culture_tradition = tradition_tb2
            }
        }
		root.dynasty = {
			add_dynasty_modifier = ary_traditions_6_modifier
		}
		hidden_effect = {
			add_to_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_7
			}
		}
	}

	cost = { prestige = 25000 }

	ai_will_do = {
		base = 0
	}
}

any_new_traditions_8 = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/decision_legitimacy.dds"
	}
	decision_group_type = any_new_traditions
	desc = any_new_traditions_8_desc
	selection_tooltip = any_new_traditions_8_tooltip
	ai_check_interval = 0

	is_shown = {
		is_ai = no
		OR = {
			culture = { has_cultural_tradition = tradition_true_knight }
		}
        NOT = {
            is_target_in_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_8
			}
        }
	}
	
	is_valid = {
		prestige_level >= 5
		prowess >= 30
		has_trait = gallant
		NOT = { has_trait = craven }
		NOT = { has_trait = disloyal }
		NOT = { has_trait = deceitful }
		OR - {
			prowess >= 40
			has_trait = brave
			has_trait = lifestyle_blademaster
			has_trait = knight_errant
			has_trait = just
		}
		OR = {
			custom_tooltip = {
				text = need_6_15p_knights
				any_knight = {
					count >= 6
					prowess >= 15
				}
			}
		}
		OR = {
			custom_tooltip = {
				text = need_3_20p_knights
				any_knight = {
					count >= 3
					prowess >= 20
				}
			}
		}
		OR = {
			custom_tooltip = {
				text = need_1_30p_knights
				any_knight = {
					count >= 1
					prowess >= 30
				}
			}
		}
	}

	effect = {
		root.culture = {
            custom_tooltip = {
                text = remove_tradition_true_knight
                remove_culture_tradition = tradition_true_knight
            }
        }
        root.culture = {
            custom_tooltip = {
                text = add_tradition_true_knight2
                add_culture_tradition = tradition_true_knight2
            }
        }
		root.house = {
			add_house_modifier = ary_house_traditions_1_modifier
		}
		hidden_effect = {
			add_to_global_variable_list = {
				name = unavailable_unique_decisions
				target = flag:any_new_traditions_8
			}
		}
	}

	cost = { prestige = 25000 }

	ai_will_do = {
		base = 0
	}
}