namespace = IDEOPEOPLE

province_event = {
    id = IDEOPEOPLE.1
	
	hide_window = yes
	
	trigger = {
		has_game_rule = {
			name = POPULAR_IDEOLOGIES_EMERGENCE
			value = classic
		}
		year = 1492
		revolt_risk = 0.1
		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. 
		NOR = { # Event for Western provinces
			culture_group = far_eastern_group
			culture_group = chinese_group
			culture_group = tibetan_group
			culture = nepali
			culture_group = far_east # For Umbra Spherae
		}
		NOR = {
			religion_group = capitalist
			religion_group = totalitarist
			religion_group = communism
			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
		}
		owner = {
			is_nomadic = no
			is_tribal = no
			NOR = {
				religion_group = capitalist
				religion_group = totalitarist
				religion_group = communism
			}
		}
	} 
	
	mean_time_to_happen = {
		months = 36
		modifier = {
			factor = 2 
			owner = { stewardship = 14 }
		}
		modifier = {
			factor = 2 
			owner = { stewardship = 10 }
		}
		modifier = {
			factor = 0.5
			owner = { NOT = { stewardship = 8 } }
		}
		modifier = {
			factor = 0.5
			owner = { NOT = { stewardship = 6 } }
		}
		modifier = {
			factor = 0.5
			owner = { NOT = { stewardship = 4 } }
		}
	}
	
	immediate = {
		random_list = {
			15 = {
				religion = liberalist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			10 = {
				religion = imperialist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			5 = {
				religion = interventionist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			5 = {
				religion = neo_classical
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			15 = {
				religion = marxist
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.4 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
				}
			}
			10 = {
				religion = anarchist
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.4 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
				}
			}
			5 = {
				religion = bolchevik
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.4 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
				}
			}
			5 = {
				religion = trotskist
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.4 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
				}
			}
			15 = {
				religion = fascist
				add_province_modifier = {
					name = totalitarist_stronghold
					duration = 3650
				} 
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.5 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
				}
			}
			10 = {
				religion = autocratic
				add_province_modifier = {
					name = totalitarist_stronghold
					duration = 3650
				} 
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.5 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
				}
			}
			5 = {
				religion = oligarchic
				add_province_modifier = {
					name = totalitarist_stronghold
					duration = 3650
				} 
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.5 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
				}
			}
		}
	}
}

