00_on_actions.txt

(59 KB) Pobierz
# country
on_startup = {
}

# country
on_religion_change = {
	if = {
		limit = {
			NOT = { religion = confucianism }
		}
		remove_country_modifier = neo_confucianism
	}
	if = {
		limit = {
			religion_group = christian
		}
		remove_country_modifier = the_anti_christian_edict
	}
	if = {
		limit = {
			NOT = { religion = orthodox }
		}
		every_known_country = {
			limit = {
				reverse_has_opinion_modifier = {
					who = ROOT
					modifier = closed_down_the_patriarchate
				}
			}
			reverse_remove_opinion = {
				who = ROOT
				modifier = closed_down_the_patriarchate
			}
		}
	}
	if = {
		limit = {
			religion = catholic
			has_ruler_flag = personal_catholic_sympathies
		}
		country_event = { id = protestantism_events.19 }
	}
	if = {
		limit = {
			NOT = { religion = catholic }
			has_ruler_modifier = catholic_zealot
		}
		remove_country_modifier = catholic_zealot
	}
	if = {
		limit = {
			NOT = { religion = catholic }
			has_country_modifier = spanish_bible_translation
		}
		remove_country_modifier = spanish_bible_translation
	}
	if = {
		limit = {
			NOT = { religion = catholic }
			has_country_modifier = supressing_spanish_protestantism
		}
		remove_country_modifier = supressing_spanish_protestantism
	}
	if = {
		limit = {
			NOT = { religion = catholic }
			has_country_modifier = counter_reformation
		}
		remove_country_modifier = counter_reformation
	}
	if = {
		limit = {
			religion = protestant
		}
		set_country_flag = converted_to_protestantism
	}
}

# country.
on_secondary_religion_change = {
	# Done from code: add_prestige = -50 (Define: CHANGE_SECONDARY_PRESTIGE_HIT)
	every_owned_province = {
		limit = { has_province_modifier = tengri_monastic_order }
		remove_province_modifier = tengri_monastic_order
	}
	every_owned_province = {
		limit = { has_province_modifier = tengri_shiite_settled_in_capital }
		remove_province_modifier = tengri_shiite_settled_in_capital
	}
	every_owned_province = {
		limit = { has_province_modifier = tengri_insincere_leadership }
		remove_province_modifier = tengri_insincere_leadership
	}
	every_owned_province = {
		limit = { has_province_modifier = tengri_religious_influx }
		remove_province_modifier = tengri_religious_influx
	}
	every_owned_province = {
		limit = { has_province_modifier = tengri_ruler_questioned }
		remove_province_modifier = tengri_ruler_questioned
	}
	every_owned_province = {
		limit = { has_province_modifier = tengri_strengthened_local_clans }
		remove_province_modifier = tengri_strengthened_local_clans
	}
	every_owned_province = {
		limit = { has_province_modifier = tengri_growing_cities }
		remove_province_modifier = tengri_growing_cities
	}
	every_owned_province = {
		limit = { has_province_modifier = tengri_christian_mission }
		remove_province_modifier = tengri_christian_mission
	}
	every_owned_province = {
		limit = { has_province_modifier = tengri_unchristian_values }
		remove_province_modifier = tengri_unchristian_values
	}
	every_owned_province = {
		limit = { has_province_modifier = tengri_monastic_order }
		remove_province_modifier = tengri_monastic_order
	}
	every_owned_province = {
		limit = { has_province_modifier = hindufication }
		remove_province_modifier = hindufication
	}
	every_owned_province = {
		limit = { has_province_modifier = tengri_influx_of_monks }
		remove_province_modifier = tengri_influx_of_monks
	}
	every_owned_province = {
		limit = { has_province_modifier = tengri_abandoning_the_old_ways }
		remove_province_modifier = tengri_abandoning_the_old_ways
	}
	remove_country_modifier = tengri_devout_muslim
	remove_country_modifier = tengri_confucian_elites_alienated
	remove_country_modifier = tengri_confucian_titles
	remove_country_modifier = tengri_traditionalists_strengthened
	remove_country_modifier = tengri_confucian_nobles
	remove_country_modifier = tengri_pali_legal_traditions
	remove_country_modifier = tengri_religious_pilgrimages
	remove_country_modifier = tengri_monks_in_capital
	remove_country_modifier = tengri_influx_of_monks
	remove_country_modifier = tengri_shiite_immigration
	remove_country_modifier = support_of_the_khojas
	remove_country_modifier = black_shamanism_modifier
	remove_country_modifier = tengri_animist_pantheon
	remove_country_modifier = zoroastrian_traders
	remove_country_modifier = spread_of_tengri_tea_ceremony
	remove_country_modifier = tengri_tea_ceremony
	remove_country_modifier = tengri_japanese_swordsmithing
	remove_country_modifier = tengri_bow_and_arrow_defended
	remove_country_modifier = tengri_support_of_shamans
	remove_country_modifier = tengri_hindu_conflict
	remove_country_modifier = tengri_hindu_syncretism
	remove_country_modifier = tengri_devout_christian_ruler
	remove_country_modifier = tengri_personal_confessor
	remove_country_modifier = tengri_confucian_administrators
	remove_country_modifier = tengri_traditional_elites_alienated
	remove_country_modifier = tengri_jihad
	remove_country_modifier = tengri_stood_up_for_yassa
	remove_country_modifier = tengri_sufi_teacher
	remove_country_modifier = tengri_qadi
	remove_country_modifier = tengri_religious_influx
	remove_country_modifier = tengri_ibadi_scholars
	remove_country_modifier = tengri_clergy_conflicts
	remove_country_modifier = tengri_shamans_spurned
	clr_country_flag = khojas_established
	clr_country_flag = tengri_christian_devout_court
	clr_ruler_flag = tengri_muslim_ruler_questioned
	if = {
		limit = {
			check_variable = { which = khojas_retained value = 1 }
		}
		set_variable = {
			which = khojas_retained value = 0
		}
	}
}

