## So New Brunswick doesn't appear in the Prince Edward Island flag in The Great Rework mod ##

PEI = { # Prince Edward Island
	flag_definition = {
		coa = PEI
		coa_with_overlord_canton = PEI_subject
		allow_overlord_canton = yes		
	}
	flag_definition = {
		coa = PEI_subject_FRA
		allow_overlord_canton = yes			
		priority = 50
		trigger = { 
			coa_def_french_ensign_trigger = yes
		}
	}	
}

### Kikko's Formable and Releasable Nations ###

BNL = { # Benelux
	flag_definition = {
		coa = BNL
		}
	flag_definition = {
		coa = BNL_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
		flag_definition = {
		coa = BNL_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
		flag_definition = {
		coa = BNL_anarchy
		priority = 2000
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
		}
	}
	
	
	# WB's additions
	
	flag_definition = {
		coa = BNL_BEL
		priority = 2
		trigger = {
			scope:actor ?= {
				was_formed_from = BEL
			}
		}
		
	}
	flag_definition = {
		coa = BNL_republic_BEL
		priority = 11
		trigger = { 
			coa_def_republic_flag_trigger = yes
			
			scope:actor ?= {
				was_formed_from = BEL
			}
		}
	}
		flag_definition = {
		coa = BNL_communist_BEL
		priority = 1501
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= {
				was_formed_from = BEL
			}
		}
	}	
		flag_definition = {
		coa = BNL_anarchy_BEL
		priority = 2001
		trigger = {
			scope:actor ?= {
				has_law = law_type:law_anarchy
				was_formed_from = BEL
			}
		}
	}
}

PAG = { # Patria Grande
	flag_definition = {
		coa = PAG
		subject_canton = PAG
	}
	
	# WB's additions
	
	flag_definition = {
		coa = CLM_communist
		subject_canton = CLM_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = CLM_anarchist
		subject_canton = CLM_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	# Mexico
	flag_definition = {
		coa = PAG_MEX
		subject_canton = PAG_MEX
		priority = 100
		trigger = {
			scope:actor ?= {
				was_formed_from = MEX
			}
		}
	}
	flag_definition = {
		coa = MEX_communist
		subject_canton = MEX_communist
		priority = 1600
		trigger = {
			coa_def_communist_flag_trigger = yes
			scope:actor ?= {
				was_formed_from = MEX
			}
		}
	}
	flag_definition = {
		coa = MEX_anarchist
		subject_canton = MEX_anarchist
		priority = 1601
		trigger = {
			coa_def_anarchy_flag_trigger = yes
			scope:actor ?= {
				was_formed_from = MEX
			}
		}
	}
	
	# Argentina
	flag_definition = {
		coa = PAG_ARG
		subject_canton = PAG_ARG
		priority = 100
		trigger = {
			scope:actor ?= {
				was_formed_from = ARG
			}
		}
	}
	flag_definition = {
		coa = ARG_communist
		subject_canton = ARG_communist
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			scope:actor ?= {
				was_formed_from = ARG
			}
		}
	}
	flag_definition = {
		coa = ARG_anarchist
		subject_canton = ARG_anarchist
		priority = 1601
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
			scope:actor ?= {
				was_formed_from = ARG
			}
		}
	}
	
	# Cuba
	flag_definition = {
		coa = PAG_CUB
		subject_canton = PAG_CUB
		priority = 100
		trigger = {
			scope:actor ?= {
				was_formed_from = CUB
			}
		}
	}
	flag_definition = {
		coa = CUB
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			scope:actor ?= {
				was_formed_from = CUB
			}
		}
	}
	flag_definition = {
		coa = CUB_anarchist
		subject_canton = CUB_anarchist
		priority = 1601
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
			scope:actor ?= {
				was_formed_from = CUB
			}
		}
	}
}

CSR = { # Cono Sur
	flag_definition = {
		coa = CSR
		subject_canton = CSR
	}
	
	# WB's additions

	# Argentina
	flag_definition = {
		coa = ARG_communist
		subject_canton = ARG_communist
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			scope:actor ?= {
				was_formed_from = ARG
			}
		}
	}
	flag_definition = {
		coa = ARG_anarchist
		subject_canton = ARG_anarchist
		priority = 1601
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
			scope:actor ?= {
				was_formed_from = ARG
			}
		}
	}
}

CAC = { # Cascadia
	flag_definition = {
		coa = CAC
		subject_canton = CAC
		priority = 1		
	}	
	flag_definition = {
		coa = ORG_communist
		subject_canton = ORG_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = ORG_subject_GBR
		allow_overlord_canton = yes		
		priority = 50
		trigger = { 
			coa_def_british_ensign_trigger = yes
		}
	}	
	
	# WB's additions
	
	flag_definition = {
		coa = ORG_anarchist
		subject_canton = ORG_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = ORG_dictatorship
		subject_canton = ORG_dictatorship
		allow_overlord_canton = yes			
		priority = 20
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}
}

