 # 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 } 
			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
		culture_techpoints = 0.01

		
		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
		culture_techpoints = 0.01
		
		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 } 
			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
		culture_techpoints = 0.01
		
		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
		culture_techpoints = 0.01
		
		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 } 
			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
		culture_techpoints = 0.01
		
		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
		culture_techpoints = 0.01
		
		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 } 
			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
		culture_techpoints = 0.01
		
		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
		culture_techpoints = 0.01
		
		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 } 
			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
		culture_techpoints = 0.01
		
		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
		culture_techpoints = 0.01
		
		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 } 
			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
		culture_techpoints = 0.01
		
		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
		culture_techpoints = 0.01
		
		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 } 
			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
		culture_techpoints = 0.01
		
		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
		culture_techpoints = 0.01
		
		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 } 
			FROM = { 
				is_tribal = yes 
				religion = bon
				liege = { 
					is_tribal = yes 
					religion = bon
				} 
			}
		}
		gold_cost = 350
		build_time = 3650

		liege_piety = 0.75
		culture_techpoints = 0.01
		
		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
		culture_techpoints = 0.01
		
		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 } 
			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
		culture_techpoints = 0.01
		
		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
		culture_techpoints = 0.01
		
		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 } 
			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.15 
		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
		culture_techpoints = 0.01
		
		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 } 
			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
		culture_techpoints = 0.01
		
		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
		culture_techpoints = 0.01
		
		ai_creation_factor = 92
		add_number_to_name = no
	}
}	