 # Triggers are in Province scope. The From Scope contains the settlement holder (character)
 # start trigger is in title scope.

tribal = {	
	tb_great_pillar_norse = {
		desc = tb_great_pillar_norse_desc
		potential = { 
			location = { has_province_flag = flag_great_pillar_norse } 
		}
		is_active_trigger = {
			FROM = { #Owner and his liege must be of the founding religion, otherwise the building becomes inactive.
				is_tribal = yes 
				religion = norse_pagan
				liege = { 
					is_tribal = yes 
					religion = norse_pagan
				} 
			}
		} 
		gold_cost = 350
		build_time = 3650

		liege_piety = 0.1
		levy_reinforce_rate = 0.05
		land_morale = 0.05

		
		ai_creation_factor = 92
		add_number_to_name = no
	}
	
#	tb_great_pillar_norse_empty = { #Switch to the one giving no bonus if under infidel control.
#		desc = tb_great_pillar_norse_empty_desc
#		potential = { 
#			location = { has_province_flag = flag_great_pillar_norse } 
#			NOT = { 
#				FROM = { 
#					is_tribal = yes 
#					religion = norse_pagan
#					liege = { 
#						is_tribal = yes 
#						religion = norse_pagan
#					}
#				}
#			} 
#		}
#		gold_cost = 350
#		build_time = 3650
#		
#		ai_creation_factor = 92
#		add_number_to_name = no
#	}
#	
	tb_great_pillar_tengri = {
		desc = tb_great_pillar_tengri_desc
		potential = { 
			location = { has_province_flag = flag_great_pillar_tengri } 
		}
		is_active_trigger = {
			FROM = { 
				is_tribal = yes 
				religion = tengri_pagan
				liege = { 
					is_tribal = yes 
					religion = tengri_pagan
				} 
			}
		} 
		gold_cost = 350
		build_time = 3650

		liege_piety = 0.1
		levy_reinforce_rate = 0.05
		land_morale = 0.05
		
		ai_creation_factor = 92
		add_number_to_name = no
	}
#	tb_great_pillar_tengri_empty = {
#		desc = tb_great_pillar_tengri_empty_desc
#		potential = { 
#			location = { has_province_flag = flag_great_pillar_tengri } 
#			NOT = { 
#				FROM = { 
#					is_tribal = yes 
#					religion = tengri_pagan
#					liege = { 
#						is_tribal = yes 
#						religion = tengri_pagan
#					}
#				}
#			} 
#		}
#		gold_cost = 350
#		build_time = 3650
#		
#		ai_creation_factor = 92
#		add_number_to_name = no
#	}
	
	tb_great_pillar_slavic = {
		desc = tb_great_pillar_slavic_desc
		potential = { 
			location = { has_province_flag = flag_great_pillar_slavic } 
		}
		is_active_trigger = {
			FROM = { 
				is_tribal = yes 
				religion = slavic_pagan
				liege = { 
					is_tribal = yes 
					religion = slavic_pagan
				} 
			}
		} 
		gold_cost = 350
		build_time = 3650

		liege_piety = 0.1
		land_morale = 0.1
		
		ai_creation_factor = 92
		add_number_to_name = no
	}
#	tb_great_pillar_slavic_empty = {
#		desc = tb_great_pillar_slavic_empty_desc
#		potential = { 
#			location = { has_province_flag = flag_great_pillar_slavic } 
#			NOT = { 
#				FROM = { 
#					is_tribal = yes 
#					religion = slavic_pagan
#					liege = { 
#						is_tribal = yes 
#						religion = slavic_pagan
#					}
#				}
#			} 
#		}
#		gold_cost = 350
#		build_time = 3650
#		
#		ai_creation_factor = 92
#		add_number_to_name = no
#	}
	
	tb_great_pillar_baltic = {
		desc = tb_great_pillar_baltic_desc
		potential = { 
			location = { has_province_flag = flag_great_pillar_baltic } 
		}
		is_active_trigger = {
			FROM = { 
				is_tribal = yes 
				religion = baltic_pagan
				liege = { 
					is_tribal = yes 
					religion = baltic_pagan
				} 
			}
		} 
		gold_cost = 350
		build_time = 3650

		liege_piety = 0.1
		land_morale = 0.1
		
		ai_creation_factor = 92
		add_number_to_name = no
	}
#	tb_great_pillar_baltic_empty = {
#		desc = tb_great_pillar_baltic_empty_desc
#		potential = { 
#			location = { has_province_flag = flag_great_pillar_baltic } 
#			NOT = { 
#				FROM = { 
#					is_tribal = yes 
#					religion = baltic_pagan
#					liege = { 
#						is_tribal = yes 
#						religion = baltic_pagan
#					}
#				}
#			} 
#		}
#		gold_cost = 350
#		build_time = 3650
#		
#		ai_creation_factor = 92
#		add_number_to_name = no
#	}
	tb_great_pillar_finnish = {
		desc = tb_great_pillar_finnish_desc
		potential = { 
			location = { has_province_flag = flag_great_pillar_finnish } 
		}
		is_active_trigger = {
			FROM = { 
				is_tribal = yes 
				religion = finnish_pagan
				liege = { 
					is_tribal = yes 
					religion = finnish_pagan
				} 
			}
		} 
		gold_cost = 350
		build_time = 3650

		liege_piety = 0.1
		land_morale = 0.1
		
		ai_creation_factor = 92
		add_number_to_name = no
	}
#	tb_great_pillar_finnish_empty = {
#		desc = tb_great_pillar_finnish_empty_desc
#		potential = { 
#			location = { has_province_flag = flag_great_pillar_finnish } 
#			NOT = { 
#				FROM = { 
#					is_tribal = yes 
#					religion = finnish_pagan
#					liege = { 
#						is_tribal = yes 
#						religion = finnish_pagan
#					}
#				}
#			} 
#		}
#		gold_cost = 350
#		build_time = 3650
#		
#		ai_creation_factor = 92
#		add_number_to_name = no
#	}
	tb_great_pillar_west_african = {
		desc = tb_great_pillar_west_african_desc
		potential = { 
			location = { has_province_flag = flag_great_pillar_west_african } 
		}
		is_active_trigger = {
			FROM = { 
				is_tribal = yes 
				religion = west_african_pagan
				liege = { 
					is_tribal = yes 
					religion = west_african_pagan
				} 
			}
		} 
		gold_cost = 350
		build_time = 3650

		liege_piety = 0.1
		tax_income = 0.25
		land_morale = 0.05
		
		ai_creation_factor = 92
		add_number_to_name = no
	}
#	tb_great_pillar_west_african_empty = {
#		desc = tb_great_pillar_west_african_empty_desc
#		potential = { 
#			location = { has_province_flag = flag_great_pillar_west_african } 
#			NOT = { 
#				FROM = { 
#					is_tribal = yes 
#					religion = west_african_pagan
#					liege = { 
#						is_tribal = yes 
#						religion = west_african_pagan
#					}
#				}
#			} 
#		}
#		gold_cost = 350
#		build_time = 3650
#		
#		ai_creation_factor = 92
#		add_number_to_name = no
#	}
	tb_great_pillar_aztec = {
		desc = tb_great_pillar_aztec_desc
		potential = { 
			location = { has_province_flag = flag_great_pillar_aztec } 
		}
		is_active_trigger = {
			FROM = { 
				is_tribal = yes 
				religion = aztec
				liege = { 
					is_tribal = yes 
					religion = aztec
				} 
			}
		} 
		gold_cost = 350
		build_time = 3650

		liege_piety = 0.1
		tax_income = 0.25
		land_morale = 0.05
		
		ai_creation_factor = 92
		add_number_to_name = no
	}
#	tb_great_pillar_aztec_empty = {
#		desc = tb_great_pillar_aztec_empty_desc
#		potential = { 
#			location = { has_province_flag = flag_great_pillar_aztec } 
#			NOT = { 
#				FROM = { 
#					is_tribal = yes 
#					religion = aztec
#					liege = { 
#						is_tribal = yes 
#						religion = aztec
#					}
#				}
#			} 
#		}
#		gold_cost = 350
#		build_time = 3650
#		
#		ai_creation_factor = 92
#		add_number_to_name = no
#	}
	tb_great_pillar_bon = {
		desc = tb_great_pillar_bon_desc
		potential = { 
			location = { has_province_flag = flag_great_pillar_bon } 
		}
		is_active_trigger = {
			FROM = { 
				is_tribal = yes 
				religion = bon
				liege = { 
					is_tribal = yes 
					religion = bon
				} 
			}
		} 
		gold_cost = 350
		build_time = 3650

		liege_piety = 0.75
		
		ai_creation_factor = 92
		add_number_to_name = no
	}
#	tb_great_pillar_bon_empty = {
#		desc = tb_great_pillar_bon_empty_desc
#		potential = { 
#			location = { has_province_flag = flag_great_pillar_bon } 
#			NOT = { 
#				FROM = { 
#					is_tribal = yes 
#					religion = bon
#					liege = { 
#						is_tribal = yes 
#						religion = bon
#					}
#				}
#			} 
#		}
#		gold_cost = 350
#		build_time = 3650
#		
#		ai_creation_factor = 92
#		add_number_to_name = no
#	}
	tb_great_pillar_zun = {
		desc = tb_great_pillar_zun_desc
		potential = { 
			location = { has_province_flag = flag_great_pillar_zun } 
		}
		is_active_trigger = {
			FROM = { 
				is_tribal = yes 
				religion = zun_pagan
				liege = { 
					is_tribal = yes 
					religion = zun_pagan
				} 
			}
		} 
		gold_cost = 350
		build_time = 3650

		liege_piety = 0.1
		tax_income = 0.25
		land_morale = 0.05
		
		ai_creation_factor = 92
		add_number_to_name = no
	}
#	tb_great_pillar_zun_empty = {
#		desc = tb_great_pillar_zun_empty_desc
#		potential = { 
#			location = { has_province_flag = flag_great_pillar_zun } 
#			NOT = { 
#				FROM = { 
#					is_tribal = yes 
#					religion = zun_pagan
#					liege = { 
#						is_tribal = yes 
#						religion = zun_pagan
#					}
#				}
#			} 
#		}
#		gold_cost = 350
#		build_time = 3650
#		
#		ai_creation_factor = 92
#		add_number_to_name = no
#	}
	tb_great_pillar_hellenic = {
		desc = tb_great_pillar_hellenic_desc
		potential = { 
			location = { has_province_flag = flag_great_pillar_hellenic } 
		}
		is_active_trigger = {
			FROM = { 
				is_tribal = yes 
				religion = hellenic_pagan
				liege = { 
					is_tribal = yes 
					religion = hellenic_pagan
				} 	
			}
		} 
		gold_cost = 350
		build_time = 3650
		
		liege_piety = 0.1
		culture_techpoints = 0.1 
		land_morale = 0.05
		
		ai_creation_factor = 92
		add_number_to_name = no
	}
#	tb_great_pillar_hellenic_empty = {
#		desc = tb_great_pillar_hellenic_empty_desc
#		potential = { 
#			location = { has_province_flag = flag_great_pillar_hellenic } 
#			NOT = { 
#				FROM = { 
#					is_tribal = yes 
#					religion = hellenic_pagan
#					liege = { 
#						is_tribal = yes 
#						religion = hellenic_pagan
#					}
#				}
#			} 
#		}
#		gold_cost = 350
#		build_time = 3650
#		
#		ai_creation_factor = 92
#		add_number_to_name = no
#	}	
}	

temple = { #Historical Irminsul's holding is set as a temple.
	tp_great_pillar_norse = {
		desc = tb_great_pillar_norse_desc
		potential = { 
			location = { has_province_flag = flag_great_pillar_norse_irminsul } 
		}
		is_active_trigger = {
			FROM = { 
				religion = norse_pagan
				liege = { 
					religion = norse_pagan
				} 
			}
		} 
		gold_cost = 350
		build_time = 3650

		liege_piety = 0.25
		levy_reinforce_rate = 0.05
		land_morale = 0.05
		
		ai_creation_factor = 92
		add_number_to_name = no
	}
#	tp_great_pillar_norse_empty = {
#		desc = tb_great_pillar_norse_desc
#		potential = { 
#			location = { has_province_flag = flag_great_pillar_norse_irminsul } 
#			NOT = {
#				FROM = { 
#					religion = norse_pagan
#					liege = { 
#						religion = norse_pagan
#					}
#				}
#			} 
#		}
#		gold_cost = 350
#		build_time = 3650
#		
#		ai_creation_factor = 92
#		add_number_to_name = no
#	}
}	