###################################
#
# WORLD OF IDEOLOGIES
# - Anarchist / Libertarian Events
#
###################################

namespace = An

# Agitators Expelled
character_event = {
	id = An.1
	desc = EVTDESC_An_1
	picture = GFX_evt_anarchists_expelled
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	immediate = {
		any_realm_lord = {
			limit = {
				OR = {
					religion = anarchist
					religion = anarcho-syndicalism
					religion = anarcho-mutualism
					religion = anarcho-feminism
					religion = ecoanarchism
					religion = anarcho-capitalism
					religion = minarchist
					religion = paleolibertarianism
					religion = geolibertarianism
				}
				ai = yes
			}
			any_demesne_title = {
				grant_title_no_opinion = ROOT
			}
		}
	}

	option = {
		name = EVTOPTA_An_1
		hidden_tooltip = {
			any_realm_lord = {
				limit = { 
					OR = {
						ai = no
					}
				}
				character_event = { id = An.4 }
			}
		}
	}
}

# Anarchists (and/or Libertarians) Welcomed Back
character_event = {
	id = An.2
	desc = EVTDESC_An_2
	picture = GFX_evt_libertarian_comeback
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTA_An_2
		hidden_tooltip = {
			any_realm_lord = {
				limit = { ai = no }
				character_event = { id = An.5 }
			}
		}
	}
}

# Anarchists Welcomed Back due to ruler now being Anarchist!
character_event = {
	id = An.3
	desc = EVTDESC_An_3
	picture = GFX_evt_libertarian_comeback
	border = GFX_event_normal_frame_religion

	only_playable = yes
	religion_group = jewish_group
	only_independent = yes
	
	trigger = {
		has_character_modifier = expelled_anarchists
	}
	
	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = EVTOPTA_An_3
		piety = 100
		remove_character_modifier = expelled_anarchists
		custom_tooltip = {
			text = anarchists_are_welcome
		}
		hidden_tooltip = {
			any_realm_lord = {
				limit = { ai = no }
				character_event = { id = An.5 }
			}
		}
	}
}

# Anarchists Expelled (Notifier for Vassals)
character_event = {
	id = An.4
	desc = EVTDESC_An_4
	picture = GFX_evt_anarchists_expelled
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_An_4
		trigger = {
			NOT = { religion_group = communism }
		}
	}
	option = {
		name = EVTOPTB_An_4
		trigger = {
			religion_group = communism
		}
	}
}

# Anarchists Welcomed Back (Notifier for Vassals)
character_event = {
	id = An.5
	desc = EVTDESC_An_5
	picture = GFX_evt_libertarian_comeback
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_An_5
		trigger = {
			NOT = { religion_group = communism }
		}
	}
	option = {
		name = EVTOPTB_An_5
		trigger = {
			religion_group = communism
		}
	}
}

### Anarchist / Libertarian Court Events - Diplomats

