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: Profligateor
All of these
- Has the Trait: Improvident
exists = scope:generous_purchase
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)
Activities (8)
Events (14)
- A Guilded Contribution
cultural_festival.2100 - A Life to Remember: …
fp1_yearly.1062 - A Mystic's Mind
culture_tradition_events.0101 - A Vessel fit for a …
fp1_yearly.0091 - An Unexpected Performer
cultural_festival.2110 - court.6011
8 more
- Danger: Blood on the Door
epidemic_events.3000 - Gifts for the …
bp2_yearly.0621 - Knaves and Fools
ep2_locale_events.1060 - No … Imprisoned
bp2_yearly.6010 - Raid or Trade: Belligerents with Benefits
fp1_trade_events.0041 - Second-Hand Glamor
court.2401 - The Northerner Menace
fp1_trade_events.1131 - Worthy of the Ocean
fp1_yearly.0641
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.