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_merchant_company_keep_trigger

gdp_merchant_company_keep_trigger = yes

game/common/scripted_triggers/gdp_merchant_triggers.txt, line 2040 (15 lines). No parameters.

gdp_merchant_company_keep_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 2040 of its file. It takes no parameters: gdp_merchant_company_keep_trigger = yes (or no). The game's script calls it in 2 places, among them gdp_destroyed_republic_patrician_effect (scripted effect) and gdp_merchant_company_cullable_trigger (scripted trigger). Patch 1.21.0, from game/common/scripted_triggers/gdp_merchant_triggers.txt.

The comment above it in the file

Families worth keeping as merchants when the merchant population is over its limits

What it checks

  • One of these

    • Is played by a person
    • or

      has_character_flag = gdp_notable_republic_family
    • or

      Num trade routes at least 4
    • or

      Their dynasty: Level of Splendor at least 7
    • or

      gdp_merchant_is_player_relevant_trigger = yes
    • or

      Their house:
      • One of these

        • House member (at least 20):
        • or

          Any house member: Is landed

• 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 (15 lines of game script)
gdp_merchant_company_keep_trigger = {
	OR = {
		is_ai = no
		has_character_flag = gdp_notable_republic_family
		num_trade_routes >= 4
		dynasty ?= { dynasty_prestige_level >= high_dynasty_prestige_level }
		gdp_merchant_is_player_relevant_trigger = yes
		house ?= {
			OR = {
				any_house_member = { count >= 20 }
				any_house_member = { is_landed = yes }
			}
		}
	}
}

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

Where it is used

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

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