﻿############################################
##   Scripted Localization for German Loc ##
###           BY Kai Bagehorn            ###
############################################

DE_1_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_mountains_terrain = yes
					agot_is_desert_mountains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_1_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_plains_terrain = yes
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_1_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_1_grit_type_sand
	}

	text = {
		trigger = {
			location = { agot_is_wetlands_terrain = yes }
		}
		localization_key = CustomLoc_DE_1_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_1_grit_type_twigs
	}

	text = {
		trigger = {
			location = { agot_is_jungle_terrain = yes }
		}
		localization_key = CustomLoc_DE_1_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_1_grit_type_dry_grass
	}
}

DE_2_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_mountains_terrain = yes
					agot_is_desert_mountains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_2_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_plains_terrain = yes
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_2_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_2_grit_type_sand
	}

	text = {
		trigger = {
			location = { agot_is_wetlands_terrain = yes }
		}
		localization_key = CustomLoc_DE_2_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_2_grit_type_twigs
	}

	text = {
		trigger = {
			location = { agot_is_jungle_terrain = yes }
		}
		localization_key = CustomLoc_DE_2_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_2_grit_type_dry_grass
	}
}

DE_3_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_mountains_terrain = yes
					agot_is_desert_mountains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_3_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_plains_terrain = yes
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_3_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_3_grit_type_sand
	}

	text = {
		trigger = {
			location = { agot_is_wetlands_terrain = yes }
		}
		localization_key = CustomLoc_DE_3_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_3_grit_type_twigs
	}

	text = {
		trigger = {
			location = { agot_is_jungle_terrain = yes }
		}
		localization_key = CustomLoc_DE_3_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_3_grit_type_dry_grass
	}
}

DE_4_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_mountains_terrain = yes
					agot_is_desert_mountains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_4_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_plains_terrain = yes
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_4_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_4_grit_type_sand
	}

	text = {
		trigger = {
			location = { agot_is_wetlands_terrain = yes }
		}
		localization_key = CustomLoc_DE_4_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_4_grit_type_twigs
	}

	text = {
		trigger = {
			location = { agot_is_jungle_terrain = yes }
		}
		localization_key = CustomLoc_DE_4_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_4_grit_type_dry_grass
	}
}

DE_5_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_mountains_terrain = yes
					agot_is_desert_mountains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_5_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_plains_terrain = yes
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_5_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_5_grit_type_sand
	}

	text = {
		trigger = {
			location = { agot_is_wetlands_terrain = yes }
		}
		localization_key = CustomLoc_DE_5_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_5_grit_type_twigs
	}

	text = {
		trigger = {
			location = { agot_is_jungle_terrain = yes }
		}
		localization_key = CustomLoc_DE_5_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_5_grit_type_dry_grass
	}
}

DE_6_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_mountains_terrain = yes
					agot_is_desert_mountains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_6_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_plains_terrain = yes
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_6_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_6_grit_type_sand
	}

	text = {
		trigger = {
			location = { agot_is_wetlands_terrain = yes }
		}
		localization_key = CustomLoc_DE_6_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_6_grit_type_twigs
	}

	text = {
		trigger = {
			location = { agot_is_jungle_terrain = yes }
		}
		localization_key = CustomLoc_DE_6_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_6_grit_type_dry_grass
	}
}

DE_7_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_mountains_terrain = yes
					agot_is_desert_mountains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_7_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_plains_terrain = yes
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_7_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_7_grit_type_sand
	}

	text = {
		trigger = {
			location = { agot_is_wetlands_terrain = yes }
		}
		localization_key = CustomLoc_DE_7_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_7_grit_type_twigs
	}

	text = {
		trigger = {
			location = { agot_is_jungle_terrain = yes }
		}
		localization_key = CustomLoc_DE_7_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_7_grit_type_dry_grass
	}
}

DE_1_GroundType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			exists = scope:locale
			#NOT = { scope:locale = flag:wilderness }
		}
		localization_key = CustomLoc_DE_1_ground_type_dust
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_1_ground_type_dirt
	}

	text = {
		trigger = {
			location = { agot_is_mountains_terrain = yes }
		}
		localization_key = CustomLoc_DE_1_ground_type_rocks
	}

	text = {
		trigger = {
			location = { agot_is_desert_mountains_terrain = yes }
		}
		localization_key = CustomLoc_DE_1_ground_type_sandy_rocks
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_1_ground_type_sand
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_wetlands_terrain = yes 
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_1_ground_type_wet_grass
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
					agot_is_jungle_terrain = yes 
				}
			}
		}
		localization_key = CustomLoc_DE_1_ground_type_mulch
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_plains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_1_ground_type_grass
	}
}

