Scripted trigger · Roads to Power files
is_competing_for_same_title_as
is_competing_for_same_title_as = { CHARACTER = … }game/common/scripted_triggers/07_ep3_triggers.txt, line 178 (16 lines). Parameters: $CHARACTER$.
is_competing_for_same_title_as is a scripted trigger in Crusader Kings III, in the Roads to Power files, written at line 178 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 5 places, among them Challenge Status (Scheme) (interaction), Ingratiate Family (Scheme) (interaction) and Promote (Scheme) (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/07_ep3_triggers.txt.
What it checks
- they has administrative government mechanic
- Any heir title: The … is not a Noble Family Title
$CHARACTER$ = { government_has_mechanic = administrative }- scope:temp_title: Any title heir:
• 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)
is_competing_for_same_title_as = {
government_has_mechanic = administrative
any_heir_title = {
exists = this
is_noble_family_title = no
save_temporary_scope_as = temp_title
}
$CHARACTER$ = {
government_has_mechanic = administrative
}
scope:temp_title = {
any_title_heir = {
this = $CHARACTER$
}
}
}As written in game/common/scripted_triggers/07_ep3_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls is_competing_for_same_title_as.
Character interactions (4)
Scripted triggers (1)
Source: game/common/scripted_triggers/07_ep3_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.