Scripted trigger
lifestyle_friend_trigger
lifestyle_friend_trigger = { CHARACTER = … FOCUS = … }game/common/scripted_triggers/00_lifestyle_triggers.txt, line 244 (13 lines). Parameters: $CHARACTER$, $FOCUS$.
lifestyle_friend_trigger is a scripted trigger in Crusader Kings III, written at line 244 of its file. A call passes 2 parameters: CHARACTER and FOCUS. The game's script calls it in 11 places, among them A Bloom In The Wilderness (event intrigue_temptation.3010), A Demonstration of Leadership (event martial_authority_special.3000) and A Heavy Crown (event learning_medicine.2030). Patch 1.20.1.2, from game/common/scripted_triggers/00_lifestyle_triggers.txt.
The comment above it in the file
Trigger to check if a friend is a lifestyle friend
What it checks
If
$CHARACTER$ = { is_ai = yes }
Then
One of these
has_focus = $FOCUS$or
Is not a ruler
Otherwise
$FOCUS$_friend_points > 0
• 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 (13 lines of game script)
lifestyle_friend_trigger = {
trigger_if = {
limit = { $CHARACTER$ = { is_ai = yes } }
OR = {
has_focus = $FOCUS$
is_ruler = no
}
}
#If a player, check the friend points
trigger_else = {
$FOCUS$_friend_points > 0
}
}As written in game/common/scripted_triggers/00_lifestyle_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls lifestyle_friend_trigger.
Events (10)
- A Bloom In The Wilderness
intrigue_temptation.3010 - A Demonstration of Leadership
martial_authority_special.3000 - A Heavy Crown
learning_medicine.2030 - A Little Experimentation
intrigue_temptation.3110 - A Word of Advice
stewardship_wealth.5002 - Bleeding Out
learning_medicine.2050
4 more
- Delicate Affairs
diplomacy_foreign.1200 - Holy Letter
learning_theology.3021 - Mind and Body
learning_medicine.2040 - Shared Prayer
learning_theology.3011
Scripted triggers (1)
Source: game/common/scripted_triggers/00_lifestyle_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.