﻿#
# Note: the triggers are checked at certain key points in the code, not all the time
# color_key = {
#    color = "black"      # the map color
#    possible = { ... }   # the trigger to enable this color
# }
#

# Example
#dynamic_map_color_swedish_junta = {
#    color = "black"
#	
#	possible = {
#		exists = c:SWE # you /must/ check that a tag exists before doing anything else
#		this = c:SWE
#
#        exists = ig:ig_armed_forces
#        ig:ig_armed_forces = {
#            is_in_government = yes
#        }
#	}
#}

iran = {
	color = "iran_green"
	
	possible = {
				exists = c:PER
				THIS = c:PER
				OR = {
					has_law = law_type:law_presidential_republic
					has_law = law_type:law_parliamentary_republic
					NOT = { has_variable = persia_name_var }
				}
			}
		}
		
uzbekistan = {
	color = "uzbekistan_blue"
	
	possible = {
				exists = c:AFG
				THIS = c:AFG
				ruler = {
			has_culture = cu:uzbek
				}
			}
		}
		
durrani = {
	color = "green"
	
	possible = {
				exists = c:AFG
				THIS = c:AFG
				was_formed_from = HER
			}
		}
		
kandahar = {
	color = "kandahar_black"
	
	possible = {
				exists = c:AFG
				THIS = c:AFG
				was_formed_from = KAN
			}
		}