Scripted effect · Silk and Silver files
create_lombard_league_effect
create_lombard_league_effect = yesgame/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt, line 2103 (354 lines). No parameters.
create_lombard_league_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 2103 of its file. It takes no parameters: create_lombard_league_effect = yes. The game's script calls it in 4 places, among them Form the Lombard League (decision), … (situation) and Guelphs & Ghibellines: the Lombard League (event gdp_guelph_ghibelline.7000). 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 played by the AI:
- Gains the modifier “League Founder”
- Clergy Opinion +10
- Popular Opinion Baseline +5
- Gains the modifier “League Founder”
scope:new_confederation:- The coat of arms changes
If
NOT = { scope:league_creator_title = flag:venice }If
- scope:league_creator: Is played by a person
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:k_venice }
Then
title:k_venice.holder:
Then
try_to_add_to_lombard_league_effect = { TITLE = title:k_venice }
If
NOT = { scope:league_creator_title = flag:verona }If
- scope:league_creator: Is played by a person
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_verona }
Then
title:c_verona.holder:
Then
try_to_add_to_lombard_league_effect = { TITLE = title:c_verona }
If
NOT = { scope:league_creator_title = flag:padua }If
- scope:league_creator: Is played by a person
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_padua }
Then
title:c_padua.holder:
Then
try_to_add_to_lombard_league_effect = { TITLE = title:c_padua }
If
NOT = { scope:league_creator_title = flag:treviso }If
- scope:league_creator: Is played by a person
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_treviso }
Then
title:c_treviso.holder:
Then
try_to_add_to_lombard_league_effect = { TITLE = title:c_treviso }
If
NOT = { scope:league_creator_title = flag:bologna }If
- scope:league_creator: Is played by a person
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_bologna }
Then
title:c_bologna.holder:
Then
try_to_add_to_lombard_league_effect = { TITLE = title:c_bologna }
If
NOT = { scope:league_creator_title = flag:ferrara }If
- scope:league_creator: Is played by a person
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_ferrara }
Then
title:c_ferrara.holder:
Then
try_to_add_to_lombard_league_effect = { TITLE = title:c_ferrara }
If
NOT = { scope:league_creator_title = flag:modena }If
- scope:league_creator: Is played by a person
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_modena }
Then
title:c_modena.holder:
Then
try_to_add_to_lombard_league_effect = { TITLE = title:c_modena }
If
NOT = { scope:league_creator_title = flag:mantua }If
- scope:league_creator: Is played by a person
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_mantua }
Then
title:c_mantua.holder:
Then
try_to_add_to_lombard_league_effect = { TITLE = title:c_mantua }
If
NOT = { scope:league_creator_title = flag:cremona }If
- scope:league_creator: Is played by a person
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_cremona }
Then
title:c_cremona.holder:
Then
try_to_add_to_lombard_league_effect = { TITLE = title:c_cremona }
If
NOT = { scope:league_creator_title = flag:brescia }If
- scope:league_creator: Is played by a person
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_brescia }
Then
title:c_brescia.holder:
Then
try_to_add_to_lombard_league_effect = { TITLE = title:c_brescia }
If
NOT = { scope:league_creator_title = flag:novara }- If all of these hold:
- … (more in the script below)
- … (more in the script below)
- … (more in the script below)
• 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 (120 lines of game script)
create_lombard_league_effect = {
#Ditch those shackles, man
if = {
limit = { is_independent_ruler = no }
custom_description_no_bullet = {
text = become_independent_effect
gg_become_independent_effect = { TITLE = scope:league_creator.primary_title }
}
}
#Create the Lombard League
custom_description_no_bullet = {
text = create_lombard_league_effect
create_confederation = {
name = lombard_league_name
type = confederation_type:lombard_league
}
}
if = {
limit = { is_ai = yes }
add_character_modifier = lombard_founder_modifier
}
#See who's available to join
scope:new_confederation ?= {
set_coa = lombard_league
if = {
limit = {
NOT = { scope:league_creator_title = flag:venice }
trigger_if = {
limit = {
scope:league_creator = { is_ai = no }
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:k_venice }
}
#Would this ruler join the League?
title:k_venice.holder ?= { holder_would_join_lombard_league_via_decision_trigger = yes }
}
}
try_to_add_to_lombard_league_effect = { TITLE = title:k_venice }
}
if = {
limit = {
NOT = { scope:league_creator_title = flag:verona }
trigger_if = {
limit = {
scope:league_creator = { is_ai = no }
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_verona }
}
#Would this ruler join the League?
title:c_verona.holder ?= { holder_would_join_lombard_league_via_decision_trigger = yes }
}
}
try_to_add_to_lombard_league_effect = { TITLE = title:c_verona }
}
if = {
limit = {
NOT = { scope:league_creator_title = flag:padua }
trigger_if = {
limit = {
scope:league_creator = { is_ai = no }
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_padua }
}
#Would this ruler join the League?
title:c_padua.holder ?= { holder_would_join_lombard_league_via_decision_trigger = yes }
}
}
try_to_add_to_lombard_league_effect = { TITLE = title:c_padua }
}
if = {
limit = {
NOT = { scope:league_creator_title = flag:treviso }
trigger_if = {
limit = {
scope:league_creator = { is_ai = no }
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_treviso }
}
#Would this ruler join the League?
title:c_treviso.holder ?= { holder_would_join_lombard_league_via_decision_trigger = yes }
}
}
try_to_add_to_lombard_league_effect = { TITLE = title:c_treviso }
}
if = {
limit = {
NOT = { scope:league_creator_title = flag:bologna }
trigger_if = {
limit = {
scope:league_creator = { is_ai = no }
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_bologna }
}
#Would this ruler join the League?
title:c_bologna.holder ?= { holder_would_join_lombard_league_via_decision_trigger = yes }
}
}
try_to_add_to_lombard_league_effect = { TITLE = title:c_bologna }
}
if = {
limit = {
NOT = { scope:league_creator_title = flag:ferrara }
trigger_if = {
limit = {
scope:league_creator = { is_ai = no }
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_ferrara }
}
#Would this ruler join the League?
title:c_ferrara.holder ?= { holder_would_join_lombard_league_via_decision_trigger = yes }
}
}
try_to_add_to_lombard_league_effect = { TITLE = title:c_ferrara }
}
if = {
limit = {
NOT = { scope:league_creator_title = flag:modena }
trigger_if = {
limit = {
scope:league_creator = { is_ai = no }
title_is_able_to_join_lombard_league_via_decision_trigger = { TITLE = title:c_modena }
}
#Would this ruler join the League?
title:c_modena.holder ?= { holder_would_join_lombard_league_via_decision_trigger = yes }
}
}As written in game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt.
The first 120 of its 354 lines; the rest is in game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt from line 2103.
Where it is used
Every place in common/, events/ and history/ that calls create_lombard_league_effect.
Decisions (1)
Situations (1)
Events (1)
- Guelphs & Ghibellines: the Lombard League
gdp_guelph_ghibelline.7000
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.