Scripted trigger
can_become_leader_of_faction_trigger
can_become_leader_of_faction_trigger = yesgame/common/scripted_triggers/00_faction_triggers.txt, line 273 (21 lines). No parameters.
can_become_leader_of_faction_trigger is a scripted trigger in Crusader Kings III, written at line 273 of its file. It takes no parameters: can_become_leader_of_faction_trigger = yes (or no). The game's script calls it in 8 places, among them Ceremonial Claimant Faction (factions), Claimant Faction (factions) and Dissolution Faction (factions). Patch 1.20.1.2, from game/common/scripted_triggers/00_faction_triggers.txt.
The comment above it in the file
Japanese Faction Triggers #
What it checks
is_playable_character = yes- If government uses Blocs:
One of these
- Is not a member of a Confederation
or
house.house_confederation.leading_house.house_head ?= thisor
All of these
house.house_confederation.leading_house.house_head ?= { tgp_is_ceremonial_liege_trigger = yes }joined_faction.faction_leader ?= { is_leading_faction_type = restore_ceremonial_liege_faction }
or
NOT = { exists = joined_faction.faction_leader }
• 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 (21 lines of game script)
can_become_leader_of_faction_trigger = {
is_playable_character = yes
trigger_if = {
limit = {
government_has_flag = government_has_house_blocs
}
OR = {
is_confederation_member = no
house.house_confederation.leading_house.house_head ?= this
AND = {
house.house_confederation.leading_house.house_head ?= {
tgp_is_ceremonial_liege_trigger = yes
}
joined_faction.faction_leader ?= {
is_leading_faction_type = restore_ceremonial_liege_faction
}
}
NOT = { exists = joined_faction.faction_leader }
}
}
}As written in game/common/scripted_triggers/00_faction_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls can_become_leader_of_faction_trigger.
Factions (8)
- Ceremonial Claimant Faction
- Claimant Faction
- Dissolution Faction
- Imperial Policy Faction
- Independence Faction
- Install Ruling Regent Faction
2 more
- Liberty Faction
- Restore Ceremonial Monarch Faction
Source: game/common/scripted_triggers/00_faction_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.