# country. Spawned when Enforcing Rebel Demands through a Support Rebels-war.
on_enforce_rebel_demands = {
	# ROOT = The winning country
	# FROM = The loosing country
	set_country_flag = helped_rebels_win_war
}

# country
on_colonial_liberation = {
	country_event = { id = colonial_nation.90 days = 1 }
}

# country
on_colonial_reintegration = {
	events = {
		colonial_nation.91
	}
}

# country
on_peace_actor = {
	events = {
		usa_dlc.36				# Evacuation Day
		native_americans.7		# Appoint Peace Chief
	}
}

# country
on_peace_recipient = {
	events = {
		native_americans.7		# Appoint Peace Chief
	}
}

# country
# root = winning country, from = loser country
on_war_won = {
	FROM = { country_event = { id = flavor_cri.6 } }
}

# country
# root = loser country, from = winner country
on_war_lost = {
	ROOT = { country_event = { id = flavor_cri.6 } }
}

# country
# root = winning country, from = loser country
on_battle_won_country = {
}

# country
# root = loser country, from = winner country
on_battle_lost_country = {
	#Yemoya
	if = {
		limit = {
			ROOT = {
				religion = shamanism
				NOT = { has_unlocked_cult = yemoja_cult }
			}
			FROM = {
				religion = shamanism
				has_unlocked_cult = yemoja_cult
			}
		}
		ROOT = { country_event = { id = fetishist_flavor.1 } }
	}
	if = {
		limit = {
			FROM = {
				religion = shamanism
				NOT = { has_unlocked_cult = yemoja_cult }
			}
			ROOT = {
				religion = shamanism
				has_unlocked_cult = yemoja_cult
			}
		}
		FROM = { country_event = { id = fetishist_flavor.1 } }
	}
	#Roog
	if = {
		limit = {
			ROOT = {
				religion = shamanism
				NOT = { has_unlocked_cult = roog_cult }
			}
			FROM = {
				religion = shamanism
				has_unlocked_cult = roog_cult
			}
		}
		ROOT = { country_event = { id = fetishist_flavor.2 } }
	}
	if = {
		limit = {
			FROM = {
				religion = shamanism
				NOT = { has_unlocked_cult = roog_cult }
			}
			ROOT = {
				religion = shamanism
				has_unlocked_cult = roog_cult
			}
		}
		FROM = { country_event = { id = fetishist_flavor.2 } }
	}
	#Nyame
	if = {
		limit = {
			ROOT = {
				religion = shamanism
				NOT = { has_unlocked_cult = nyame_cult }
			}
			FROM = {
				religion = shamanism
				has_unlocked_cult = nyame_cult
			}
		}
		ROOT = { country_event = { id = fetishist_flavor.3 } }
	}
	if = {
		limit = {
			FROM = {
				religion = shamanism
				NOT = { has_unlocked_cult = nyame_cult }
			}
			ROOT = {
				religion = shamanism
				has_unlocked_cult = nyame_cult
			}
		}
		FROM = { country_event = { id = fetishist_flavor.3 } }
	}
	
	#Cwezi / Swezi / Kubandwa
	if = {
		limit = {
			ROOT = {
				religion = shamanism
				NOT = { has_unlocked_cult = cwezi_cult }
			}
			FROM = {
				religion = shamanism
				has_unlocked_cult = cwezi_cult
			}
		}
		ROOT = { country_event = { id = fetishist_flavor.101 } }
	}
	if = {
		limit = {
			FROM = {
				religion = shamanism
				NOT = { has_unlocked_cult = cwezi_cult }
			}
			ROOT = {
				religion = shamanism
				has_unlocked_cult = cwezi_cult
			}
		}
		FROM = { country_event = { id = fetishist_flavor.101 } }
	}
	
	#Mlira and other Nature Spirits and/or ancestral cults of Central Africa
	if = {
		limit = {
			ROOT = {
				religion = shamanism
				NOT = { has_unlocked_cult = central_african_ancestor_cult }
			}
			FROM = {
				religion = shamanism
				has_unlocked_cult = central_african_ancestor_cult
			}
		}
		ROOT = { country_event = { id = fetishist_flavor.102 } }
	}
	if = {
		limit = {
			FROM = {
				religion = shamanism
				NOT = { has_unlocked_cult = central_african_ancestor_cult }
			}
			ROOT = {
				religion = shamanism
				has_unlocked_cult = central_african_ancestor_cult
			}
		}
		FROM = { country_event = { id = fetishist_flavor.102 } }
	}
	
	#Mwari
	if = {
		limit = {
			ROOT = {
				religion = shamanism
				NOT = { has_unlocked_cult = mwari_cult }
			}
			FROM = {
				religion = shamanism
				has_unlocked_cult = mwari_cult
			}
		}
		ROOT = { country_event = { id = fe...
Zgłoś jeśli naruszono regulamin