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

burgher_link_sponsor_effect

burgher_link_sponsor_effect = { FACTION = … SPONSOR = … }

game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 1552 (29 lines). Parameters: $FACTION$, $SPONSOR$.

burgher_link_sponsor_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1552 of its file. A call passes 2 parameters: FACTION and SPONSOR. The game's script calls it in 1 place, among them gdp_civic_agitation_success_effect (scripted effect). Patch 1.21.0, from game/common/scripted_effects/gdp_burgher_scripted_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (29 lines of game script)
burgher_link_sponsor_effect = {
	$FACTION$ = {
		if = {
			limit = { NOT = { var:merchant_sponsor ?= $SPONSOR$ } }
			set_variable = {
				name = merchant_sponsor
				value = $SPONSOR$
			}
			$SPONSOR$ = {
				add_to_variable_list = {
					name = sponsored_burgher_factions
					target = $FACTION$
				}
			}
		}

		if = {
			limit = { $SPONSOR$ = { has_variable = burgher_sponsor_joins_war } }
			set_variable = burgher_sponsor_joins_war
			$SPONSOR$ = { remove_variable = burgher_sponsor_joins_war }
		}

		if = {
			limit = { $SPONSOR$ = { has_variable = burgher_sponsor_war_chest } }
			set_variable = burgher_sponsor_war_chest
			$SPONSOR$ = { remove_variable = burgher_sponsor_war_chest }
		}
	}
}

As written in game/common/scripted_effects/gdp_burgher_scripted_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/gdp_burgher_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?