Scripted Effect
rtr_released_country_setup_effects
SectInternational Organizationif 1
ConfucianismPolicyif 1
DaoismPolicyif 1
Eastern BuddhismReligionif 1
SānjiàoReligionif 1Definitionin_game/events/situations/red_turban_rebellions.txt:78
81add_reform = government_reform:warring_state
82add_to_global_variable_list = {
83name = rtr_faction_list
84target = this
}
88add_estate_satisfaction = {
}
89add_estate_satisfaction = {
}
90add_estate_satisfaction = {
}
91add_estate_satisfaction = {
}
92if = {
99random_international_organization = {
100limit = {
}
104add_country_to_international_organization = prev
}
106random_international_organization = {
107limit = {
}
111add_country_to_international_organization = prev
}
}
114if = {
115limit = {
115exists = scope:target_location
}
116set_capital = scope:target_location
}
118save_temporary_scope_as = temp_warlord_country
119if = {
120limit = {
120exists = scope:target_character
}
121scope:target_character = {
122move_country = scope:temp_warlord_country
123every_child = {
124limit = {
124NOT = {
124owner = scope:temp_warlord_country
}
}
125move_country = scope:temp_warlord_country
}
}
128set_new_ruler = scope:target_character
}
130every_province = {
131limit = {
131any_location_in_province = {
131NOT = {
131integration_level = core
}
}
}
132change_province_integration = core
133change_province_food_percentage = 1
}