CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger

can_make_expensive_purchase_trigger

can_make_expensive_purchase_trigger = { PRICE = … }

game/common/scripted_triggers/00_economic_triggers.txt, line 1 (16 lines). Parameters: $PRICE$.

can_make_expensive_purchase_trigger is a scripted trigger in Crusader Kings III, written at line 1 of its file. A call passes 1 parameter: PRICE. The game's script calls it in 23 places, among them Purchase Truce (interaction), Coronation (activity) and Grand Rite (activity). Patch 1.20.1.2, from game/common/scripted_triggers/00_economic_triggers.txt.

What it checks

  • One of these

    • Is played by a person
    • or

      Has the Trait: Profligate
    • or

      All of these

    • or

      short_term_gold >= $PRICE$

• 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)
can_make_expensive_purchase_trigger = {
	OR = {
		# Players can make their own decisions.
		is_ai = no
		# Some people are just really bad with money.
		has_trait = profligate
		## If a purchase is unwise but would be magnanimous, save this scope first to flag it as valid in the event.
		### If you're in a chain, don't forget to clear the scope up afterwards with clear_saved_scope, otherwise it might affect other usages of the trigger further down the chain.
		AND = {
			has_trait = improvident
			exists = scope:generous_purchase
		}
		# And if you've got the cash to spare, who cares?
		short_term_gold >= $PRICE$
	}
}

As written in game/common/scripted_triggers/00_economic_triggers.txt.

Where it is used

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

Character interactions (1)

Events (14)

8 more

Source: game/common/scripted_triggers/00_economic_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?