Scripted trigger · Khans of the Steppe files
confederation_foe_sub_trigger
confederation_foe_sub_trigger = { CHARACTER = … }game/common/scripted_triggers/mpo_scripted_triggers.txt, line 61 (31 lines). Parameters: $CHARACTER$.
confederation_foe_sub_trigger is a scripted trigger in Crusader Kings III, in the Khans of the Steppe files, written at line 61 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 2 places, among them confederation_foe_trigger (scripted trigger) and confederation_neighboring_foe_trigger (scripted trigger). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/mpo_scripted_triggers.txt.
What it checks
NOT = { is_allied_to = $CHARACTER$ }If
- Max military strength more than 0
$CHARACTER$.max_military_strength > 0
Then
- Has at least double your Military Strength
• 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 (31 lines of game script)
confederation_foe_sub_trigger = {
NOT = { is_allied_to = $CHARACTER$ }
OR = {
has_trait = conqueror
has_trait = greatest_of_khans
highest_held_title_tier >= tier_kingdom
custom_tooltip = {
text = call_for_confederation_decision_gurkhan
is_gurkhan = yes
}
custom_tooltip = {
text = considers_faith_evil_tt
faith = {
faith_hostility_level = {
target = $CHARACTER$.faith
value >= faith_evil_level
}
}
}
}
trigger_if = {
limit = {
max_military_strength > 0
$CHARACTER$.max_military_strength > 0
}
custom_tooltip = {
text = superior_max_military_strength_tt
confederation_worthy_foe_strength_ratio_value <= 0.5
}
}
}As written in game/common/scripted_triggers/mpo_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls confederation_foe_sub_trigger.
Scripted triggers (2)
Source: game/common/scripted_triggers/mpo_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.