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

gdp_sponsor_merchant_company_effect

gdp_sponsor_merchant_company_effect = { SIZE = … }

game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 3839 (32 lines). Parameters: $SIZE$.

gdp_sponsor_merchant_company_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 3839 of its file. A call passes 1 parameter: SIZE. The game's script calls it in 1 place, among them In the Company of … (event gdp_decision.3010). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.

The comment above it in the file

Sponsor Merchant Company decision, run as the sponsor with scope:sponsored_courtier saved
SIZE = small/medium/large/huge

What it does

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

The script as written (32 lines of game script)
gdp_sponsor_merchant_company_effect = {
	remove_short_term_gold = gdp_sponsor_merchant_company_cost_$SIZE$_value
	add_character_flag = {
		flag = gdp_sponsored_merchant_company
		years = 5
	}
	scope:sponsored_courtier = {
		create_merchant_title_effect = {
			REASON = flag:historical
			FLAVOR_CHAR = root
		}
		custom_tooltip = gdp_sponsor_merchant_company_size_$SIZE$_tt
		# Applied after creation so it overrides set_starting_company_size_effect
		hidden_effect = {
			domicile ?= {
				if = {
					limit = {
						NOT = { domicile_location = root.capital_province }
					}
					move_domicile = root.capital_province
				}
			}
			if = {
				limit = {
					is_ruler = yes
					NOT = { has_realm_law = company_size_$SIZE$ }
				}
				add_realm_law_skip_effects = company_size_$SIZE$
			}
		}
	}
}

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

Where it is used

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

Events (1)

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