Scripted trigger · Silk and Silver files
gdp_republic_senate_has_enough_senators_trigger
gdp_republic_senate_has_enough_senators_trigger = yesgame/common/scripted_triggers/gdp_republic_triggers.txt, line 231 (24 lines). No parameters.
gdp_republic_senate_has_enough_senators_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 231 of its file. It takes no parameters: gdp_republic_senate_has_enough_senators_trigger = yes (or no). The game's script calls it in 2 places, among them gdp_assembly_can_pass_decrees_trigger (scripted trigger) and gdp_can_pass_republic_law_trigger (scripted trigger). 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 enough senators for approval? (republic head is the scoped character)
What it checks
If
has_realm_law_flag = republic_senate_size
Then
save_temporary_scope_value_as = { … }- The Senate must have at least needed senate size active 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 (24 lines of game script)
gdp_republic_senate_has_enough_senators_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 = needed_senate_size
value = {
value = republic_senate_size_max_value
multiply = 0.8 # Must have at least 80% of the senator seats filled
ceiling = yes # Rounded up
}
}
custom_tooltip = {
text = must_have_at_least_senator_limit_desc
primary_title ?= {
any_full_assembly_member = {
count >= scope:needed_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_enough_senators_trigger.
Scripted triggers (2)
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.