Scripted effect · Silk and Silver files
gg_swap_to_undecided_effect
gg_swap_to_undecided_effect = { USE_MODIFIERS = … }game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt, line 429 (39 lines). Parameters: $USE_MODIFIERS$.
gg_swap_to_undecided_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 429 of its file. A call passes 1 parameter: USE_MODIFIERS. The game's script calls it in 2 places, among them actual_add_to_lombard_league_effect (scripted effect) and gg_swap_to_undecided_forced_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt.
What it does
If
Then
If
One of these
- Has “guelph leader” (a variable the game's script sets)
or
Has “ghibelline leader” (a variable the game's script sets)
Then
If
$USE_MODIFIERS$ = flag:yes
Then
- … becomes a member of the Undecided Participant Group
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (39 lines of game script)
gg_swap_to_undecided_effect = {
if = {
limit = { is_guelph_or_ghibelline_trigger = yes }
if = {
limit = {
OR = {
has_variable = guelph_leader
has_variable = ghibelline_leader
}
}
try_set_up_new_gg_leader_effect = yes
}
save_scope_as = affected_character
if = {
limit = { $USE_MODIFIERS$ = flag:yes }
if = {
limit = { is_guelph_trigger = yes }
add_character_modifier = {
modifier = left_guelphs_modifier
years = 10
}
}
if = {
limit = { is_ghibelline_trigger = yes }
add_character_modifier = {
modifier = left_ghibellines_modifier
years = 10
}
}
}
custom_tooltip = {
text = change_to_undecided_tt
gg_clean_up_participant_groups_effect = yes
gg_clean_up_swap_variables_effect = yes
set_variable = undecided_override
recalculate_participant_group = situation:guelph_ghibelline
}
}
}As written in game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls gg_swap_to_undecided_effect.
Scripted effects (2)
Source: game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.