# Anarchist / Libertarian Diplomat Appears at Court (Individualist Anarchist)
character_event = {
	id = An.6
	desc = EVTDESC_An_6
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarchist
			female = no
			age = 30
			trait = charismatic_negotiator
			attributes = {
				diplomacy = 13
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = socializer
				}
				30 = {
					add_trait = socializer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	} 
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Diplomat Appears at Court (Anarcho-syndicalist)
character_event = {
	id = An.7
	desc = EVTDESC_An_6
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-syndicalism
			female = no
			age = 30
			trait = charismatic_negotiator
			attributes = {
				diplomacy = 13
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = socializer
				}
				30 = {
					add_trait = socializer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Diplomat Appears at Court (Anarcho-mutualist)
character_event = {
	id = An.8
	desc = EVTDESC_An_6
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-mutualism
			female = no
			age = 30
			trait = charismatic_negotiator
			attributes = {
				diplomacy = 13
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = socializer
				}
				30 = {
					add_trait = socializer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Diplomat Appears at Court (Anarcho-feminist)
character_event = {
	id = An.9
	desc = EVTDESC_An_6
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-feminism
			female = yes
			age = 25
			trait = charismatic_negotiator
			attributes = {
				diplomacy = 13
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = socializer
				}
				30 = {
					add_trait = socializer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Diplomat Appears at Court (Ecoanarchist)
character_event = {
	id = An.10
	desc = EVTDESC_An_6
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = ecoanarchism
			female = yes
			age = 25
			trait = charismatic_negotiator
			attributes = {
				diplomacy = 13
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = socializer
				}
				30 = {
					add_trait = socializer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Diplomat Appears at Court (Anarcho-capitalist)
character_event = {
	id = An.11
	desc = EVTDESC_An_11
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianismreligion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 6000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-capitalism
			female = yes
			age = 30
			trait = charismatic_negotiator
			attributes = {
				diplomacy = 13
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = socializer
				}
				30 = {
					add_trait = socializer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = libertarian_agitator
				duration = 7300
			}
			save_event_target_as = libertarian_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Diplomat Appears at Court (Minarchist)
character_event = {
	id = An.12
	desc = EVTDESC_An_11
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 6000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = minarchist
			female = yes
			age = 30
			trait = charismatic_negotiator
			attributes = {
				diplomacy = 13
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = socializer
				}
				30 = {
					add_trait = socializer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = libertarian_agitator
				duration = 7300
			}
			save_event_target_as = libertarian_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Diplomat Appears at Court (Paleolibertarian)
character_event = {
	id = An.13
	desc = EVTDESC_An_11
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 6000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = paleolibertarianism
			female = yes
			age = 30
			trait = charismatic_negotiator
			attributes = {
				diplomacy = 13
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = socializer
				}
				30 = {
					add_trait = socializer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = libertarian_agitator
				duration = 7300
			}
			save_event_target_as = libertarian_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Diplomat Appears at Court (Geolibertarian)
character_event = {
	id = An.14
	desc = EVTDESC_An_11
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 6000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = geolibertarianism
			female = yes
			age = 30
			trait = charismatic_negotiator
			attributes = {
				diplomacy = 13
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = socializer
				}
				30 = {
					add_trait = socializer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = libertarian_agitator
				duration = 7300
			}
			save_event_target_as = libertarian_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

### Anarchist / Libertarian Court Events - Militia

# Anarchist / Libertarian Militia Appears at Court (Individualist Anarchist)
character_event = {
	id = An.15
	desc = EVTDESC_An_15
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarchist
			female = no
			age = 30
			attributes = {
				martial = 10
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = weak
			remove_trait = slow
			remove_trait = imbecile
			remove_trait = dull
			remove_trait = dwarf
			remove_trait = giant
			remove_trait = hunchback
			remove_trait = clubfooted
			remove_trait = craven
		
			remove_trait = mystic
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seducer
			remove_trait = seductress
			remove_trait = theologian
			remove_trait = scholar
		
			remove_trait = misguided_warrior
			remove_trait = tough_soldier
			remove_trait = skilled_tactician
			remove_trait = brilliant_strategist

			random_list = {
				5 = { add_trait = misguided_warrior }
				10 = { add_trait = tough_soldier }
				20 = { add_trait = skilled_tactician }
				30 = { add_trait = brilliant_strategist }
			}
	
			random_list = { # Flavor Randomization
				35 = { 
					# Nothing
				}
				15 = {
					change_martial = 2
				}
				10 = {
					add_trait = robust
				}
				10 = {
					add_trait = duelist
				}
				10 = {
					add_trait = hunter
				}
				5 = {
					add_trait = strategist
				}
				5 = {
					change_martial = 4
				}
				5 = {
					if = {
						limit = {
							has_dlc = "Reapers"
						}
						add_trait = one_eyed
					}
				}
				5 = { 
					add_trait = shrewd
				}
				1 = { 
					add_trait = giant
				}
			}
			random_list = {
				50 = {
					#Nothing
				}
				10 = {
					add_trait = narrow_flank_leader
				}
				10 = {
					add_trait = defensive_leader
				}
				10 = {
					add_trait = experimenter
				}
				10 = {
					add_trait = flanker
				}
				10 = {
					add_trait = heavy_infantry_leader
				}
				10 = {
					add_trait = inspiring_leader
				}
				10 = {
					add_trait = organizer
				}
				10 = {
					add_trait = siege_leader
				}
				10 = {
					add_trait = trickster
				}
				10 = {
					add_trait = aggressive_leader
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Militia Appears at Court (Anarcho-syndicalist)
character_event = {
	id = An.16
	desc = EVTDESC_An_15
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-syndicalism
			female = no
			age = 30
			attributes = {
				martial = 10
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = weak
			remove_trait = slow
			remove_trait = imbecile
			remove_trait = dull
			remove_trait = dwarf
			remove_trait = giant
			remove_trait = hunchback
			remove_trait = clubfooted
			remove_trait = craven
		
			remove_trait = mystic
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seducer
			remove_trait = seductress
			remove_trait = theologian
			remove_trait = scholar
		
			remove_trait = misguided_warrior
			remove_trait = tough_soldier
			remove_trait = skilled_tactician
			remove_trait = brilliant_strategist

			random_list = {
				5 = { add_trait = misguided_warrior }
				10 = { add_trait = tough_soldier }
				20 = { add_trait = skilled_tactician }
				30 = { add_trait = brilliant_strategist }
			}
	
			random_list = { # Flavor Randomization
				35 = { 
					# Nothing
				}
				15 = {
					change_martial = 2
				}
				10 = {
					add_trait = robust
				}
				10 = {
					add_trait = duelist
				}
				10 = {
					add_trait = hunter
				}
				5 = {
					add_trait = strategist
				}
				5 = {
					change_martial = 4
				}
				5 = {
					if = {
						limit = {
							has_dlc = "Reapers"
						}
						add_trait = one_eyed
					}
				}
				5 = { 
					add_trait = shrewd
				}
				1 = { 
					add_trait = giant
				}
			}
			random_list = {
				50 = {
					#Nothing
				}
				10 = {
					add_trait = narrow_flank_leader
				}
				10 = {
					add_trait = defensive_leader
				}
				10 = {
					add_trait = experimenter
				}
				10 = {
					add_trait = flanker
				}
				10 = {
					add_trait = heavy_infantry_leader
				}
				10 = {
					add_trait = inspiring_leader
				}
				10 = {
					add_trait = organizer
				}
				10 = {
					add_trait = siege_leader
				}
				10 = {
					add_trait = trickster
				}
				10 = {
					add_trait = aggressive_leader
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Militia Appears at Court (Anarcho-capitalist)
character_event = {
	id = An.17
	desc = EVTDESC_An_17
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 6000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-capitalism
			female = no
			age = 30
			attributes = {
				martial = 10
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = weak
			remove_trait = slow
			remove_trait = imbecile
			remove_trait = dull
			remove_trait = dwarf
			remove_trait = giant
			remove_trait = hunchback
			remove_trait = clubfooted
			remove_trait = craven
		
			remove_trait = mystic
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seducer
			remove_trait = seductress
			remove_trait = theologian
			remove_trait = scholar
		
			remove_trait = misguided_warrior
			remove_trait = tough_soldier
			remove_trait = skilled_tactician
			remove_trait = brilliant_strategist

			random_list = {
				5 = { add_trait = misguided_warrior }
				10 = { add_trait = tough_soldier }
				20 = { add_trait = skilled_tactician }
				30 = { add_trait = brilliant_strategist }
			}
	
			random_list = { # Flavor Randomization
				35 = { 
					# Nothing
				}
				15 = {
					change_martial = 2
				}
				10 = {
					add_trait = robust
				}
				10 = {
					add_trait = duelist
				}
				10 = {
					add_trait = hunter
				}
				5 = {
					add_trait = strategist
				}
				5 = {
					change_martial = 4
				}
				5 = {
					if = {
						limit = {
							has_dlc = "Reapers"
						}
						add_trait = one_eyed
					}
				}
				5 = { 
					add_trait = shrewd
				}
				1 = { 
					add_trait = giant
				}
			}
			random_list = {
				50 = {
					#Nothing
				}
				10 = {
					add_trait = narrow_flank_leader
				}
				10 = {
					add_trait = defensive_leader
				}
				10 = {
					add_trait = experimenter
				}
				10 = {
					add_trait = flanker
				}
				10 = {
					add_trait = heavy_infantry_leader
				}
				10 = {
					add_trait = inspiring_leader
				}
				10 = {
					add_trait = organizer
				}
				10 = {
					add_trait = siege_leader
				}
				10 = {
					add_trait = trickster
				}
				10 = {
					add_trait = aggressive_leader
				}
			}
			add_character_modifier = {
				name = libertarian_agitator
				duration = 7300
			}
			save_event_target_as = libertarian_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

### Anarchist / Libertarian Court Events - Administrators

# Anarchist / Libertarian Administrator Appears at Court (Anarcho-mutualist)
character_event = {
	id = An.18
	desc = EVTDESC_An_18
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-mutualism
			female = no
			age = 30
			trait = fortune_builder
			attributes = {
				stewardship = 12
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = administrator
				}
				30 = {
					add_trait = administrator
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Administrator Appears at Court (Anarcho-feminist)
character_event = {
	id = An.19
	desc = EVTDESC_An_18
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-feminism
			female = yes
			age = 25
			trait = fortune_builder
			attributes = {
				stewardship = 12
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = administrator
				}
				30 = {
					add_trait = administrator
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Administrator Appears at Court (Anarcho-capitalist)
character_event = {
	id = An.20
	desc = EVTDESC_An_20
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 6000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-capitalism
			female = no
			age = 30
			trait = fortune_builder
			attributes = {
				stewardship = 12
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = administrator
				}
				30 = {
					add_trait = administrator
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = libertarian_agitator
				duration = 7300
			}
			save_event_target_as = libertarian_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Administrator Appears at Court (Minarchist)
character_event = {
	id = An.21
	desc = EVTDESC_An_20
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 6000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = minarchist
			female = no
			age = 30
			trait = fortune_builder
			attributes = {
				stewardship = 12
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = administrator
				}
				30 = {
					add_trait = administrator
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = libertarian_agitator
				duration = 7300
			}
			save_event_target_as = libertarian_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Administrator Appears at Court (Paleolibertarian)
character_event = {
	id = An.22
	desc = EVTDESC_An_20
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 6000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = paleolibertarianism
			female = no
			age = 30
			trait = fortune_builder
			attributes = {
				stewardship = 12
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = administrator
				}
				30 = {
					add_trait = administrator
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = libertarian_agitator
				duration = 7300
			}
			save_event_target_as = libertarian_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Administrator Appears at Court (Geolibertarian)
character_event = {
	id = An.23
	desc = EVTDESC_An_20
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 6000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = geolibertarianism
			female = no
			age = 30
			trait = fortune_builder
			attributes = {
				stewardship = 12
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = administrator
				}
				30 = {
					add_trait = administrator
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = libertarian_agitator
				duration = 7300
			}
			save_event_target_as = libertarian_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Assassin Appears at Court (Individualist Anarchist)
character_event = {
	id = An.24
	desc = EVTDESC_An_24
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarchist
			female = no
			age = 30
			trait = intricate_webweaver
			attributes = {
				intrigue = 12
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = schemer
				}
				30 = {
					add_trait = schemer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Assassin Appears at Court (Anarcho-syndicalist)
character_event = {
	id = An.25
	desc = EVTDESC_An_24
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-syndicalism
			female = no
			age = 30
			trait = intricate_webweaver
			attributes = {
				intrigue = 12
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = schemer
				}
				30 = {
					add_trait = schemer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Assassin Appears at Court (Anarcho-mutualist)
character_event = {
	id = An.26
	desc = EVTDESC_An_24
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-mutualism
			female = no
			age = 30
			trait = intricate_webweaver
			attributes = {
				intrigue = 12
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = schemer
				}
				30 = {
					add_trait = schemer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Assassin Appears at Court (Anarcho-feminist)
character_event = {
	id = An.27
	desc = EVTDESC_An_24
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-feminism
			female = yes
			age = 25
			trait = intricate_webweaver
			attributes = {
				intrigue = 12
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = schemer
				}
				30 = {
					add_trait = schemer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Assassin Appears at Court (Ecoanarchist)
character_event = {
	id = An.28
	desc = EVTDESC_An_24
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion_group = totalitarist # They're the worst rivals
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = ecoanarchism
			female = no
			age = 25
			trait = intricate_webweaver
			attributes = {
				intrigue = 12
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = schemer
				}
				30 = {
					add_trait = schemer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = anarchist_agitator
				duration = 7300
			}
			save_event_target_as = anarchist_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

# Anarchist / Libertarian Assassin Appears at Court (Anarcho-capitalist)
character_event = {
	id = An.29
	desc = EVTDESC_An_29
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion
	
	NOT = { government = order_government }
	min_age = 16
	prisoner = no
	only_playable = yes
	capable_only = yes
	only_independent = yes
	is_nomadic = no
	mercenary = no
	
	trigger = {
		OR = {
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_anarchists_agitators
				}
				year = 1492
			}
			AND = {
				has_game_rule = {
					name = ANARCHISTS_AGITATORS
					value = yes_early_anarchists_agitators
				}
				year = 1242
			}
		}
		NOR = {
			religion = anarchist
			religion = anarcho-syndicalism
			religion = anarcho-mutualism
			religion = anarcho-feminism
			religion = ecoanarchism
			religion = anarcho-capitalism
			religion = minarchist
			religion = paleolibertarianism
			religion = geolibertarianism
			religion = west_african_pagan
			religion = norse_pagan
			religion = tengri_pagan
			religion = baltic_pagan
			religion = finnish_pagan
			religion = aztec
			religion = slavic_pagan
			religion = zun_pagan
			religion = hellenic_pagan
			religion = bon
			religion = jurchen_pagan # For Umbra Spherae
			religion = melanesian_religion # For Umbra Spherae
			religion = taiwanese_religion # For Umbra Spherae
			religion = philippine_religion # For Umbra Spherae
			religion = bornean_religion # For Umbra Spherae
			religion = sulawesi_religion # For Umbra Spherae
			religion = flores_religion # For Umbra Spherae
			religion = java_religion # For Umbra Spherae
			religion = sumatran_religion # For Umbra Spherae
			religion = malagasy_religion # For Umbra Spherae
			religion = ainu_pantheism # For Umbra Spherae
			religion = south_bantu_mythology # For Umbra Spherae
			religion = east_bantu_mythology # For Umbra Spherae
			religion = omotic_pagan # For Umbra Spherae
			religion = cushitic_pagan # For Umbra Spherae
			religion = nilotic_pagan # For Umbra Spherae
			religion = khoi_san_mythology # For Umbra Spherae
			religion = inuit_pagan # For Umbra Spherae
			religion = algic_pagan # For Umbra Spherae
			religion = mayan # For Umbra Spherae-Reborn
			religion = dreamtime_religion # For Umbra Spherae-Reborn
			religion = animism # For Umbra Spherae-Reborn
			religion = inti # For Umbra Spherae-Reborn
			religion = south_american # For Umbra Spherae-Reborn
			religion = maori_religion # For Umbra Spherae-Reborn
		}
		NOT = { has_character_modifier = expelled_anarchists }
		NOT = { trait = incapable }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 6000
	}
	
	immediate = {
		create_character = {
			random_traits = yes
			culture = random
			dynasty = culture
			religion = anarcho-capitalism
			female = no
			age = 30
			trait = intricate_webweaver
			attributes = {
				intrigue = 12
			}
			flag = ai_flag_refuse_conversion
		}
		new_character = {
			remove_trait = socializer
			remove_trait = gamer
			remove_trait = hedonist
			remove_trait = duelist
			remove_trait = hunter
			remove_trait = strategist
			remove_trait = administrator
			remove_trait = architect
			remove_trait = gardener
			remove_trait = schemer
			remove_trait = impaler
			remove_trait = seductress
			remove_trait = scholar
			remove_trait = theologian
			remove_trait = mystic
			random_list = {
				70 = {
					add_trait = schemer
				}
				30 = {
					add_trait = schemer
					add_trait = shrewd
				}
			}
			add_character_modifier = {
				name = libertarian_agitator
				duration = 7300
			}
			save_event_target_as = libertarian_courtier
		}
	}
	
	option = {
		name = EVTOPTA_An_6
		custom_tooltip = {
			text = anarchist_courtier_tooltip
		}
	}
}

######## The consequences of Anarchist / Libertarian Agitators in your country...

character_event = {
	id = An.30
	desc = EVTDESC_An_30
	picture = GFX_evt_anarchist_troubles
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	is_nomadic = no
	NOT = { religion = anarchist }
	
	trigger = {
		any_host_courtier = {
			AND = {
				prisoner = no
				religion = anarchist
				has_character_modifier = anarchist_agitator
				NOT = { has_character_modifier = suspected_ringleader }
				NOT = { trait = incapable }
			}
		}
		any_demesne_province = {
			NOT = { religion = anarchist }
			NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
			NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
			NOT = { has_province_modifier = stronghold_enlightment }
			NOT = { has_province_modifier = communist_stronghold }
			NOT = { has_province_modifier = totalitarist_stronghold }
		}
	}
	
	mean_time_to_happen = {
		months = 2500
	}
	
	immediate = {
		random_host_courtier = {
			limit = {
				AND = {
					prisoner = no
					religion = anarchist
					has_character_modifier = anarchist_agitator
					NOT = { has_character_modifier = suspected_ringleader }
					NOT = { trait = incapable }
				}
			}
			add_character_modifier = {
				name = suspected_ringleader
				duration = 7300
			}
		}
		random_demesne_province	= {
			limit = {
				NOT = { religion = anarchist }
				NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
				NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
				NOT = { has_province_modifier = stronghold_enlightment }
				NOT = { has_province_modifier = communist_stronghold }
				NOT = { has_province_modifier = totalitarist_stronghold }
			}
			religion = anarchist
			add_province_modifier = {
				name = communist_stronghold
				duration = 3650
			}
		}
	}
	
	option = {
		name = EVTOPTA_An_30
		custom_tooltip = {
			text = anarchist_troubles_tooltip
		}
	}
}

character_event = {
	id = An.31
	desc = EVTDESC_An_30
	picture = GFX_evt_anarchist_troubles
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	is_nomadic = no
	NOT = { religion = anarcho-syndicalism }
	
	trigger = {
		any_host_courtier = {
			AND = {
				prisoner = no
				religion = anarcho-syndicalism
				has_character_modifier = anarchist_agitator
				NOT = { has_character_modifier = suspected_ringleader }
				NOT = { trait = incapable }
			}
		}
		any_demesne_province = {
			NOT = { religion = anarcho-syndicalism }
			NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
			NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
			NOT = { has_province_modifier = stronghold_enlightment }
			NOT = { has_province_modifier = communist_stronghold }
			NOT = { has_province_modifier = totalitarist_stronghold }
		}
	}
	
	mean_time_to_happen = {
		months = 2500
	}
	
	immediate = {
		random_host_courtier = {
			limit = {
				AND = {
					prisoner = no
					religion = anarcho-syndicalism
					has_character_modifier = anarchist_agitator
					NOT = { has_character_modifier = suspected_ringleader }
					NOT = { trait = incapable }
				}
			}
			add_character_modifier = {
				name = suspected_ringleader
				duration = 7300
			}
		}
		random_demesne_province	= {
			limit = {
				NOT = { religion = anarcho-syndicalism }
				NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
				NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
				NOT = { has_province_modifier = stronghold_enlightment }
				NOT = { has_province_modifier = communist_stronghold }
				NOT = { has_province_modifier = totalitarist_stronghold }
			}
			religion = anarcho-syndicalism
			add_province_modifier = {
				name = communist_stronghold
				duration = 3650
			}
		}
	}
	
	option = {
		name = EVTOPTA_An_30
		custom_tooltip = {
			text = anarcho_syndicalism_troubles_tooltip
		}
	}
}

character_event = {
	id = An.32
	desc = EVTDESC_An_30
	picture = GFX_evt_anarchist_troubles
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	is_nomadic = no
	NOT = { religion = anarcho-mutualism }
	
	trigger = {
		any_host_courtier = {
			AND = {
				prisoner = no
				religion = anarcho-mutualism
				has_character_modifier = anarchist_agitator
				NOT = { has_character_modifier = suspected_ringleader }
				NOT = { trait = incapable }
			}
		}
		any_demesne_province = {
			NOT = { religion = anarcho-mutualism }
			NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
			NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
			NOT = { has_province_modifier = stronghold_enlightment }
			NOT = { has_province_modifier = communist_stronghold }
			NOT = { has_province_modifier = totalitarist_stronghold }
		}
	}
	
	mean_time_to_happen = {
		months = 2500
	}
	
	immediate = {
		random_host_courtier = {
			limit = {
				AND = {
					prisoner = no
					religion = anarcho-mutualism
					has_character_modifier = anarchist_agitator
					NOT = { has_character_modifier = suspected_ringleader }
					NOT = { trait = incapable }
				}
			}
			add_character_modifier = {
				name = suspected_ringleader
				duration = 7300
			}
		}
		random_demesne_province	= {
			limit = {
				NOT = { religion = anarcho-mutualism }
				NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
				NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
				NOT = { has_province_modifier = stronghold_enlightment }
				NOT = { has_province_modifier = communist_stronghold }
				NOT = { has_province_modifier = totalitarist_stronghold }
			}
			religion = anarcho-mutualism
			add_province_modifier = {
				name = communist_stronghold
				duration = 3650
			}
		}
	}
	
	option = {
		name = EVTOPTA_An_30
		custom_tooltip = {
			text = anarcho_mutualism_troubles_tooltip
		}
	}
}

character_event = {
	id = An.33
	desc = EVTDESC_An_30
	picture = GFX_evt_anarchist_troubles
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	is_nomadic = no
	NOT = { religion = anarcho-feminism }
	
	trigger = {
		any_host_courtier = {
			AND = {
				prisoner = no
				religion = anarcho-feminism
				has_character_modifier = anarchist_agitator
				NOT = { has_character_modifier = suspected_ringleader }
				NOT = { trait = incapable }
			}
		}
		any_demesne_province = {
			NOT = { religion = anarcho-feminism }
			NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
			NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
			NOT = { has_province_modifier = stronghold_enlightment }
			NOT = { has_province_modifier = communist_stronghold }
			NOT = { has_province_modifier = totalitarist_stronghold }
		}
	}
	
	mean_time_to_happen = {
		months = 2500
	}
	
	immediate = {
		random_host_courtier = {
			limit = {
				AND = {
					prisoner = no
					religion = anarcho-feminism
					has_character_modifier = anarchist_agitator
					NOT = { has_character_modifier = suspected_ringleader }
					NOT = { trait = incapable }
				}
			}
			add_character_modifier = {
				name = suspected_ringleader
				duration = 7300
			}
		}
		random_demesne_province	= {
			limit = {
				NOT = { religion = anarcho-feminism }
				NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
				NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
				NOT = { has_province_modifier = stronghold_enlightment }
				NOT = { has_province_modifier = communist_stronghold }
				NOT = { has_province_modifier = totalitarist_stronghold }
			}
			religion = anarcho-feminism
			add_province_modifier = {
				name = communist_stronghold
				duration = 3650
			}
		}
	}
	
	option = {
		name = EVTOPTA_An_30
		custom_tooltip = {
			text = anarcho_feminism_troubles_tooltip
		}
	}
}

character_event = {
	id = An.34
	desc = EVTDESC_An_30
	picture = GFX_evt_anarchist_troubles
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	is_nomadic = no
	NOT = { religion = ecoanarchism }
	
	trigger = {
		any_host_courtier = {
			AND = {
				prisoner = no
				religion = ecoanarchism
				has_character_modifier = anarchist_agitator
				NOT = { has_character_modifier = suspected_ringleader }
				NOT = { trait = incapable }
			}
		}
		any_demesne_province = {
			NOT = { religion = ecoanarchism }
			NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
			NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
			NOT = { has_province_modifier = stronghold_enlightment }
			NOT = { has_province_modifier = communist_stronghold }
			NOT = { has_province_modifier = totalitarist_stronghold }
		}
	}
	
	mean_time_to_happen = {
		months = 2500
	}
	
	immediate = {
		random_host_courtier = {
			limit = {
				AND = {
					prisoner = no
					religion = ecoanarchism
					has_character_modifier = anarchist_agitator
					NOT = { has_character_modifier = suspected_ringleader }
					NOT = { trait = incapable }
				}
			}
			add_character_modifier = {
				name = suspected_ringleader
				duration = 7300
			}
		}
		random_demesne_province	= {
			limit = {
				NOT = { religion = ecoanarchism }
				NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
				NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
				NOT = { has_province_modifier = stronghold_enlightment }
				NOT = { has_province_modifier = communist_stronghold }
				NOT = { has_province_modifier = totalitarist_stronghold }
			}
			religion = ecoanarchism
			add_province_modifier = {
				name = communist_stronghold
				duration = 3650
			}
		}
	}
	
	option = {
		name = EVTOPTA_An_30
		custom_tooltip = {
			text = ecoanarchism_troubles_tooltip
		}
	}
}

character_event = {
	id = An.35
	desc = EVTDESC_An_35
	picture = GFX_evt_anarchist_troubles
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	is_nomadic = no
	NOT = { religion = anarcho-capitalism }
	
	trigger = {
		any_host_courtier = {
			AND = {
				prisoner = no
				religion = anarcho-capitalism
				has_character_modifier = libertarian_agitator
				NOT = { has_character_modifier = suspected_ringleader }
				NOT = { trait = incapable }
			}
		}
		any_demesne_province = {
			NOT = { religion = anarcho-capitalism }
			NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
			NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
			NOT = { has_province_modifier = stronghold_enlightment }
			NOT = { has_province_modifier = communist_stronghold }
			NOT = { has_province_modifier = totalitarist_stronghold }
		}
	}
	
	mean_time_to_happen = {
		months = 2500
	}
	
	immediate = {
		random_host_courtier = {
			limit = {
				AND = {
					prisoner = no
					religion = anarcho-capitalism
					has_character_modifier = libertarian_agitator
					NOT = { has_character_modifier = suspected_ringleader }
					NOT = { trait = incapable }
				}
			}
			add_character_modifier = {
				name = suspected_ringleader
				duration = 7300
			}
		}
		random_demesne_province	= {
			limit = {
				NOT = { religion = anarcho-capitalism }
				NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
				NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
				NOT = { has_province_modifier = stronghold_enlightment }
				NOT = { has_province_modifier = communist_stronghold }
				NOT = { has_province_modifier = totalitarist_stronghold }
			}
			religion =  anarcho-capitalism
			add_province_modifier = {
				name = stronghold_enlightment
				duration = 3650
			}
		}
	}
	
	option = {
		name = EVTOPTA_An_30
		custom_tooltip = {
			text = anarcho_capitalism_troubles_tooltip
		}
	}
}

character_event = {
	id = An.36
	desc = EVTDESC_An_35
	picture = GFX_evt_anarchist_troubles
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	is_nomadic = no
	NOT = { religion = minarchist }
	
	trigger = {
		any_host_courtier = {
			AND = {
				prisoner = no
				religion = minarchist
				has_character_modifier = libertarian_agitator
				NOT = { has_character_modifier = suspected_ringleader }
				NOT = { trait = incapable }
			}
		}
		any_demesne_province = {
			NOT = { religion = minarchist }
			NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
			NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
			NOT = { has_province_modifier = stronghold_enlightment }
			NOT = { has_province_modifier = communist_stronghold }
			NOT = { has_province_modifier = totalitarist_stronghold }
		}
	}
	
	mean_time_to_happen = {
		months = 2500
	}
	
	immediate = {
		random_host_courtier = {
			limit = {
				AND = {
					prisoner = no
					religion = minarchist
					has_character_modifier = libertarian_agitator
					NOT = { has_character_modifier = suspected_ringleader }
					NOT = { trait = incapable }
				}
			}
			add_character_modifier = {
				name = suspected_ringleader
				duration = 7300
			}
		}
		random_demesne_province	= {
			limit = {
				NOT = { religion = minarchist }
				NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
				NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
				NOT = { has_province_modifier = stronghold_enlightment }
				NOT = { has_province_modifier = communist_stronghold }
				NOT = { has_province_modifier = totalitarist_stronghold }
			}
			religion = minarchist
			add_province_modifier = {
				name = stronghold_enlightment
				duration = 3650
			}
		}
	}
	
	option = {
		name = EVTOPTA_An_30
		custom_tooltip = {
			text = minarchist_troubles_tooltip
		}
	}
}

character_event = {
	id = An.37
	desc = EVTDESC_An_35
	picture = GFX_evt_anarchist_troubles
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	is_nomadic = no
	NOT = { religion = paleolibertarianism }
	
	trigger = {
		any_host_courtier = {
			AND = {
				prisoner = no
				religion = paleolibertarianism
				has_character_modifier = libertarian_agitator
				NOT = { has_character_modifier = suspected_ringleader }
				NOT = { trait = incapable }
			}
		}
		any_demesne_province = {
			NOT = { religion = paleolibertarianism }
			NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
			NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
			NOT = { has_province_modifier = stronghold_enlightment }
			NOT = { has_province_modifier = communist_stronghold }
			NOT = { has_province_modifier = totalitarist_stronghold }
		}
	}
	
	mean_time_to_happen = {
		months = 2500
	}
	
	immediate = {
		random_host_courtier = {
			limit = {
				AND = {
					prisoner = no
					religion = paleolibertarianism
					has_character_modifier = libertarian_agitator
					NOT = { has_character_modifier = suspected_ringleader }
					NOT = { trait = incapable }
				}
			}
			add_character_modifier = {
				name = suspected_ringleader
				duration = 7300
			}
		}
		random_demesne_province	= {
			limit = {
				NOT = { religion = paleolibertarianism }
				NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
				NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
				NOT = { has_province_modifier = stronghold_enlightment }
				NOT = { has_province_modifier = communist_stronghold }
				NOT = { has_province_modifier = totalitarist_stronghold }
			}
			religion = paleolibertarianism
			add_province_modifier = {
				name = stronghold_enlightment
				duration = 3650
			}
		}
	}
	
	option = {
		name = EVTOPTA_An_30
		custom_tooltip = {
			text = paleolibertarianism_troubles_tooltip
		}
	}
}

character_event = {
	id = An.36
	desc = EVTDESC_An_35
	picture = GFX_evt_anarchist_troubles
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	is_nomadic = no
	NOT = { religion = geolibertarianism }
	
	trigger = {
		any_host_courtier = {
			AND = {
				prisoner = no
				religion = geolibertarianism
				has_character_modifier = libertarian_agitator
				NOT = { has_character_modifier = suspected_ringleader }
				NOT = { trait = incapable }
			}
		}
		any_demesne_province = {
			NOT = { religion = geolibertarianism }
			NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
			NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
			NOT = { has_province_modifier = stronghold_enlightment }
			NOT = { has_province_modifier = communist_stronghold }
			NOT = { has_province_modifier = totalitarist_stronghold }
		}
	}
	
	mean_time_to_happen = {
		months = 2500
	}
	
	immediate = {
		random_host_courtier = {
			limit = {
				AND = {
					prisoner = no
					religion = geolibertarianism
					has_character_modifier = libertarian_agitator
					NOT = { has_character_modifier = suspected_ringleader }
					NOT = { trait = incapable }
				}
			}
			add_character_modifier = {
				name = suspected_ringleader
				duration = 7300
			}
		}
		random_demesne_province	= {
			limit = {
				NOT = { religion = geolibertarianism }
				NOT = { has_province_modifier = heretic_stronghold } # Heresies won't be replaced by new ideas already !
				NOT = { has_province_modifier = religious_tension } # Religions are already in conflict in this region. 
				NOT = { has_province_modifier = stronghold_enlightment }
				NOT = { has_province_modifier = communist_stronghold }
				NOT = { has_province_modifier = totalitarist_stronghold }
			}
			religion = geolibertarianism
			add_province_modifier = {
				name = stronghold_enlightment
				duration = 3650
			}
		}
	}
	
	option = {
		name = EVTOPTA_An_30
		custom_tooltip = {
			text = geolibertarianism_troubles_tooltip
		}
	}
}