coat_of_arms_template_lists = {
	# Root may be the set character, if in the ruler designer it will not exist yet but the saved scopes will so use them instead of checking the character
	# scope:faith is the faith of the character, always set
	# scope:culture is the culture of the character, always set
	# scope:title is the primary title of the character, may be unset
	all = {
		# Simple catch all

		3 = basic_charge_01
		3 = basic_charge_01b
		3 = basic_ordinary_01
		3 = basic_ordinary_01_inverted

		#500 = basic_charge_02
		#50000 = basic_charge_03
		#1 = basic_charge_04
		#50000 = basic_charge_05
		#3 = basic_charge_06

		# Turned off
		#1 = basic_charge_13
		#1 = basic_charge_13_b
		#1 = border_01
		#1 = border_01_metal
		#1 = basic_ordinary_02
		#1 = basic_ordinary_02_b
		#1 = dynasty_godwin
		#1 = dynasty_godwin_02



		#3 = basic_ordinary_division_01
		#1 = basic_ordinary_division_02
		#3 = basic_ordinary_chief_01
		#1 = basic_ordinary_chief_02




		# Crosses
		special_selection = {
			trigger = {
				coa_cross_trigger = yes
			}
			1 = basic_ordinary_cross_01
			3 = basic_ordinary_cross_02
			1 = basic_ordinary_cross_03
			3 = basic_ordinary_cross_04

			1 = basic_ordinary_saltire_01
			1 = basic_ordinary_saltire_02
			#1 = basic_ordinary_saltire_03
			#1 = basic_ordinary_saltire_04
		}

		# Pagan catch-all
		special_selection = {
			trigger = {
				scope:faith.religion = {
					save_temporary_scope_as = religion
				}

				scope:religion = { is_in_family = rf_pagan }
				NOR = {
					scope:religion = religion:slavic_religion
					scope:religion = religion:baltic_religion
					scope:religion = religion:finno_ugric_religion
					scope:religion = religion:magyar_religion
					scope:religion = religion:folkgerman_religion
					scope:religion = religion:zoroastrianism_religion
					scope:religion = religion:tengrism_religion
					scope:religion = religion:akom_religion
					scope:religion = religion:akom_religion
					scope:religion = religion:waaqism_religion
					scope:religion = religion:west_african_religion
					scope:religion = religion:west_african_bori_religion
					scope:religion = religion:west_african_roog_religion
					scope:religion = religion:west_african_orisha_religion
				}
			}
			5000 = basic_charge_01
			#50000 = basic_charge_02
		}
		# European Paganism - Single, Circle, Senester
		special_selection = {
			trigger = {
				scope:faith.religion = {
					save_temporary_scope_as = religion
				}
				OR = {
					scope:religion = religion:slavic_religion
					scope:religion = religion:baltic_religion
					scope:religion = religion:finno_ugric_religion
					scope:religion = religion:magyar_religion
				}
			}
			# Weights are temps
			16000 = basic_pagan_template
			16000 = basic_pagan_template_inverted
			8000 = basic_pagan_template_senester
			8000 = basic_pagan_template_senester_inverted
			3000 = geometrical_pagan_template
			4000 = geometrical_pagan_template_inverted
			3000 = geometrical_pagan_template_senester
			2000 = circled_pagan_template
			2000 = circled_pagan_template_inverted
			2000 = circled_pagan_template_offset
			2000 = circled_pagan_template_offset_inverted
		}

		# Germanic Paganism
		special_selection = {
			trigger = {
				scope:faith.religion = religion:folkgerman_religion
			}
			5000 = basic_pagan_template
			5000 = basic_pagan_template_inverted
			2500 = basic_pagan_template_senester
			2500 = basic_pagan_template_senester_inverted
			5000 = geometrical_pagan_template
			5000 = geometrical_pagan_template_inverted
			2500 = geometrical_pagan_template_senester
			7500 = circled_pagan_template
			7500 = circled_pagan_template_inverted

		}

		special_selection = {
			trigger = {
				coa_indian_trigger = yes
			}
			50 = basic_charge_01
			50 = basic_charge_01b
			50 = basic_ordinary_01
			50 = basic_ordinary_01_inverted
			100 = indian_geometrical_template
			100 = indian_geometrical_template_inverted
			50 = indian_single_border_template
			50 = indian_single_border_template_inverted
			150 = circled_indian_template
			150 = circled_indian_template_inverted
			60  = circled_indian_template_offset
			60  = circled_indian_template_offset_inverted
		}
		# India proper (to tone down those very cultural specific designs vs catch all)
		special_selection = {
			trigger = {
				exists = scope:title
				scope:title = {
					any_this_title_or_de_jure_above = {
						OR = {
							this = title:h_india
							this = title:e_deccan
							this = title:e_rajastan
							this = title:k_gondwana
							this = title:k_bihar
							this = title:k_orissa
						}
					}
				}
			}
			100 = indian_single_template
			100 = indian_single_template_inverted
			100 = indian_single_template_senester
			100 = indian_single_template_senester_inverted
			100 = circled_indian_single_symbol_template
			100 = circled_indian_single_symbol_template_inverted
		}

		# Tamgha users - Circle/Roundel
		special_selection = {
			trigger = {
				scope:faith.religion = {
					save_temporary_scope_as = religion
				}
				AND = {
					OR = {
						scope:faith = faith:nestorian
						scope:religion = religion:tengrism_religion
						scope:religion = religion:zoroastrianism_religion
						scope:religion = religion:magyar_religion
						AND = {
							scope:religion = religion:judaism_religion
							scope:culture = { has_coa_gfx = turkic_group_coa_gfx }
						}
					}
					NOT = {
						OR = {
							government_has_flag = government_is_nomadic
							government_has_flag = government_is_herder
						}
					}
				}
			}
			5000 = basic_tamgha_template
			5000 = basic_tamgha_template_inverted
			2500 = circled_tamgha_template
			2500 = circled_tamgha_template_inverted
			2500 = roundel_tamgha_template
			2500 = roundel_tamgha_template_inverted

		}

		special_selection = {
			trigger = {
				scope:faith.religion = {
					save_temporary_scope_as = religion
				}
				AND = {
					OR = {
						scope:faith = faith:nestorian
						scope:religion = religion:tengrism_religion
						scope:religion = religion:zoroastrianism_religion
						scope:religion = religion:magyar_religion
						AND = {
							scope:religion = religion:judaism_religion
							scope:culture = { has_coa_gfx = turkic_group_coa_gfx }
						}
					}
					government_has_flag = government_is_nomadic
				}
			}
			5000 = triangle_tamgha_template
			5000 = triangle_tamgha_template_inverted
		}

		special_selection = {
			trigger = {
				scope:faith.religion = {
					save_temporary_scope_as = religion
				}
				AND = {
					OR = {
						scope:faith = faith:nestorian
						scope:religion = religion:tengrism_religion
						scope:religion = religion:zoroastrianism_religion
						scope:religion = religion:magyar_religion
						AND = {
							scope:religion = religion:judaism_religion
							scope:culture = { has_coa_gfx = turkic_group_coa_gfx }
						}
					}
					government_has_flag = government_is_herder
				}
			}
			5000 = basic_tamgha_herder_template
			5000 = basic_tamgha_herder_template_inverted

		}
		# African Paganism - Single charge, geometrical patterns
		special_selection = {
			trigger = {
				coa_african_religion_trigger = yes
			}
			2000 = basic_african_template
			2000 = basic_african_template_inverted
			2000 = circled_african_template
			2000 = circled_african_template_inverted
			2500 = geometrical_african_template
			2500 = geometrical_african_template_inverted
		}
		# Feudal Europe
		special_selection = {
			trigger = {
				OR = { scope:faith.religion = religion:eastern_orthodox_religion scope:faith.religion = religion:catholic_religion scope:faith.religion = religion:protestant_religion }
				scope:culture = { has_coa_gfx = western_coa_gfx }
			}
			# A (main = charge)
			# Rougly 50% of all cases, 50% of it being from bestiary, 50% of said bestiary being lions.
			2500 = hr_single_charge_template
			2500 = hr_single_charge_template_inverted
			500 = hr_three_charges_template
			500 = hr_three_charges_template_inverted
			250 = hr_six_charges_template
			250 = hr_six_charges_template_inverted
			200 = hr_charge_under_chief_template
			200 = hr_charge_under_chief_template_inverted
			200 = hr_lion_semy_template
			200 = hr_lion_semy_template_inverted
			100 = hr_three_charges_in_pale_template
			100 = hr_three_charges_in_pale_template_inverted
			100 = hr_seven_charges_template
			100 = hr_seven_charges_template_inverted
			100 = hr_ten_charges_template
			100 = hr_ten_charges_template_inverted
			100 = hr_charge_and_canton_template
			100 = hr_charge_and_canton_template_inverted
			100 = hr_escutcheon_orle_template
			100 = hr_escutcheon_orle_template_inverted
			50 = hr_semy_template
			50 = hr_semy_template_inverted
			100 = hr_canton_template
			100 = hr_canton_template_inverted
			50 = hr_charge_canton_ermine_template
			50 = hr_charge_canton_ermine_template_inverted
			10 = hr_five_charges_template
			10 = hr_five_charges_template_inverted
			10 = hr_single_charge_on_mount_template
			10 = hr_single_charge_on_mount_template_inverted
			# Two charges in pale (ie Normandy)

			# B (main = ordinaries & partitions)
			# Roughly 50% of all cases : 50% divisions, 50% ordinaries (not counting any accompanying charge)
			2500 = hr_geometrical_template
			2500 = hr_geometrical_template_inverted
			100 = hr_geometrical_field_canton_template
			100 = hr_geometrical_field_canton_template_inverted
			200 = hr_three_charges_in_bend_template
			200 = hr_three_charges_in_bend_template_inverted
			200 = hr_three_charges_in_chief_template
			200 = hr_three_charges_in_chief_template_inverted
			200 = hr_three_charges_in_fess_template
			200 = hr_three_charges_in_fess_template_inverted
			200 = hr_cross_ch_five_template
			200 = hr_cross_ch_five_template_inverted
			200 = hr_cross_acc_four_template
			200 = hr_cross_acc_four_template_inverted
			100 = hr_chevron_acc_three_template
			100 = hr_chevron_acc_three_template_inverted
			100 = hr_fess_acc_three_template
			100 = hr_fess_acc_three_template_inverted
			100 = hr_fess_acc_six_charges_template
			100 = hr_fess_acc_six_charges_template_inverted
			100 = hr_bend_acc_six_charges_template
			100 = hr_bend_acc_six_charges_template_inverted
			100 = hr_charge_issant_chief_template
			100 = hr_charge_issant_chief_template_inverted
			50 = hr_canton_ermine_template
			50 = hr_canton_ermine_template_inverted

			# C (mixed)
			100 = hr_vair_template
			100 = hr_ermine_template
			100 = hr_charge_within_border_template
			100 = hr_charge_within_border_template_inverted

		}
		special_selection = {
			trigger = {
				OR = { scope:faith.religion = religion:eastern_orthodox_religion scope:faith.religion = religion:catholic_religion scope:faith.religion = religion:protestant_religion }
				scope:culture = { has_coa_gfx = iberian_group_coa_gfx }
			}
			1000 = hr_five_charges_template
			1000 = hr_five_charges_template_inverted
		}
		special_selection = {
			trigger = {
				OR = { scope:faith.religion = religion:eastern_orthodox_religion scope:faith.religion = religion:catholic_religion scope:faith.religion = religion:protestant_religion }
				scope:culture = { has_coa_gfx = german_group_coa_gfx }
			}
			500 = hr_single_charge_on_mount_template
			500 = hr_single_charge_on_mount_template_inverted
		}
		special_selection = {
			trigger = {
				OR = { scope:faith.religion = religion:eastern_orthodox_religion scope:faith.religion = religion:catholic_religion scope:faith.religion = religion:protestant_religion }
				coa_french_trigger = yes
			}
			200 = hr_semy_template
			200 = hr_semy_template_inverted
			200 = hr_seven_charges_template
			200 = hr_seven_charges_template_inverted
			200 = hr_ten_charges_template
			200 = hr_ten_charges_template_inverted
			100 = hr_vair_template
			100 = hr_ermine_template
			100 = hr_charge_issant_chief_template
			100 = hr_charge_issant_chief_template_inverted
			50 = hr_charge_canton_ermine_template
			50 = hr_charge_canton_ermine_template_inverted
			100 = hr_escutcheon_orle_template
			100 = hr_escutcheon_orle_template_inverted
		}

		special_selection = {
			trigger = {
				OR = { scope:faith.religion = religion:eastern_orthodox_religion scope:faith.religion = religion:catholic_religion scope:faith.religion = religion:protestant_religion }
				coa_scandinavian_trigger = yes
			}
			1500 = hr_dimidiated_charge_and_geometrical
			1500 = hr_dimidiated_charge_and_geometrical_inverted
			2500 = hr_single_charge_template
			2500 = hr_single_charge_template_inverted
			1000 = hr_three_charges_template
			1000 = hr_three_charges_template_inverted
			1500 = hr_three_charges_in_pall_template
			1500 = hr_three_charges_in_pall_template_inverted
			2500 = hr_geometrical_template
			2500 = hr_geometrical_template_inverted
			1000 = hr_three_charges_arranged_in_bend_template
			1000 = hr_three_charges_arranged_in_bend_template_inverted
			1000 = hr_three_charges_arranged_in_bend_template_senester
			1000 = hr_three_charges_arranged_in_bend_template_senester_inverted
			1500 = hr_single_charge_chevron_chief
			1500 = hr_single_charge_chevron_chief_inverted
			2500 = hr_single_charge_in_bend
		}

		special_selection = {
			trigger = {
				OR = { scope:faith.religion = religion:eastern_orthodox_religion scope:faith.religion = religion:catholic_religion scope:faith.religion = religion:protestant_religion }
				scope:culture = { has_coa_gfx = polish_coa_gfx }
			}
			2500 = hr_single_charge_template
			2500 = hr_single_charge_template_inverted
		}
		special_selection = {
			trigger = {
				OR = { scope:faith.religion = religion:eastern_orthodox_religion scope:faith.religion = religion:catholic_religion scope:faith.religion = religion:protestant_religion }
				scope:culture = {
					OR = {
						has_coa_gfx = west_slavic_group_coa_gfx
						has_coa_gfx = south_slavic_group_coa_gfx
						has_coa_gfx = east_slavic_group_coa_gfx
						has_coa_gfx = baltic_group_coa_gfx
						has_coa_gfx = balto_finnic_group_coa_gfx
					}
				}
			}
			5000 = hr_single_charge_template
			5000 = hr_single_charge_template_inverted
			2500 = hr_geometrical_template
			2500 = hr_geometrical_template_inverted
		}

		# Middle East
		# Islam - catch all - Persian, Turkic & others will use these only
		special_selection = {
			trigger = {
				scope:faith.religion = religion:islam_religion
			}
			2000 = circled_mena_template
			2000 = circled_mena_template_inverted
			2000 = roundel_mena_template
			2000 = roundel_mena_template_inverted
			4000 = mena_geometrical_template
			4000 = mena_geometrical_template_inverted
		}
		# MENA - Saracen/Mamluk heraldry - Additionnal layer centered on arabic & berber cultures
		special_selection = {
			trigger = {
				scope:faith.religion = religion:islam_religion
				scope:culture = {
					OR = {
						has_coa_gfx = arabic_group_coa_gfx
						has_coa_gfx = berber_group_coa_gfx
					}
				}
			}
			1000 = mena_fess_01
			1000 = mena_fess_01_barrulets
			1000 = mena_fess_02
			1000 = mena_fess_02_barrulets
			1000 = mena_fess_03
			1000 = mena_fess_03_barrulets
			1000 = mena_fess_04
			1000 = mena_fess_04_barrulets # 100000
			1000 = mena_fess_05
			1000 = mena_fess_05_barrulets
			1000 = mena_fess_06
			1000 = mena_fess_06_barrulets
			1000 = mena_chief_01
			1000 = mena_chief_01_b # 50000
			1000 = mena_chief_03
			1000 = mena_chief_04
			1000 = mena_bend_01
			1000 = mena_bend_02
			500 = mena_fess_chief
			500 = mena_lowered_fess
			500 = mena_fess_chief_inverted
			500 = mena_lowered_fess_inverted
			# larger bend for larger charge, those could be used for arabic calligraphy (ie Nasrid)
		}

		special_selection = {
			trigger = {
				scope:culture = { has_coa_gfx = byzantine_group_coa_gfx }
			}
			500 = byzantine_circled_single_symbol
			500 = byzantine_circled_single_symbol_inverted
			250 = byzantine_circled_single_symbol_mask
			250 = byzantine_circled_single_symbol_mask_inverted
			400 = byzantine_three_charges_in_pale
			400 = byzantine_three_charges_in_pale_inverted
			100 = byzantine_alpha_omega_in_pale
			100 = byzantine_alpha_omega_in_pale_inverted
			250 = byzantine_two_charges_stacked_in_pale
			250 = byzantine_two_charges_stacked_in_pale_inverted
			250 = byzantine_charges_stacked_in_chief
			250 = byzantine_charges_stacked_in_chief_inverted
			250 = byzantine_basic_charge
			250 = byzantine_basic_charge_inverted
			250 = byzantine_ordinary_cross
			250 = byzantine_ordinary_cross_inverted
		}

		special_selection = {
			trigger = {
				scope:culture = { has_coa_gfx = japanese_coa_gfx }
			}

			### Radial Three
			360 = kamon_radial_three
			360 = kamon_radial_three_hole
			360 = kamon_radial_three_framed
			360 = kamon_radial_three_alternating
			360 = kamon_radial_three_alternating_hole
			360 = kamon_radial_three_alternating_framed
			360 = kamon_radial_three_alternating_mirrored_framed
			360 = kamon_radial_three_alternating_mirrored
			360 = kamon_radial_three_alternating_mirrored_hole
			360 = kamon_radial_three_mirrored_framed

			360 = kamon_radial_three_inverted
			360 = kamon_radial_three_inverted_hole
			360 = kamon_radial_three_framed_inverted
			360 = kamon_radial_three_alternating_inverted
			360 = kamon_radial_three_alternating_inverted_hole
			360 = kamon_radial_three_alternating_framed_inverted
			360 = kamon_radial_three_alternating_mirrored_framed_inverted
			360 = kamon_radial_three_alternating_mirrored_inverted
			360 = kamon_radial_three_alternating_mirrored_inverted_hole
			360 = kamon_radial_three_mirrored_framed_inverted

			### Radial Four
			630 = kamon_radial_four
			630 = kamon_radial_four_hole
			630 = kamon_radial_four_framed

			630 = kamon_radial_four_inverted
			630 = kamon_radial_four_inverted_hole
			630 = kamon_radial_four_framed_inverted

			### Radial Five
			630 = kamon_radial_five
			630 = kamon_radial_five_hole
			630 = kamon_radial_five_framed

			630 = kamon_radial_five_inverted
			630 = kamon_radial_five_inverted_hole
			630 = kamon_radial_five_framed_inverted

			### Radial Six
			315 = kamon_radial_six
			315 = kamon_radial_six_alternating
			315 = kamon_radial_six_hole
			315 = kamon_radial_six_alternating_hole
			315 = kamon_radial_six_framed
			315 = kamon_radial_six_alternating_framed

			315 = kamon_radial_six_inverted
			315 = kamon_radial_six_alternating_inverted
			315 = kamon_radial_six_inverted_hole
			315 = kamon_radial_six_alternating_inverted_hole
			315 = kamon_radial_six_framed_inverted
			315 = kamon_radial_six_alternating_framed_inverted


			### Kamon Bloom
			1260 = kamon_bloom
			1260 = kamon_bloom_framed

			1260 = kamon_bloom_inverted
			1260 = kamon_bloom_framed_inverted

			### Kamon Parallel
			280 = kamon_parallel_horizontal_two
			280 = kamon_parallel_horizontal_two_framed
			280 = kamon_parallel_horizontal_three
			280 = kamon_parallel_horizontal_three_framed
			280 = kamon_parallel_vertical_two
			280 = kamon_parallel_vertical_two_framed
			280 = kamon_parallel_vertical_three
			280 = kamon_parallel_vertical_three_framed

			280 = kamon_parallel_horizontal_two_inverted
			280 = kamon_parallel_horizontal_two_framed_inverted
			280 = kamon_parallel_horizontal_three_inverted
			280 = kamon_parallel_horizontal_three_framed_inverted
			280 = kamon_parallel_vertical_two_inverted
			280 = kamon_parallel_vertical_two_framed_inverted
			280 = kamon_parallel_vertical_three_inverted
			280 = kamon_parallel_vertical_three_framed_inverted

			### Kamon Laurel
			420 = kamon_laurel
			420 = kamon_laurel_framed
			420 = kamon_laurel_block
			420 = kamon_laurel_mirrored
			420 = kamon_laurel_mirrored_framed
			420 = kamon_laurel_block_mirrored

			420 = kamon_laurel_inverted
			420 = kamon_laurel_framed_inverted
			420 = kamon_laurel_block_inverted
			420 = kamon_laurel_mirrored_inverted
			420 = kamon_laurel_mirrored_framed_inverted
			420 = kamon_laurel_block_mirrored_inverted


			### Kamon Central
			1260 = kamon_central
			1260 = kamon_central_framed

			1260 = kamon_central_inverted
			1260 = kamon_central_framed_inverted

			### Kamon Block
			504 = kamon_aligned_four
			504 = kamon_aligned_four_framed
			504 = kamon_aligned_six
			504 = kamon_aligned_six_framed
			504 = kamon_aligned_nine

			504 = kamon_aligned_four_inverted
			504 = kamon_aligned_four_framed_inverted
			504 = kamon_aligned_six_inverted
			504 = kamon_aligned_six_framed_inverted
			504 = kamon_aligned_nine_inverted

			### Kamon Diamond
			630 = kamon_diamond_frame
			630 = kamon_diamond
			630 = kamon_diamond_frame_inverted
			630 = kamon_diamond_inverted

			### Kamon Mirror
			630 = kamon_mirror_frame
			630 = kamon_mirror
			630 = kamon_mirror_frame_inverted
			630 = kamon_mirror_inverted
		}

		special_selection = {
			trigger = {
				scope:culture = { has_coa_gfx = chinese_group_coa_gfx }
			}

			1 = chinese_seal_pictorial

			special_selection = {
				trigger = {
					has_recognizable_chinese_seal = no
				}
				630 = chinese_seal_pictorial
				630 = chinese_seal_frame_pictorial
				630 = chinese_seal_frame_full_pictorial
				630 = chinese_seal_pictorial_frame_pictorial_vertical
				630 = chinese_seal_pictorial_frame_pictorial_vertical_full
				630 = chinese_seal_frame_pictorial_mirror
				630 = chinese_seal_frame_full_pictorial_mirror
				630 = chinese_seal_frame_divided_pictorial_mirror
				630 = chinese_seal_frame_divided_flip_pictorial_mirror
				630 = chinese_seal_pictorial_mirror
			}

			special_selection = {
				trigger = {
					has_recognizable_chinese_seal = yes
				}
				5040 = chinese_seal_name
				5040 = chinese_seal_frame_name
				5040 = chinese_seal_frame_full_name
				1260 = chinese_seal_pictorial_frame_name
				1260 = chinese_seal_pictorial_frame_name_full
				1260 = chinese_seal_pictorial_frame_offset_name
				1260 = chinese_seal_pictorial_frame_offset_name_full
				1260 = chinese_seal_frame_pictorial_name
				1260 = chinese_seal_frame_name_pictorial
				1260 = chinese_seal_frame_full_pictorial_name
				1260 = chinese_seal_frame_full_name_pictorial
				1260 = chinese_seal_frame_divided_pictorial_name
				1260 = chinese_seal_frame_divided_name_pictorial
				1260 = chinese_seal_frame_divided_flip_pictorial_name
				1260 = chinese_seal_frame_divided_flip_name_pictorial
				1260 = chinese_seal_pictorial_name
				1260 = chinese_seal_name_pictorial
			}
		}

		special_selection = {
			trigger = {
				scope:culture = { has_coa_gfx = burman_group_coa_gfx }
			}
			1000 = khmer_central
			1000 = khmer_central_inverted
			1000 = khmer_central_framed
			1000 = khmer_central_framed_inverted
			1000 = khmer_vertical_two_mirror
			1000 = khmer_vertical_two_mirror_inverted
			500 = khmer_horizontal_two
			500 = khmer_horizontal_two_framed
			500 = khmer_horizontal_two_inverted
			500 = khmer_horizontal_two_framed_inverted
		}
	}

	religious_title = {
		100 = religious_icon_01
		100 = religious_icon_01_metal
	}

	factions = {
		100 = faction_01
	}
}