Scripted trigger
is_below_ai_friend_soft_cap_trigger
is_below_ai_friend_soft_cap_trigger = yesgame/common/scripted_triggers/00_relation_triggers.txt, line 291 (24 lines). No parameters.
is_below_ai_friend_soft_cap_trigger is a scripted trigger in Crusader Kings III, written at line 291 of its file. It takes no parameters: is_below_ai_friend_soft_cap_trigger = yes (or no). The game's script calls it in 1 place, among them Befriend (scheme). Patch 1.20.1.2, from game/common/scripted_triggers/00_relation_triggers.txt.
What it checks
If
- Is played by the AI
NOT = { puppeteer ?= { is_ai = no } }
Then
If
One of these
- Highest held Title is at least Kingdom Rank
or
Has the Trait: Gregarious
Then
- Num of relation friend less than 3
Otherwise
- Num of relation friend less than 1
Otherwise
always = yes
• 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 (24 lines of game script)
is_below_ai_friend_soft_cap_trigger = {
trigger_if = {
limit = {
is_ai = yes
NOT = { puppeteer ?= { is_ai = no } }
}
trigger_if = {
limit = {
OR = {
highest_held_title_tier >= tier_kingdom
has_trait = gregarious
}
}
num_of_relation_friend < 3
}
trigger_else = {
num_of_relation_friend < 1
}
}
trigger_else = {
always = yes
}
}As written in game/common/scripted_triggers/00_relation_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls is_below_ai_friend_soft_cap_trigger.
Schemes (1)
- Befriend
Source: game/common/scripted_triggers/00_relation_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.