province_event = {
    id = IDEOPEOPLE.2
	
	hide_window = yes
	
	trigger = {
		has_game_rule = {
			name = POPULAR_IDEOLOGIES_EMERGENCE
			value = classic
		}
		year = 1492
		revolt_risk = 0.1
		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. 
		OR = { # Event for Eastern provinces
			culture_group = far_eastern_group
			culture_group = chinese_group
			culture_group = tibetan_group
			culture = nepali
			culture_group = far_east # For Umbra Spherae
		}
		NOR = {
			religion_group = capitalist
			religion_group = totalitarist
			religion_group = communism
			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
		}
		owner = {
			is_nomadic = no
			is_tribal = no
			NOR = {
				religion_group = capitalist
				religion_group = totalitarist
				religion_group = communism
			}
		}
	} 
	
	mean_time_to_happen = {
		months = 36
		modifier = {
			factor = 2 
			owner = { stewardship = 14 }
		}
		modifier = {
			factor = 2 
			owner = { stewardship = 10 }
		}
		modifier = {
			factor = 0.5
			owner = { NOT = { stewardship = 8 } }
		}
		modifier = {
			factor = 0.5
			owner = { NOT = { stewardship = 6 } }
		}
		modifier = {
			factor = 0.5
			owner = { NOT = { stewardship = 4 } }
		}
	}
	
	immediate = {
		random_list = {
			15 = {
				religion = liberalist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			10 = {
				religion = imperialist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			5 = {
				religion = interventionist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			5 = {
				religion = neo_classical
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			20 = {
				religion = maoist
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.4 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
				}
			}
			10 = {
				religion = anarchist
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.4 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
				}
			}
			10 = {
				religion = fascist
				add_province_modifier = {
					name = totalitarist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.5 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
				}
			}
			15 = {
				religion = autocratic
				add_province_modifier = {
					name = totalitarist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.5 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
				}
			}
			10 = {
				religion = oligarchic
				add_province_modifier = {
					name = totalitarist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.5 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
				}
			}
		}
	}
}

character_event = {
    id = IDEOPEOPLE.3
    desc = EVTDESCIDEOPEOPLE.3
	picture = GFX_evt_revolted_capitalists
	title = EVTTITLEIDEOPEOPLE.3
	
	is_triggered_only = yes
	
	option = {
		name = OK
	}
}

character_event = {
    id = IDEOPEOPLE.4
    desc = EVTDESCIDEOPEOPLE.4
	picture = GFX_evt_revolted_communists
	title = EVTTITLEIDEOPEOPLE.4
	
	is_triggered_only = yes
	
	option = {
		name = OK
	}
}

character_event = {
    id = IDEOPEOPLE.5
    desc = EVTDESCIDEOPEOPLE.5
	picture = GFX_evt_revolted_totalitarists
	title = EVTTITLEIDEOPEOPLE.5
	
	is_triggered_only = yes
	
	option = {
		name = OK
	}
}

# Removing the Strongholds (well done, by the way !)
province_event = {
    id = IDEOPEOPLE.6
	
	hide_window = yes
	
	trigger = {
		has_province_modifier = stronghold_enlightment
		NOT = { religion_group = capitalist }
	} 
	
	immediate = {
		remove_province_modifier = stronghold_enlightment
	}
}

province_event = {
    id = IDEOPEOPLE.7
	
	hide_window = yes
	
	trigger = {
		has_province_modifier = communist_stronghold
		NOT = { religion_group = communism }
	} 
	
	immediate = {
		remove_province_modifier = communist_stronghold
	}
}

province_event = {
    id = IDEOPEOPLE.8
	
	hide_window = yes
	
	trigger = {
		has_province_modifier = totalitarist_stronghold
		NOT = { religion_group = totalitarist }
	} 
	
	immediate = {
		remove_province_modifier = totalitarist_stronghold
	}
}

# The revolt has won (by a way or another...)
province_event = {
    id = IDEOPEOPLE.9
	
	hide_window = yes
	
	trigger = {
		has_province_modifier = stronghold_enlightment
		owner = {
			religion = ROOT
		}
	} 
	
	immediate = {
		remove_province_modifier = stronghold_enlightment
	}
}

province_event = {
    id = IDEOPEOPLE.10
	
	hide_window = yes
	
	trigger = {
		has_province_modifier = communist_stronghold
		owner = {
			religion = ROOT
		}
	} 
	
	immediate = {
		remove_province_modifier = communist_stronghold
	}
}

province_event = {
    id = IDEOPEOPLE.11
	
	hide_window = yes
	
	trigger = {
		has_province_modifier = totalitarist_stronghold
		owner = {
			religion = ROOT
		}
	} 
	
	immediate = {
		remove_province_modifier = totalitarist_stronghold
	}
}

###### New event added - People's Spring Add-on #####

province_event = {
    id = IDEOPEOPLE.12
	
	hide_window = yes
	
	trigger = {
		has_game_rule = {
			name = POPULAR_IDEOLOGIES_EMERGENCE
			value = people_spring
		}
		year = 1242
		revolt_risk = 0.13
		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. 
		NOR = { # Event for Western provinces
			culture_group = far_eastern_group
			culture_group = chinese_group
			culture_group = tibetan_group
			culture = nepali
			culture_group = far_east # For Umbra Spherae
		}
		NOR = {
			religion_group = capitalist
			religion_group = totalitarist
			religion_group = communism
			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
		}
		owner = {
			is_nomadic = no
			is_tribal = no
			NOR = {
				religion_group = capitalist
				religion_group = totalitarist
				religion_group = communism
			}
		}
	} 
	
	mean_time_to_happen = {
		months = 60
		modifier = {
			factor = 2 
			owner = { stewardship = 14 }
		}
		modifier = {
			factor = 2 
			owner = { stewardship = 10 }
		}
		modifier = {
			factor = 0.5
			owner = { NOT = { stewardship = 8 } }
		}
		modifier = {
			factor = 0.5
			owner = { NOT = { stewardship = 6 } }
		}
		modifier = {
			factor = 0.5
			owner = { NOT = { stewardship = 4 } }
		}
	}
	
	immediate = {
		random_list = {
			10 = {
				religion = liberalist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			20 = {
				religion = imperialist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			5 = {
				religion = interventionist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			20 = {
				religion = marxist
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.4 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
				}
			}
			15 = {
				religion = anarchist
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.4 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
				}
			}
			15 = {
				religion = autocratic
				add_province_modifier = {
					name = totalitarist_stronghold
					duration = 3650
				} 
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.5 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
				}
			}
			15 = {
				religion = oligarchic
				add_province_modifier = {
					name = totalitarist_stronghold
					duration = 3650
				} 
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.5 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
				}
			}
		}
	}
}

province_event = {
    id = IDEOPEOPLE.13
	
	hide_window = yes
	
	trigger = {
		has_game_rule = {
			name = POPULAR_IDEOLOGIES_EMERGENCE
			value = people_spring
		}
		year = 1242
		revolt_risk = 0.13
		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. 
		OR = { # Event for Eastern provinces
			culture_group = far_eastern_group
			culture_group = chinese_group
			culture_group = tibetan_group
			culture = nepali
			culture_group = far_east # For Umbra Spherae
		}
		NOR = {
			religion_group = capitalist
			religion_group = totalitarist
			religion_group = communism
			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
		}
		owner = {
			is_nomadic = no
			is_tribal = no
			NOR = {
				religion_group = capitalist
				religion_group = totalitarist
				religion_group = communism
			}
		}
	} 
	
	mean_time_to_happen = {
		months = 60
		modifier = {
			factor = 2 
			owner = { stewardship = 14 }
		}
		modifier = {
			factor = 2 
			owner = { stewardship = 10 }
		}
		modifier = {
			factor = 0.5
			owner = { NOT = { stewardship = 8 } }
		}
		modifier = {
			factor = 0.5
			owner = { NOT = { stewardship = 6 } }
		}
		modifier = {
			factor = 0.5
			owner = { NOT = { stewardship = 4 } }
		}
	}
	
	immediate = {
		random_list = {
			10 = {
				religion = liberalist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			20 = {
				religion = imperialist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			5 = {
				religion = interventionist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.3 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.3 }
						}
					}
				}
			}
			15 = {
				religion = marxist
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.4 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
				}
			}
			5 = {
				religion = maoist
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.4 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
				}
			}
			10 = {
				religion = anarchist
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.4 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.4 }
						}
					}
				}
			}
			15 = {
				religion = fascist
				add_province_modifier = {
					name = totalitarist_stronghold
					duration = 3650
				} 
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.5 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
				}
			}
			10 = {
				religion = autocratic
				add_province_modifier = {
					name = totalitarist_stronghold
					duration = 3650
				} 
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.5 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
				}
			}
			5 = {
				religion = oligarchic
				add_province_modifier = {
					name = totalitarist_stronghold
					duration = 3650
				} 
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.5 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.5 }
						}
					}
				}
			}
		}
	}
}