DE_2_GroundType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			exists = scope:locale
			#NOT = { scope:locale = flag:wilderness }
		}
		localization_key = CustomLoc_DE_2_ground_type_dust
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_2_ground_type_dirt
	}

	text = {
		trigger = {
			location = { agot_is_mountains_terrain = yes }
		}
		localization_key = CustomLoc_DE_2_ground_type_rocks
	}

	text = {
		trigger = {
			location = { agot_is_desert_mountains_terrain = yes }
		}
		localization_key = CustomLoc_DE_2_ground_type_sandy_rocks
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_2_ground_type_sand
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_wetlands_terrain = yes 
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_2_ground_type_wet_grass
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
					agot_is_jungle_terrain = yes 
				}
			}
		}
		localization_key = CustomLoc_DE_2_ground_type_mulch
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_plains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_2_ground_type_grass
	}
}

DE_3_GroundType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			exists = scope:locale
			#NOT = { scope:locale = flag:wilderness }
		}
		localization_key = CustomLoc_DE_3_ground_type_dust
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_3_ground_type_dirt
	}

	text = {
		trigger = {
			location = { agot_is_mountains_terrain = yes }
		}
		localization_key = CustomLoc_DE_3_ground_type_rocks
	}

	text = {
		trigger = {
			location = { agot_is_desert_mountains_terrain = yes }
		}
		localization_key = CustomLoc_DE_3_ground_type_sandy_rocks
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_3_ground_type_sand
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_wetlands_terrain = yes 
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_3_ground_type_wet_grass
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
					agot_is_jungle_terrain = yes 
				}
			}
		}
		localization_key = CustomLoc_DE_3_ground_type_mulch
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_plains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_3_ground_type_grass
	}
}

DE_4_GroundType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			exists = scope:locale
			#NOT = { scope:locale = flag:wilderness }
		}
		localization_key = CustomLoc_DE_4_ground_type_dust
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_4_ground_type_dirt
	}

	text = {
		trigger = {
			location = { agot_is_mountains_terrain = yes }
		}
		localization_key = CustomLoc_DE_4_ground_type_rocks
	}

	text = {
		trigger = {
			location = { agot_is_desert_mountains_terrain = yes }
		}
		localization_key = CustomLoc_DE_4_ground_type_sandy_rocks
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_4_ground_type_sand
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_wetlands_terrain = yes 
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_4_ground_type_wet_grass
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
					agot_is_jungle_terrain = yes 
				}
			}
		}
		localization_key = CustomLoc_DE_4_ground_type_mulch
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_plains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_4_ground_type_grass
	}
}

DE_5_GroundType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			exists = scope:locale
			#NOT = { scope:locale = flag:wilderness }
		}
		localization_key = CustomLoc_DE_5_ground_type_dust
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_5_ground_type_dirt
	}

	text = {
		trigger = {
			location = { agot_is_mountains_terrain = yes }
		}
		localization_key = CustomLoc_DE_5_ground_type_rocks
	}

	text = {
		trigger = {
			location = { agot_is_desert_mountains_terrain = yes }
		}
		localization_key = CustomLoc_DE_5_ground_type_sandy_rocks
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_5_ground_type_sand
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_wetlands_terrain = yes 
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_5_ground_type_wet_grass
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
					agot_is_jungle_terrain = yes 
				}
			}
		}
		localization_key = CustomLoc_DE_5_ground_type_mulch
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_plains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_5_ground_type_grass
	}
}

DE_6_GroundType = {
	log_loc_errors = no
	
	type = character

	text = {
		trigger = {
			exists = scope:locale
			#NOT = { scope:locale = flag:wilderness }
		}
		localization_key = CustomLoc_DE_6_ground_type_dust
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_farmlands_terrain = yes
					agot_is_hills_terrain = yes
					agot_is_drylands_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_6_ground_type_dirt
	}

	text = {
		trigger = {
			location = { agot_is_mountains_terrain = yes }
		}
		localization_key = CustomLoc_DE_6_ground_type_rocks
	}

	text = {
		trigger = {
			location = { agot_is_desert_mountains_terrain = yes }
		}
		localization_key = CustomLoc_DE_6_ground_type_sandy_rocks
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_desert_terrain = yes
					agot_is_oasis_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_6_ground_type_sand
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_wetlands_terrain = yes 
					agot_is_floodplains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_6_ground_type_wet_grass
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_forest_terrain = yes
					agot_is_taiga_terrain = yes
					agot_is_jungle_terrain = yes 
				}
			}
		}
		localization_key = CustomLoc_DE_6_ground_type_mulch
	}

	text = {
		trigger = {
			location = {
				OR = {
					agot_is_steppe_terrain = yes
					agot_is_plains_terrain = yes
				}
			}
		}
		localization_key = CustomLoc_DE_6_ground_type_grass
	}
}