Scripted trigger
efg_contested_empire_grace_period_elapsed_trigger
efg_contested_empire_grace_period_elapsed_trigger = yesgame/common/scripted_triggers/00_empire_faith_gate_triggers.txt, line 215 (24 lines). No parameters.
efg_contested_empire_grace_period_elapsed_trigger is a scripted trigger in Crusader Kings III, written at line 215 of its file. It takes no parameters: efg_contested_empire_grace_period_elapsed_trigger = yes (or no). The game's script calls it in 2 places, among them Excommunicate (interaction) and Dissolve Empire (casus belli). Patch 1.20.1.2, from game/common/scripted_triggers/00_empire_faith_gate_triggers.txt.
The comment above it in the file
The AI has no grace, while we give players a short window after creating a new empire
What it checks
If
One of these
NOT = { has_contested_empire_trigger = yes }or
NOT = { faith_has_existing_empire_holder_trigger = yes }
Then
always = yes
Otherwise
- If played by the AI:
always = yes
- Otherwise:
One of these
NOT = { exists = var:efg_grace_period_end_year }or
current_year >= var:efg_grace_period_end_year
• 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)
efg_contested_empire_grace_period_elapsed_trigger = {
trigger_if = {
limit = {
OR = {
NOT = { has_contested_empire_trigger = yes }
NOT = { faith_has_existing_empire_holder_trigger = yes }
}
}
always = yes
}
trigger_else = {
trigger_if = {
limit = { is_ai = yes }
always = yes
}
trigger_else = {
# Player with contested empire: grace period elapsed if no variable (legacy) or current year >= end year.
OR = {
NOT = { exists = var:efg_grace_period_end_year }
current_year >= var:efg_grace_period_end_year
}
}
}
}As written in game/common/scripted_triggers/00_empire_faith_gate_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls efg_contested_empire_grace_period_elapsed_trigger.
Character interactions (1)
Casus belli (1)
Source: game/common/scripted_triggers/00_empire_faith_gate_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.