PAS = { # Pacific States
	flag_definition = {
		coa = PAS
		subject_canton = PAS
		priority = 1		
	}	
	
	# WB's additions
	
	# Cascadia
	flag_definition = {
		coa = PAS_ORG
		subject_canton = PAS_ORG
		priority = 100
		trigger = {
			scope:actor ?= {
				was_formed_from = ORG
			}
		}
	}
	flag_definition = {
		coa = ORG_communist
		subject_canton = ORG_communist
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			scope:actor ?= {
				was_formed_from = ORG
			}
		}
	}
	flag_definition = {
		coa = ORG_anarchist
		subject_canton = ORG_anarchist
		priority = 1601
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
			scope:actor ?= {
				was_formed_from = ORG
			}
		}
	}

}

HRE = { # Holy Roman Empire
	flag_definition = {
		coa = HRE
		subject_canton = HRE
		}
		
	flag_definition = {
		coa = HRE_republic
		subject_canton = HRE_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = HRE_communist
		subject_canton = HRE_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	
	}	
	flag_definition = {
		coa = HRE_theocracy
		subject_canton = HRE_theocracy
		priority = 20
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = HRE_anarchist
		subject_canton = HRE_anarchist
		priority = 2000
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
		}
	}
	
	## WB's additions
	
	flag_definition = {
		coa = HRE_dictatorship
		subject_canton = HRE_dictatorship
		allow_overlord_canton = yes			
		priority = 20
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}
	
	# Austria
	
	flag_definition = {
		coa = HRE_AUS
		subject_canton = HRE_AUS
		priority = 90
		trigger = {
			scope:actor ?= { has_variable = WB_is_Austria_var }
		}
	}
		
	flag_definition = {
		coa = HRE_republic_AUS
		subject_canton = HRE_republic_AUS
		priority = 100
		trigger = { 
			coa_def_republic_flag_trigger = yes
			
			scope:actor ?= { has_variable = WB_is_Austria_var }
		}
	}
	flag_definition = {
		coa = HRE_communist_AUS
		subject_canton = HRE_communist_AUS
		priority = 1501
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= { has_variable = WB_is_Austria_var }
		}
	
	}	
	flag_definition = {
		coa = HRE_theocracy_AUS
		subject_canton = HRE_theocracy_AUS
		priority = 200
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			scope:actor ?= { has_variable = WB_is_Austria_var }
		}
	}
	flag_definition = {
		coa = HRE_anarchist_AUS
		subject_canton = HRE_anarchist_AUS
		priority = 2001
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
				
				scope:actor ?= { has_variable = WB_is_Austria_var }
			}
		}
	}
	
	flag_definition = {
		coa = HRE_dictatorship_AUS
		subject_canton = HRE_dictatorship_AUS
		allow_overlord_canton = yes			
		priority = 120
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
			
			scope:actor ?= { has_variable = WB_is_Austria_var }
		}
	}
	
	# Austria-Hungary HRE
	
	flag_definition = {
		coa = HRE_AUS_HUN
		subject_canton = HRE_AUS_HUN
		priority = 91
		trigger = {
			exists = scope:actor
			OR = {
				AND = {
					scope:actor = { has_variable = WB_is_Austria_Hungary_var }
					NOT = { exists = c:HUN }
				}
				
				scope:actor = { has_variable = WB_force_use_Austria_Hungary_var }
			}
		}
	}
		
	flag_definition = {
		coa = HRE_republic_AUS_HUN
		subject_canton = HRE_republic_AUS_HUN
		priority = 101
		trigger = { 
			coa_def_republic_flag_trigger = yes
			
			exists = scope:actor
			OR = {
				AND = {
					scope:actor = { has_variable = WB_is_Austria_Hungary_var }
					NOT = { exists = c:HUN }
				}
				
				scope:actor = { has_variable = WB_force_use_Austria_Hungary_var }
			}
		}
	}
	flag_definition = {
		coa = HRE_communist_AUS_HUN
		subject_canton = HRE_communist_AUS_HUN
		priority = 1502
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			exists = scope:actor
			OR = {
				AND = {
					scope:actor = { has_variable = WB_is_Austria_Hungary_var }
					NOT = { exists = c:HUN }
				}
				
				scope:actor = { has_variable = WB_force_use_Austria_Hungary_var }
			}
		}
	
	}	
	flag_definition = {
		coa = HRE_theocracy_AUS_HUN
		subject_canton = HRE_theocracy_AUS_HUN
		priority = 201
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			exists = scope:actor
			OR = {
				AND = {
					scope:actor = { has_variable = WB_is_Austria_Hungary_var }
					NOT = { exists = c:HUN }
				}
				
				scope:actor = { has_variable = WB_force_use_Austria_Hungary_var }
			}
		}
	}
	flag_definition = {
		coa = HRE_anarchist_AUS_HUN
		subject_canton = HRE_anarchist_AUS_HUN
		priority = 2002
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
				
				exists = scope:actor
			OR = {
				AND = {
					scope:actor = { has_variable = WB_is_Austria_Hungary_var }
					NOT = { exists = c:HUN }
				}
				
				scope:actor = { has_variable = WB_force_use_Austria_Hungary_var }
			}
			}
		}
	}
	
	flag_definition = {
		coa = HRE_dictatorship_AUS_HUN
		subject_canton = HRE_dictatorship_AUS_HUN
		allow_overlord_canton = yes			
		priority = 121
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
				
				exists = scope:actor
			OR = {
				AND = {
					scope:actor = { has_variable = WB_is_Austria_Hungary_var }
					NOT = { exists = c:HUN }
				}
				
				scope:actor = { has_variable = WB_force_use_Austria_Hungary_var }
			}
			}
		}
	}
	
	# Prussia
	
	flag_definition = {
		coa = HRE_PRU
		subject_canton = HRE_PRU
		priority = 90
		trigger = {
			scope:actor ?= { has_variable = WB_is_Prussia_var }
		}
	}
		
	flag_definition = {
		coa = HRE_republic_PRU
		subject_canton = HRE_republic_PRU
		priority = 100
		trigger = { 
			coa_def_republic_flag_trigger = yes
			
			scope:actor ?= { has_variable = WB_is_Prussia_var }
		}
	}
	flag_definition = {
		coa = HRE_communist_PRU
		subject_canton = HRE_communist_PRU
		priority = 1501
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= { has_variable = WB_is_Prussia_var }
		}
	
	}	
	flag_definition = {
		coa = HRE_theocracy_PRU
		subject_canton = HRE_theocracy_PRU
		priority = 200
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			scope:actor ?= { has_variable = WB_is_Prussia_var }
		}
	}
	flag_definition = {
		coa = HRE_anarchist_PRU
		subject_canton = HRE_anarchist_PRU
		priority = 2001
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
				
				scope:actor ?= { has_variable = WB_is_Prussia_var }
			}
		}
	}
	
	flag_definition = {
		coa = HRE_dictatorship_PRU
		subject_canton = HRE_dictatorship_PRU
		allow_overlord_canton = yes			
		priority = 120
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
			
			scope:actor ?= { has_variable = WB_is_Prussia_var }
		}
	}
}