# New anarchist/libertarian trend appears out of "nowhere"
province_event = {
	id = IDEOPEOPLE.14
	hide_window = yes
	
	trigger = {
		religion = anarchist
		NOR = {
			has_global_flag = anarchist_synthesis_proclaimed
			has_global_flag = libertarian_synthesis_proclaimed
		}
		NOT = { has_province_flag = new_anarchist_trend }
		NOT = { has_province_modifier = stronghold_enlightment }
		NOT = { has_province_modifier = communist_stronghold }
		NOT = { has_province_modifier = totalitarist_stronghold }
	}
	
	mean_time_to_happen = {
		months = 9600
		modifier = {
			factor = 2.0
			religion_authority = 0.6
		}
		modifier = {
			factor = 2.0
			religion_authority = 0.8
		}
		modifier = {
			factor = 0.75
			NOT = { religion_authority = 0.2 }
		}
		modifier = {
			factor = 0.75
			NOT = { religion_authority = 0.4 }
		}
		modifier = {
			factor = 0.75
			owner = {
				NOR = { 
					religion_group = capitalism
					religion_group = totalitarist
				}
			}
			OR = {
				anarcho-syndicalism = { religion_authority = 0.5 }
				anarcho-mutualism = { religion_authority = 0.5 }
				anarcho-feminism = { religion_authority = 0.5 }
				ecoanarchism = { religion_authority = 0.5 }
			}
		}
		modifier = {
			factor = 0.75
			owner = {
				OR = {
					religion_group = capitalism
					religion_group = totalitarist
				}
			}
			OR = {
				anarcho-capitalism = { religion_authority = 0.5 }
				minarchist = { religion_authority = 0.5 }
				paleolibertarianism = { religion_authority = 0.5 }
				geolibertarianism = { religion_authority = 0.5 }
			}
		}
		modifier = { # New trend as reinforced opposition to the actual regime
			factor = 0.75
			owner = {
				NOT = { religion_group = communism }
			}
		}
	}
	
	immediate = {
		set_province_flag = {
			name = new_anarchist_trend
			duration = 3650
		}
		random_list = {
			25 = {
				modifier = {
					factor = 0
					owner = {
						OR = {
							religion_group = capitalist
							religion_group = totalitarist
						}
					}
				}
				modifier = {
					factor = 50
					AND = {
						owner = {
							NOR = {
								religion_group = capitalist
								religion_group = totalitarist
							}
						}
						anarcho-syndicalism = { religion_authority = 0.5 }	
					}
				}
				religion = anarcho-syndicalism
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.15 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.15 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.15 }
						}
					}
				}
			}
			25 = {
				modifier = {
					factor = 0
					owner = {
						OR = {
							religion_group = capitalist
							religion_group = totalitarist
						}
					}
				}
				modifier = {
					factor = 50
					AND = {
						owner = {
							NOR = {
								religion_group = capitalist
								religion_group = totalitarist
							}
						}
						anarcho-mutualism = { religion_authority = 0.5 }	
					}
				}
				religion = anarcho-mutualism
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.15 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.15 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.15 }
						}
					}
				}
			}
			25 = {
				modifier = {
					factor = 0
					owner = {
						OR = {
							religion_group = capitalist
							religion_group = totalitarist
						}
					}
				}
				modifier = {
					factor = 50
					AND = {
						owner = {
							NOR = {
								religion_group = capitalist
								religion_group = totalitarist
							}
						}
						anarcho-feminism = { religion_authority = 0.5 }	
					}
				}
				religion = anarcho-feminism
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.15 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.15 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.15 }
						}
					}
				}
			}
			25 = {
				modifier = {
					factor = 0
					owner = {
						OR = {
							religion_group = capitalist
							religion_group = totalitarist
						}
					}
				}
				modifier = {
					factor = 50
					AND = {
						owner = {
							NOR = {
								religion_group = capitalist
								religion_group = totalitarist
							}
						}
						ecoanarchism = { religion_authority = 0.5 }	
					}
				}
				religion = ecoanarchism
				add_province_modifier = {
					name = communist_stronghold
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.15 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.15 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.15 }
						}
					}
				}
			}
			0 = {
				modifier = {
					factor = 25
					owner = {
						OR = {
							religion_group = capitalist
							religion_group = totalitarist
						}
					}
				}
				modifier = {
					factor = 50
					AND = {
						owner = {
							OR = {
								religion_group = capitalist
								religion_group = totalitarist
							}
						}
						anarcho-capitalism = { religion_authority = 0.5 }	
					}
				}
				religion = anarcho-capitalism
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.16 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.16 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.16 }
						}
					}
				}
			}
			0 = {
				modifier = {
					factor = 25
					owner = {
						OR = {
							religion_group = capitalist
							religion_group = totalitarist
						}
					}
				}
				modifier = {
					factor = 50
					AND = {
						owner = {
							OR = {
								religion_group = capitalist
								religion_group = totalitarist
							}
						}
						minarchist = { religion_authority = 0.5 }	
					}
				}
				religion = minarchist
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.16 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.16 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.16 }
						}
					}
				}
			}
			0 = {
				modifier = {
					factor = 25
					owner = {
						OR = {
							religion_group = capitalist
							religion_group = totalitarist
						}
					}
				}
				modifier = {
					factor = 50
					AND = {
						owner = {
							OR = {
								religion_group = capitalist
								religion_group = totalitarist
							}
						}
						paleolibertarianism = { religion_authority = 0.5 }	
					}
				}
				religion = paleolibertarianism
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.16 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.16 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.16 }
						}
					}
				}
			}
			0 = {
				modifier = {
					factor = 25
					owner = {
						OR = {
							religion_group = capitalist
							religion_group = totalitarist
						}
					}
				}
				modifier = {
					factor = 50
					AND = {
						owner = {
							OR = {
								religion_group = capitalist
								religion_group = totalitarist
							}
						}
						geolibertarianism = { religion_authority = 0.5 }	
					}
				}
				religion = geolibertarianism
				add_province_modifier = {
					name = stronghold_enlightment
					duration = 3650
				}
				owner = {
					hidden_tooltip = {
						character_event = { id = IDEOPEOPLE.16 }
					}
					liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.16 }
						}
					}
					top_liege = {
						hidden_tooltip = {
							character_event = { id = IDEOPEOPLE.16 }
						}
					}
				}
			}
		}
	}
}

character_event = {
    id = IDEOPEOPLE.15
    desc = EVTDESCIDEOPEOPLE.15
	picture = GFX_evt_new_anarchist_trend
	title = EVTTITLEIDEOPEOPLE.15
	
	is_triggered_only = yes
	
	option = {
		name = OK
	}
}

character_event = {
    id = IDEOPEOPLE.16
    desc = EVTDESCIDEOPEOPLE.16
	picture = GFX_evt_new_libertarian_trend
	title = EVTTITLEIDEOPEOPLE.16
	
	is_triggered_only = yes
	
	option = {
		name = OK
	}
}