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

clear_merchant_company_focus_effect

clear_merchant_company_focus_effect = yes

game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 1120 (21 lines). No parameters.

clear_merchant_company_focus_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1120 of its file. It takes no parameters: clear_merchant_company_focus_effect = yes. The game's script calls it in 3 places, among them Set Company Focus (decision), apply_merchant_private_profit_focus_effect (scripted effect) and apply_merchant_public_works_focus_effect (scripted effect). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.

What it does

  • If has the Public Benefactor Modifier: Loses “Public Benefactor”
  • If has the Private Profit Modifier: Loses “Private Profit”
  • If

    a check the game hides

    Then

    • Every in list › If the county has the modifier “Sponsored Public Works”: The county loses the modifier “Sponsored Public Works”

• 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 (21 lines of game script)
clear_merchant_company_focus_effect = {
	if = {
		limit = { has_character_modifier = merchant_public_benefactor_modifier }
		remove_character_modifier = merchant_public_benefactor_modifier
	}
	if = {
		limit = { has_character_modifier = merchant_private_profit_focus_modifier }
		remove_character_modifier = merchant_private_profit_focus_modifier
	}
	if = {
		limit = { has_variable_list = merchant_public_works_counties }
		every_in_list = {
			variable = merchant_public_works_counties
			if = {
				limit = { has_county_modifier = merchant_sponsored_public_works_county_modifier }
				remove_county_modifier = merchant_sponsored_public_works_county_modifier
			}
		}
		clear_variable_list = merchant_public_works_counties
	}
}

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

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?