Scripted trigger · Silk and Silver files
gdp_holds_republic_title_trigger
gdp_holds_republic_title_trigger = yesgame/common/scripted_triggers/gdp_republic_triggers.txt, line 1041 (7 lines). No parameters.
gdp_holds_republic_title_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 1041 of its file. It takes no parameters: gdp_holds_republic_title_trigger = yes (or no). The game's script calls it in 4 places, among them on_title_lost (on action), add_legitimacy_attacker_victory_effect (scripted effect) and revoke_title_interaction_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_triggers/gdp_republic_triggers.txt.
The comment above it in the file
character holds a republic title
What it checks
• 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 (7 lines of game script)
gdp_holds_republic_title_trigger = {
custom_tooltip = {
text = gdp_holds_republic_title_trigger_tt
government_has_flag = government_is_republic
any_held_title = { gdp_is_republic_title_trigger = yes }
}
}As written in game/common/scripted_triggers/gdp_republic_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls gdp_holds_republic_title_trigger.
On actions (the game's own hooks) (1)
- on_title_lost
Scripted effects (2)
Scripted triggers (1)
Source: game/common/scripted_triggers/gdp_republic_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.