CK3 DatabaseCrusader Kings III · 1.21.0 “Florin” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →Merch→

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

• 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.

Spotted a mistake on this page, or have an idea for the site?