Scripted EffectChanged this version
rtr_prepare_cultural_warlord_tag
CityLocation Rankordered owned location
MegalopolisLocation Rankordered owned location
TownLocation Rankordered owned locationDefinitionin_game/events/situations/red_turban_rebellions.txt:186
187culture:$culture$ = {
187save_scope_as = target_culture
}
188remove_variable = rtr_release_$culture$
189ordered_owned_location = {
190limit = {
191NOT = {
191dominant_culture = root.culture
}
192dominant_culture = scope:target_culture
193province != root.capital.province
}
195order_by = {
196value = population
201if = {
202limit = {
}
203multiply = 10
}
}
206check_range_bounds = no
207max = 1
208save_scope_as = target_location
209create_dynasty_from_location = random
210last_dynasty_in_location = {
210save_scope_as = target_dynasty
}
211create_country_from_location = {
212save_scope_as = target_country
214set_capital = prev
215create_character = {
216culture = scope:target_culture
217age = 25
218dynasty = scope:target_dynasty
219save_scope_as = target_character
220prev = {
220set_new_ruler = prev
}
}
}
}