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

create_lombard_league_effect

create_lombard_league_effect = yes

game/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

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

Situations (1)

Events (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?