Scripted trigger · Silk and Silver files
gdp_republic_senate_has_empty_seats_trigger
gdp_republic_senate_has_empty_seats_trigger = yesgame/common/scripted_triggers/gdp_republic_triggers.txt, line 257 (20 lines). No parameters.
gdp_republic_senate_has_empty_seats_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 257 of its file. It takes no parameters: gdp_republic_senate_has_empty_seats_trigger = yes (or no). The game's script calls it in 2 places, among them Appoint as Senator (interaction) and Appoint Senators (court task). 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
Does the senate have any empty seats? (republic head is the scoped character)
What it checks
If
has_realm_law_flag = republic_senate_size
Then
save_temporary_scope_value_as = { name = max_senate_size value = republic_senate_size_max_value }- The Senate has the maximum number of members
• 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 (20 lines of game script)
gdp_republic_senate_has_empty_seats_trigger = {
# Safety check to ensure that we have a senate
trigger_if = {
limit = {
has_realm_law_flag = republic_senate_size
}
save_temporary_scope_value_as = {
name = max_senate_size
value = republic_senate_size_max_value
}
custom_tooltip = {
text = republic_senate_is_full_desc
primary_title ?= {
any_full_assembly_member = {
count < scope:max_senate_size
}
}
}
}
}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_republic_senate_has_empty_seats_trigger.
Character interactions (1)
Court position tasks (1)
- Appoint Senators
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.