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_is_player_relevant_trigger

gdp_merchant_is_player_relevant_trigger = yes

game/common/scripted_triggers/gdp_merchant_triggers.txt, line 2022 (16 lines). No parameters.

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

What it checks

  • Any player:
    • One of these

      • scope:player_relevant_merchant_temp.suzerain ?= this
      • or

        dynasty ?= scope:player_relevant_merchant_temp.dynasty
      • or

        is_close_or_extended_family_of = scope:player_relevant_merchant_temp
      • or

        is_consort_of = scope:player_relevant_merchant_temp
      • or

        has_important_relationship_with_character_trigger = { CHARACTER = scope:player_relevant_merchant_temp }
      • or

        is_allied_to = scope:player_relevant_merchant_temp
      • or

        Any character task contract:
        • task_contract_target.house ?= scope:player_relevant_merchant_temp.house

• 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 (16 lines of game script)
gdp_merchant_is_player_relevant_trigger = {
	save_temporary_scope_as = player_relevant_merchant_temp
	any_player = {
		OR = {
			scope:player_relevant_merchant_temp.suzerain ?= this
			dynasty ?= scope:player_relevant_merchant_temp.dynasty
			is_close_or_extended_family_of = scope:player_relevant_merchant_temp
			is_consort_of = scope:player_relevant_merchant_temp
			has_important_relationship_with_character_trigger = { CHARACTER = scope:player_relevant_merchant_temp }
			is_allied_to = scope:player_relevant_merchant_temp
			any_character_task_contract = {
				task_contract_target.house ?= scope:player_relevant_merchant_temp.house
			}
		}
	}
}

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_is_player_relevant_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?