Scripted effect · All Under Heaven files
natural_disaster_assign_councillor_to_manage_effect
natural_disaster_assign_councillor_to_manage_effect = { GREAT_PROJECT = … }game/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt, line 970 (46 lines). Parameters: $GREAT_PROJECT$.
natural_disaster_assign_councillor_to_manage_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 970 of its file. A call passes 1 parameter: GREAT_PROJECT. The game's script calls it in 2 places, among them great_project_earthquake (great project) and great_project_flood (great project). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (46 lines of game script)
natural_disaster_assign_councillor_to_manage_effect = {
if = {
limit = {
government_has_flag = government_is_nomadic
any_councillor = { is_kurultai_trigger = yes }
}
random_councillor = {
limit = { is_kurultai_trigger = yes }
save_scope_as = councillor
}
}
else_if = {
limit = {
government_has_flag = government_is_landless_adventurer
any_court_position_holder = { type = second_camp_officer }
}
random_court_position_holder = {
type = second_camp_officer
save_scope_as = councillor
}
}
else_if = {
limit = {
tgp_has_access_to_ministry_trigger = yes
exists = cp:minister_works
}
cp:minister_works = { save_scope_as = councillor }
}
else_if = {
limit = { exists = cp:councillor_steward }
cp:councillor_steward = { save_scope_as = councillor }
}
else_if = {
limit = { any_councillor = {} }
random_councillor = { save_scope_as = councillor }
}
else = {
random_courtier = { save_scope_as = councillor }
}
$GREAT_PROJECT$ = {
set_variable = {
name = managing_councillor
value = scope:councillor
}
}
}As written in game/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls natural_disaster_assign_councillor_to_manage_effect.
Great projects (2)
- great_project_earthquake
- great_project_flood
Source: game/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.