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

is_title_purchasable_shared_trigger

is_title_purchasable_shared_trigger = { BUYER = … SELLER = … TITLE = … }

game/common/scripted_triggers/11_gdp_triggers.txt, line 236 (46 lines). Parameters: $BUYER$, $SELLER$, $TITLE$.

is_title_purchasable_shared_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 236 of its file. A call passes 3 parameters: BUYER, SELLER and TITLE. The game's script calls it in 2 places, among them Purchase Land (interaction). Its body carries 5 texts of the game's own for the player. Patch 1.21.0, from game/common/scripted_triggers/11_gdp_triggers.txt.

The comment above it in the file

can a title be purchased in an interaction?

What it checks

  • $TITLE$ ?= { save_temporary_scope_as = title_temp }
  • $BUYER$ ?= { save_temporary_scope_as = buyer_temp }
  • $SELLER$ ?= { save_temporary_scope_as = seller_temp }
  • scope:title_temp:

• 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 (46 lines of game script)
is_title_purchasable_shared_trigger = {
	$TITLE$ ?= { save_temporary_scope_as = title_temp }
	$BUYER$ ?= { save_temporary_scope_as = buyer_temp }
	$SELLER$ ?= { save_temporary_scope_as = seller_temp }
	scope:title_temp ?= {
		# Only counties/duchies
		custom_tooltip = {
			text = purchase_land_tier_tt
			tier >= tier_county
			tier <= tier_duchy
		}
		# Not capital county of seller
		custom_tooltip = {
			text = purchase_land_capital_tt
			this != scope:seller_temp.capital_county
		}
		# Not primary title of seller
		custom_tooltip = {
			text = purchase_land_primary_tt
			this != scope:seller_temp.primary_title
		}
		# Prestige req for duchies
		custom_tooltip = {
			text = purchase_land_duchy_tt
			trigger_if = {
				limit = { tier = tier_duchy }
				scope:buyer_temp.prestige_level >= 3
			}
		}
		# Duchies only allowed if seller completely controls the duchy
		custom_tooltip = {
			text = PURCHASE_LAND_COMPLETE_CONTROL_TT
			trigger_if = {
				limit = { scope:target = { tier = tier_duchy } }
				scope:recipient = {
					completely_controls = scope:target
				}
			}
		}
		# Must be held by seller
		trigger_if = {
			limit = { exists = holder }
			holder = scope:seller_temp
		}
	}
}

As written in game/common/scripted_triggers/11_gdp_triggers.txt.

Where it is used

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

Character interactions (2)

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