RMA = { # Roman Empire
	flag_definition = {
		coa = RMA
		subject_canton = RMA
	}	
	flag_definition = {
		coa = RMA_communist
		subject_canton = RMA_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = RMA_anarchist
		subject_canton = RMA_anarchist
		priority = 2000
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
		}
	}
	
	# Greek Rome
	
	flag_definition = {
		coa = RMA_greek
		subject_canton = RMA_greek
		priority = 100
		trigger = { 
			OR = {
				scope:actor ?= {
					OR = {
						was_formed_from = GRE
						was_formed_from = BYZ
						has_variable = WB_is_Greece_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:greek } }
			}
		}
	}	
	flag_definition = {
		coa = RMA_communist_greek
		subject_canton = RMA_communist_greek
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			OR = {
				scope:actor ?= {
					OR = {
						was_formed_from = GRE
						was_formed_from = BYZ
						has_variable = WB_is_Greece_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:greek } }
			}
		}
	}	
	flag_definition = {
		coa = RMA_anarchist_greek
		subject_canton = RMA_anarchist_greek
		priority = 2100
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
			
			OR = {
				scope:actor ?= {
					OR = {
						was_formed_from = GRE
						was_formed_from = BYZ
						has_variable = WB_is_Greece_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:greek } }
			}
		}
	}
	
	# North Italian Rome
	
	flag_definition = {
		coa = RMA_north_italian
		subject_canton = RMA_north_italian
		priority = 100
		trigger = { 
			OR = {
				scope:actor ?= {
					OR = {
					was_formed_from = SAR
					was_formed_from = MOD
					was_formed_from = LUC
					was_formed_from = PAR
					was_formed_from = TUS
					was_formed_from = LOM
					was_formed_from = VEN
					was_formed_from = TRE
					was_formed_from = LMV
					
					has_variable = WB_is_Sardinia_Piedmont_var
					has_variable = WB_is_Modena_var
					has_variable = WB_is_Lucca_var
					has_variable = WB_is_Parma_var
					has_variable = WB_is_Tuscany_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Trieste_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:north_italian } }
			}
		}
	}	
	flag_definition = {
		coa = RMA_communist_north_italian
		subject_canton = RMA_communist_north_italian
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			OR = {
				scope:actor ?= {
					OR = {
					was_formed_from = SAR
					was_formed_from = MOD
					was_formed_from = LUC
					was_formed_from = PAR
					was_formed_from = TUS
					was_formed_from = LOM
					was_formed_from = VEN
					was_formed_from = TRE
					was_formed_from = LMV
					
					has_variable = WB_is_Sardinia_Piedmont_var
					has_variable = WB_is_Modena_var
					has_variable = WB_is_Lucca_var
					has_variable = WB_is_Parma_var
					has_variable = WB_is_Tuscany_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Trieste_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:north_italian } }
			}
		}
	}	
	flag_definition = {
		coa = RMA_anarchist_north_italian
		subject_canton = RMA_anarchist_north_italian
		priority = 2100
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
			
			OR = {
				scope:actor ?= {
					OR = {
					was_formed_from = SAR
					was_formed_from = MOD
					was_formed_from = LUC
					was_formed_from = PAR
					was_formed_from = TUS
					was_formed_from = LOM
					was_formed_from = VEN
					was_formed_from = TRE
					was_formed_from = LMV
					
					has_variable = WB_is_Sardinia_Piedmont_var
					has_variable = WB_is_Modena_var
					has_variable = WB_is_Lucca_var
					has_variable = WB_is_Parma_var
					has_variable = WB_is_Tuscany_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Trieste_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:north_italian } }
			}
		}
	}
	
	# South Italian Rome
	
	flag_definition = {
		coa = RMA_south_italian
		subject_canton = RMA_south_italian
		priority = 100
		trigger = { 
			OR = {
				scope:actor ?= {
					was_formed_from = SIC
				}
				
				scope:actor ?= {
					has_variable = WB_is_Two_Sicilies_var
				}
				
				c:RMA ?= { ruler = { has_culture = cu:south_italian } }
			}
		}
	}	
	flag_definition = {
		coa = RMA_communist_south_italian
		subject_canton = RMA_communist_south_italian
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			OR = {
				scope:actor ?= {
					was_formed_from = SIC
				}
				
				scope:actor ?= {
					has_variable = WB_is_Two_Sicilies_var
				}
				
				c:RMA ?= { ruler = { has_culture = cu:south_italian } }
			}
		}
	}	
	flag_definition = {
		coa = RMA_anarchist_south_italian
		subject_canton = RMA_anarchist_south_italian
		priority = 2100
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
			
			OR = {
				scope:actor ?= {
					was_formed_from = SIC
				}
				
				scope:actor ?= {
					has_variable = WB_is_Two_Sicilies_var
				}
				
				c:RMA ?= { ruler = { has_culture = cu:south_italian } }
			}
		}
	}
	
	# Papal Rome
	
	flag_definition = {
		coa = RMA_papal
		subject_canton = RMA_papal
		priority = 100
		trigger = { 
			scope:actor ?= { has_variable = WB_is_Papal_States_var }
		}
	}	
	flag_definition = {
		coa = RMA_communist_papal
		subject_canton = RMA_communist_papal
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= { has_variable = WB_is_Papal_States_var }
		}
	}	
	flag_definition = {
		coa = RMA_anarchist_papal
		subject_canton = RMA_anarchist_papal
		priority = 2100
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
			
			scope:actor ?= { has_variable = WB_is_Papal_States_var }
		}
	}
	
	# French Rome
	
	flag_definition = {
		coa = RMA_french
		subject_canton = RMA_french
		priority = 100
		trigger = { 
			OR = {
				scope:actor ?= {
					OR = {
						was_formed_from = FRA
						has_variable = WB_is_France_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:french } }
			}
		}
	}	
	flag_definition = {
		coa = RMA_communist_french
		subject_canton = RMA_communist_french
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			OR = {
				scope:actor ?= {
					OR = {
						was_formed_from = FRA
						has_variable = WB_is_France_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:french } }
			}
		}
	}	
	flag_definition = {
		coa = RMA_anarchist_french
		subject_canton = RMA_anarchist_french
		priority = 2100
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
			
			OR = {
				scope:actor ?= {
					OR = {
						was_formed_from = FRA
						has_variable = WB_is_France_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:french } }
			}
		}
	}
	
	# Spanish Rome
	
	flag_definition = {
		coa = RMA_spanish
		subject_canton = RMA_spanish
		priority = 100
		trigger = { 
			OR = {
				scope:actor ?= {
					OR = {
						was_formed_from = SPA
						has_variable = WB_is_Spain_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:spanish } }
			}
		}
	}	
	flag_definition = {
		coa = RMA_communist_spanish
		subject_canton = RMA_communist_spanish
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			OR = {
				scope:actor ?= {
					OR = {
						was_formed_from = SPA
						has_variable = WB_is_Spain_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:spanish } }
			}
		}
	}	
	flag_definition = {
		coa = RMA_anarchist_spanish
		subject_canton = RMA_anarchist_spanish
		priority = 2100
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
			
			OR = {
				scope:actor ?= {
					OR = {
						was_formed_from = SPA
						has_variable = WB_is_Spain_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:spanish } }
			}
		}
	}
	
	# Portuguese Rome
	
	flag_definition = {
		coa = RMA_portuguese
		subject_canton = RMA_portuguese
		priority = 100
		trigger = { 
			OR = {
				scope:actor ?= {
					OR = {
						was_formed_from = POR
						has_variable = WB_is_Portugal_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:portuguese } }
			}
		}
	}	
	flag_definition = {
		coa = RMA_communist_portuguese
		subject_canton = RMA_communist_portuguese
		priority = 1600
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			OR = {
				scope:actor ?= {
					OR = {
						was_formed_from = POR
						has_variable = WB_is_Portugal_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:portuguese } }
			}
		}
	}	
	flag_definition = {
		coa = RMA_anarchist_portuguese
		subject_canton = RMA_anarchist_portuguese
		priority = 2100
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
			
			OR = {
				scope:actor ?= {
					OR = {
						was_formed_from = POR
						has_variable = WB_is_Portugal_var
					}
				}
				
				c:RMA ?= { ruler = { has_culture = cu:portuguese } }
			}
		}
	}
}

