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

Scripted trigger · Silk and Silver files

gdp_league_commune_target_valid_trigger

gdp_league_commune_target_valid_trigger = { LEADER = … }

game/common/scripted_triggers/gdp_republic_triggers.txt, line 755 (40 lines). Parameters: $LEADER$.

gdp_league_commune_target_valid_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 755 of its file. A call passes 1 parameter: LEADER. The game's script calls it in 1 place, among them Proclaim a Commune (casus belli). Its body carries 4 texts of the game's own for the player. Patch 1.21.0, from game/common/scripted_triggers/gdp_republic_triggers.txt.

The comment above it in the file

Valid commune CB target for $LEADER$'s league

What it checks

• 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 (40 lines of game script)
gdp_league_commune_target_valid_trigger = {
	is_landless_type_title = no
	custom_tooltip = {
		text = league_commune_target_not_republican_tt
		holder ?= {
			NOT = { government_has_flag = government_is_republic }
		}
	}
	# City or castle required: other holdings cannot convert to a republic
	custom_tooltip = {
		text = league_commune_target_holding_tt
		title_province ?= {
			OR = {
				has_holding_type = city_holding
				has_holding_type = castle_holding
			}
		}
	}
	custom_tooltip = {
		text = league_commune_target_size_tt
		title_province ?= {
			province_size_level >= 2
		}
	}
	custom_tooltip = {
		text = league_commune_target_reach_tt
		OR = {
			is_coastal_county = yes
			is_neighbor_to_realm = $LEADER$
			AND = {
				exists = $LEADER$.confederation
				any_neighboring_county = {
					holder ?= {
						is_member_of_confederation = $LEADER$.confederation
					}
				}
			}
		}
	}
}

As written in game/common/scripted_triggers/gdp_republic_triggers.txt.

Where it is used

Every place in common/, events/ and history/ that calls gdp_league_commune_target_valid_trigger.

Casus belli (1)

Source: game/common/scripted_triggers/gdp_republic_triggers.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?