Scripted effect · Silk and Silver files
actual_add_to_lombard_league_effect
actual_add_to_lombard_league_effect = { TITLE = … }game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt, line 2459 (22 lines). Parameters: $TITLE$.
actual_add_to_lombard_league_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 2459 of its file. A call passes 1 parameter: TITLE. The game's script calls it in 2 places, among them Guelphs & Ghibellines: Join the Lombard League? (event gdp_guelph_ghibelline.7005) and try_to_add_to_lombard_league_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.
The comment above it in the file
Still confederation scope
What it does
gg_become_independent_effect = { TITLE = scope:title_to_add }scope:title_to_add.holder:- … will join the … (Currently … members)
• 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 (22 lines of game script)
actual_add_to_lombard_league_effect = {
$TITLE$ = { save_scope_as = title_to_add }
gg_become_independent_effect = { TITLE = scope:title_to_add }
scope:title_to_add.holder = {
if = {
limit = { is_ghibelline_trigger = yes }
gg_swap_to_undecided_effect = { USE_MODIFIERS = flag:no }
}
if = {
limit = {
is_ai = yes
NOT = { government_has_flag = government_is_republic }
}
gdp_found_a_republic_effect = yes
gdp_republic_patricians_start_at_level_2_effect = yes
}
}
custom_tooltip = {
text = gg_join_league.tt
add_confederation_member = scope:title_to_add.holder
}
}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 actual_add_to_lombard_league_effect.
Events (1)
- Guelphs & Ghibellines: Join the Lombard League?
gdp_guelph_ghibelline.7005
Scripted effects (1)
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.