EUR = { # European Union / The EU
	flag_definition = {
		coa = EUR
		subject_canton = EUR
	}
		
	flag_definition = {
		coa = EUR_monarchy
		subject_canton = EUR_monarchy
		priority = 9
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = EUR_communist
		subject_canton = EUR_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	
	}	
	flag_definition = {
		coa = EUR_theocracy
		subject_canton = EUR_theocracy
		priority = 20
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = EUR_anarchist
		subject_canton = EUR_anarchist
		priority = 2000
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
		}
	}
	flag_definition = {
		coa = EUR_absolute_monarchy
		subject_canton = EUR_absolute_monarchy
		priority = 10
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
	
	# French EU
	
	flag_definition = {
		coa = EUR_french
		subject_canton = EUR_french
		priority = 100
		
		trigger = { 
			scope:actor ?= {
				OR = {
					was_formed_from = FRA
					has_variable = WB_is_France_var
				}
			}
		}
	}
		
	flag_definition = {
		coa = EUR_monarchy_french
		subject_canton = EUR_monarchy_french
		priority = 110
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = FRA
					has_variable = WB_is_France_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_communist_french
		subject_canton = EUR_communist_french
		priority = 1501
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = FRA
					has_variable = WB_is_France_var
				}
			}
		}
	
	}	
	flag_definition = {
		coa = EUR_theocracy_french
		subject_canton = EUR_theocracy_french
		priority = 120
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = FRA
					has_variable = WB_is_France_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_anarchist_french
		subject_canton = EUR_anarchist_french
		priority = 2001
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
			
			scope:actor ?= {
				OR = {
					was_formed_from = FRA
					has_variable = WB_is_France_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_absolute_monarchy_french
		subject_canton = EUR_absolute_monarchy_french
		priority = 111
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = FRA
					has_variable = WB_is_France_var
				}
			}
		}
	}
	
	# British EU
	
	flag_definition = {
		coa = EUR_british
		subject_canton = EUR_british
		priority = 100
		
		trigger = {
			scope:actor ?= {
				OR = {
					was_formed_from = GBR
					has_variable = WB_is_Britain_var
				}
			}
		}
	}
		
	flag_definition = {
		coa = EUR_monarchy_british
		subject_canton = EUR_monarchy_british
		priority = 110
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = GBR
					has_variable = WB_is_Britain_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_communist_british
		subject_canton = EUR_communist_british
		priority = 1501
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = GBR
					has_variable = WB_is_Britain_var
				}
			}
		}
	
	}	
	flag_definition = {
		coa = EUR_theocracy_british
		subject_canton = EUR_theocracy_british
		priority = 120
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = GBR
					has_variable = WB_is_Britain_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_anarchist_british
		subject_canton = EUR_anarchist_british
		priority = 2001
		trigger = {
			scope:actor ?= {
				OR = {
					was_formed_from = GBR
					has_variable = WB_is_Britain_var
				}
			}
		
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
		}
	}
	flag_definition = {
		coa = EUR_absolute_monarchy_british
		subject_canton = EUR_absolute_monarchy_british
		priority = 111
		trigger = {
			coa_def_absolute_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = GBR
					has_variable = WB_is_Britain_var
				}
			}
		}
	}
	
	# German EU
	
	flag_definition = {
		coa = EUR_german
		subject_canton = EUR_german
		priority = 100
		
		trigger = { 
			scope:actor ?= {
				OR = {
					was_formed_from = GER
					has_variable = WB_is_Prussia_var
				}
			}
		}
	}
		
	flag_definition = {
		coa = EUR_monarchy_german
		subject_canton = EUR_monarchy_german
		priority = 110
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = GER
					has_variable = WB_is_Prussia_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_communist_german
		subject_canton = EUR_communist_german
		priority = 1501
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = GER
					has_variable = WB_is_Prussia_var
				}
			}
		}
	
	}	
	flag_definition = {
		coa = EUR_theocracy_german
		subject_canton = EUR_theocracy_german
		priority = 120
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = GER
					has_variable = WB_is_Prussia_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_anarchist_german
		subject_canton = EUR_anarchist_german
		priority = 2001
		trigger = {
			scope:actor ?= {
				OR = {
					was_formed_from = GER
					has_variable = WB_is_Prussia_var
				}
			}
		
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
		}
	}
	flag_definition = {
		coa = EUR_absolute_monarchy_german
		subject_canton = EUR_absolute_monarchy_german
		priority = 111
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = GER
					has_variable = WB_is_Prussia_var
				}
			}
		}
	}
	
	# Austrian EU
	
	flag_definition = {
		coa = EUR_austrian
		subject_canton = EUR_austrian
		priority = 101
		
		trigger = { 
			scope:actor ?= {
				OR = {
					was_formed_from = AUS
					has_variable = WB_is_Austria_var
				}
			}
		}
	}
		
	flag_definition = {
		coa = EUR_monarchy_austrian
		subject_canton = EUR_monarchy_austrian
		priority = 111
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = AUS
					has_variable = WB_is_Austria_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_communist_austrian
		subject_canton = EUR_communist_austrian
		priority = 1502
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = AUS
					has_variable = WB_is_Austria_var
				}
			}
		}
	
	}	
	flag_definition = {
		coa = EUR_theocracy_austrian
		subject_canton = EUR_theocracy_austrian
		priority = 121
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = AUS
					has_variable = WB_is_Austria_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_anarchist_austrian
		subject_canton = EUR_anarchist_austrian
		priority = 2002
		trigger = {
			scope:actor ?= {
				OR = {
					was_formed_from = AUS
					has_variable = WB_is_Austria_var
				}
			}
		
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
		}
	}
	flag_definition = {
		coa = EUR_absolute_monarchy_austrian
		subject_canton = EUR_absolute_monarchy_austrian
		priority = 112
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = AUS
					has_variable = WB_is_Austria_var
				}
			}
		}
	}
	
	# Italian EU
	
	flag_definition = {
		coa = EUR_italian
		subject_canton = EUR_italian
		priority = 100
		
		trigger = { 
			scope:actor ?= {
				OR = {
					was_formed_from = ITA
					
					has_variable = WB_is_Sardinia_Piedmont_var
					has_variable = WB_is_Modena_var
					has_variable = WB_is_Lucca_var
					has_variable = WB_is_Parma_var
					has_variable = WB_is_Tuscany_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Trieste_var
					has_variable = WB_is_Two_Sicilies_var
					has_variable = WB_is_Papal_States_var
				}
			}
		}
	}
		
	flag_definition = {
		coa = EUR_monarchy_italian
		subject_canton = EUR_monarchy_italian
		priority = 110
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = ITA
					
					has_variable = WB_is_Sardinia_Piedmont_var
					has_variable = WB_is_Modena_var
					has_variable = WB_is_Lucca_var
					has_variable = WB_is_Parma_var
					has_variable = WB_is_Tuscany_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Trieste_var
					has_variable = WB_is_Two_Sicilies_var
					has_variable = WB_is_Papal_States_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_communist_italian
		subject_canton = EUR_communist_italian
		priority = 1501
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = ITA
					
					has_variable = WB_is_Sardinia_Piedmont_var
					has_variable = WB_is_Modena_var
					has_variable = WB_is_Lucca_var
					has_variable = WB_is_Parma_var
					has_variable = WB_is_Tuscany_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Trieste_var
					has_variable = WB_is_Two_Sicilies_var
					has_variable = WB_is_Papal_States_var
				}
			}
		}
	
	}	
	flag_definition = {
		coa = EUR_theocracy_italian
		subject_canton = EUR_theocracy_italian
		priority = 120
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = ITA
					
					has_variable = WB_is_Sardinia_Piedmont_var
					has_variable = WB_is_Modena_var
					has_variable = WB_is_Lucca_var
					has_variable = WB_is_Parma_var
					has_variable = WB_is_Tuscany_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Trieste_var
					has_variable = WB_is_Two_Sicilies_var
					has_variable = WB_is_Papal_States_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_anarchist_italian
		subject_canton = EUR_anarchist_italian
		priority = 2001
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
			
			scope:actor ?= {
				OR = {
					was_formed_from = ITA
					
					has_variable = WB_is_Sardinia_Piedmont_var
					has_variable = WB_is_Modena_var
					has_variable = WB_is_Lucca_var
					has_variable = WB_is_Parma_var
					has_variable = WB_is_Tuscany_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Trieste_var
					has_variable = WB_is_Two_Sicilies_var
					has_variable = WB_is_Papal_States_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_absolute_monarchy_italian
		subject_canton = EUR_absolute_monarchy_italian
		priority = 111
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = ITA
					
					has_variable = WB_is_Sardinia_Piedmont_var
					has_variable = WB_is_Modena_var
					has_variable = WB_is_Lucca_var
					has_variable = WB_is_Parma_var
					has_variable = WB_is_Tuscany_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Lombardia_var
					has_variable = WB_is_Trieste_var
					has_variable = WB_is_Two_Sicilies_var
					has_variable = WB_is_Papal_States_var
				}
			}
		}
	}
	
	# Spanish EU
	
	flag_definition = {
		coa = EUR_spanish
		subject_canton = EUR_spanish
		priority = 100
		
		trigger = { 
			scope:actor ?= {
				OR = {
					was_formed_from = SPA
					has_variable = WB_is_Spain_var
				}
			}
		}
	}
		
	flag_definition = {
		coa = EUR_monarchy_spanish
		subject_canton = EUR_monarchy_spanish
		priority = 110
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = SPA
					has_variable = WB_is_Spain_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_communist_spanish
		subject_canton = EUR_communist_spanish
		priority = 1501
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = SPA
					has_variable = WB_is_Spain_var
				}
			}
		}
	
	}	
	flag_definition = {
		coa = EUR_theocracy_spanish
		subject_canton = EUR_theocracy_spanish
		priority = 120
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = SPA
					has_variable = WB_is_Spain_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_anarchist_spanish
		subject_canton = EUR_anarchist_spanish
		priority = 2001
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
			
			scope:actor ?= {
				OR = {
					was_formed_from = SPA
					has_variable = WB_is_Spain_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_absolute_monarchy_spanish
		subject_canton = EUR_absolute_monarchy_spanish
		priority = 111
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = SPA
					has_variable = WB_is_Spain_var
				}
			}
		}
	}
	
	# Portuguese EU
	
	flag_definition = {
		coa = EUR_portuguese
		subject_canton = EUR_portuguese
		priority = 100
		
		trigger = { 
			scope:actor ?= {
				OR = {
					was_formed_from = POR
					has_variable = WB_is_Portugal_var
				}
			}
		}
	}
		
	flag_definition = {
		coa = EUR_monarchy_portuguese
		subject_canton = EUR_monarchy_portuguese
		priority = 110
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = POR
					has_variable = WB_is_Portugal_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_communist_portuguese
		subject_canton = EUR_communist_portuguese
		priority = 1501
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = POR
					has_variable = WB_is_Portugal_var
				}
			}
		}
	
	}	
	flag_definition = {
		coa = EUR_theocracy_portuguese
		subject_canton = EUR_theocracy_portuguese
		priority = 120
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = POR
					has_variable = WB_is_Portugal_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_anarchist_portuguese
		subject_canton = EUR_anarchist_portuguese
		priority = 2001
		trigger = {
			scope:actor ?= {
				OR = {
					was_formed_from = POR
					has_variable = WB_is_Portugal_var
				}
			}
		
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
		}
	}
	flag_definition = {
		coa = EUR_absolute_monarchy_portuguese
		subject_canton = EUR_absolute_monarchy_portuguese
		priority = 111
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = POR
					has_variable = WB_is_Portugal_var
				}
			}
		}
	}
	
	# Greek EU
	
	flag_definition = {
		coa = EUR_greek
		subject_canton = EUR_greek
		priority = 100
		
		trigger = { 
			scope:actor ?= {
				OR = {
					was_formed_from = GRE
					was_formed_from = BYZ
					has_variable = WB_is_Greece_var
				}
			}
		}
	}
		
	flag_definition = {
		coa = EUR_monarchy_greek
		subject_canton = EUR_monarchy_greek
		priority = 110
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = GRE
					was_formed_from = BYZ
					has_variable = WB_is_Greece_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_communist_greek
		subject_canton = EUR_communist_greek
		priority = 1501
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = GRE
					was_formed_from = BYZ
					has_variable = WB_is_Greece_var
				}
			}
		}
	
	}	
	flag_definition = {
		coa = EUR_theocracy_greek
		subject_canton = EUR_theocracy_greek
		priority = 120
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = GRE
					was_formed_from = BYZ
					has_variable = WB_is_Greece_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_anarchist_greek
		subject_canton = EUR_anarchist_greek
		priority = 2001
		trigger = {
			scope:actor ?= {
				OR = {
					was_formed_from = GRE
					was_formed_from = BYZ
					has_variable = WB_is_Greece_var
				}
			}
		
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
		}
	}
	flag_definition = {
		coa = EUR_absolute_monarchy_greek
		subject_canton = EUR_absolute_monarchy_greek
		priority = 111
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = GRE
					was_formed_from = BYZ
					has_variable = WB_is_Greece_var
				}
			}
		}
	}
	
	# Romanian EU
	
	flag_definition = {
		coa = EUR_romanian
		subject_canton = EUR_romanian
		priority = 100
		
		trigger = { 
			scope:actor ?= {
				OR = {
					was_formed_from = ROM
					has_variable = WB_is_Wallachia_var
				}
			}
		}
	}
		
	flag_definition = {
		coa = EUR_monarchy_romanian
		subject_canton = EUR_monarchy_romanian
		priority = 110
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = ROM
					has_variable = WB_is_Wallachia_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_communist_romanian
		subject_canton = EUR_communist_romanian
		priority = 1501
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = ROM
					has_variable = WB_is_Wallachia_var
				}
			}
		}
	
	}	
	flag_definition = {
		coa = EUR_theocracy_romanian
		subject_canton = EUR_theocracy_romanian
		priority = 120
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = ROM
					has_variable = WB_is_Wallachia_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_anarchist_romanian
		subject_canton = EUR_anarchist_romanian
		priority = 2001
		trigger = {
			scope:actor ?= {
				OR = {
					was_formed_from = ROM
					has_variable = WB_is_Wallachia_var
				}
			}
		
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
		}
	}
	flag_definition = {
		coa = EUR_absolute_monarchy_romanian
		subject_canton = EUR_absolute_monarchy_romanian
		priority = 111
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = ROM
					has_variable = WB_is_Wallachia_var
				}
			}
		}
	}
	
	# Scandinavian EU
	
	flag_definition = {
		coa = EUR_scandinavian
		subject_canton = EUR_scandinavian
		priority = 100
		
		trigger = {
			scope:actor ?= {
				OR = {
					was_formed_from = SCA
					has_variable = WB_is_Sweden_var
					has_variable = WB_is_Norway_var
					has_variable = WB_is_Denmark_var
				}
			}
		}
	}
		
	flag_definition = {
		coa = EUR_monarchy_scandinavian
		subject_canton = EUR_monarchy_scandinavian
		priority = 110
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = SCA
					has_variable = WB_is_Sweden_var
					has_variable = WB_is_Norway_var
					has_variable = WB_is_Denmark_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_communist_scandinavian
		subject_canton = EUR_communist_scandinavian
		priority = 1501
		trigger = { 
			coa_def_communist_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = SCA
					has_variable = WB_is_Sweden_var
					has_variable = WB_is_Norway_var
					has_variable = WB_is_Denmark_var
				}
			}
		}
	
	}	
	flag_definition = {
		coa = EUR_theocracy_scandinavian
		subject_canton = EUR_theocracy_scandinavian
		priority = 120
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = SCA
					has_variable = WB_is_Sweden_var
					has_variable = WB_is_Norway_var
					has_variable = WB_is_Denmark_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_anarchist_scandinavian
		subject_canton = EUR_anarchist_scandinavian
		priority = 2001
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_anarchy
			}
			
			scope:actor ?= {
				OR = {
					was_formed_from = SCA
					has_variable = WB_is_Sweden_var
					has_variable = WB_is_Norway_var
					has_variable = WB_is_Denmark_var
				}
			}
		}
	}
	flag_definition = {
		coa = EUR_absolute_monarchy_scandinavian
		subject_canton = EUR_absolute_monarchy_scandinavian
		priority = 111
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
			
			scope:actor ?= {
				OR = {
					was_formed_from = SCA
					has_variable = WB_is_Sweden_var
					has_variable = WB_is_Norway_var
					has_variable = WB_is_Denmark_var
				}
			}
		}
	}
}