Scripted effect · Silk and Silver files
try_to_set_up_lombard_league_with_effect
try_to_set_up_lombard_league_with_effect = { TITLE = … }game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt, line 1926 (119 lines). Parameters: $TITLE$.
try_to_set_up_lombard_league_with_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1926 of its file. A call passes 1 parameter: TITLE. The game's script calls it in 1 place, among them … (situation). Patch 1.21.0, from game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt.
What it does
If
- scope:title_to_check › Their holder:
is_either_hre_vassal_or_independent_duke_or_less_trigger = yesprimary_title = scope:title_to_check- Is played by the AI
Then
If
scope:title_to_check = title:c_verona
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:verona }
If
scope:title_to_check = title:c_padua
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:padua }
If
scope:title_to_check = title:c_treviso
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:treviso }
If
scope:title_to_check = title:c_bologna
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:bologna }
If
scope:title_to_check = title:c_ferrara
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:ferrara }
If
scope:title_to_check = title:c_modena
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:modena }
If
scope:title_to_check = title:c_mantua
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:mantua }
If
scope:title_to_check = title:c_cremona
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:cremona }
If
scope:title_to_check = title:c_brescia
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:brescia }
If
scope:title_to_check = title:c_novara
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:novara }
If
scope:title_to_check = title:c_tortona
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:tortona }
If
scope:title_to_check = title:c_piacenza
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:piacenza }
If
scope:title_to_check = title:c_parma
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:parma }
If
scope:title_to_check = title:c_genoa
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:genoa }
If
scope:title_to_check = title:c_guastalla
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:guastalla }
If
scope:title_to_check = title:c_polesine
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:polesine }
If
scope:title_to_check = title:c_lombardia
Then
scope:title_to_check.holder:save_lombard_league_creator_scopes_effect = { FLAG = flag:lombardia }
scope:title_to_check.holder:
- scope:title_to_check › Their holder:
• 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 (119 lines of game script)
try_to_set_up_lombard_league_with_effect = {
$TITLE$ = { save_scope_as = title_to_check }
if = {
limit = {
scope:title_to_check = {
holder ?= {
is_either_hre_vassal_or_independent_duke_or_less_trigger = yes
#This should be your primary title
primary_title = scope:title_to_check
is_ai = yes
}
}
}
#Save the scope
if = {
limit = { scope:title_to_check = title:c_verona }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:verona }
}
}
if = {
limit = { scope:title_to_check = title:c_padua }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:padua }
}
}
if = {
limit = { scope:title_to_check = title:c_treviso }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:treviso }
}
}
if = {
limit = { scope:title_to_check = title:c_bologna }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:bologna }
}
}
if = {
limit = { scope:title_to_check = title:c_ferrara }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:ferrara }
}
}
if = {
limit = { scope:title_to_check = title:c_modena }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:modena }
}
}
if = {
limit = { scope:title_to_check = title:c_mantua }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:mantua }
}
}
if = {
limit = { scope:title_to_check = title:c_cremona }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:cremona }
}
}
if = {
limit = { scope:title_to_check = title:c_brescia }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:brescia }
}
}
if = {
limit = { scope:title_to_check = title:c_novara }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:novara }
}
}
if = {
limit = { scope:title_to_check = title:c_tortona }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:tortona }
}
}
if = {
limit = { scope:title_to_check = title:c_piacenza }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:piacenza }
}
}
if = {
limit = { scope:title_to_check = title:c_parma }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:parma }
}
}
if = {
limit = { scope:title_to_check = title:c_genoa }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:genoa }
}
}
if = {
limit = { scope:title_to_check = title:c_guastalla }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:guastalla }
}
}
if = {
limit = { scope:title_to_check = title:c_polesine }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:polesine }
}
}
if = {
limit = { scope:title_to_check = title:c_lombardia }
scope:title_to_check.holder ?= {
save_lombard_league_creator_scopes_effect = { FLAG = flag:lombardia }
}
}
scope:title_to_check.holder ?= { create_lombard_league_effect = yes }
}
}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 try_to_set_up_lombard_league_with_effect.
Situations (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.