Scripted effect · Silk and Silver files
gdp_pledge_assembly_vote_effect
gdp_pledge_assembly_vote_effect = { PLEDGER = … }game/common/scripted_effects/gdp_republic_effects.txt, line 1369 (22 lines). Parameters: $PLEDGER$.
gdp_pledge_assembly_vote_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1369 of its file. A call passes 1 parameter: PLEDGER. The game's script calls it in 3 places, among them Beating the Vote Out of Them (event yearly_republic.1016), Gold for Votes (event yearly_republic.1015) and Philosopher-Kings (event yearly_republic.1017). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_republic_effects.txt.
The comment above it in the file
Effect for a patrician pledging to vote with the scoped character in the next voting session
What it does
- … pledges to vote as you do in the next Voting Session, for up to 5 years (or until … … away)
• 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 (22 lines of game script)
gdp_pledge_assembly_vote_effect = {
$PLEDGER$ = { save_scope_as = vote_pledger }
custom_tooltip = {
text = gdp_pledge_assembly_vote_desc
add_to_variable_list = {
name = law_approvers
target = scope:vote_pledger
years = gdp_pledged_assembly_vote_duration_value
}
# Marker so the pledge stays legible until a vote is called, refreshed by each new pledge
if = {
limit = {
has_character_modifier = gdp_pledged_assembly_vote_modifier
}
remove_character_modifier = gdp_pledged_assembly_vote_modifier
}
add_character_modifier = {
modifier = gdp_pledged_assembly_vote_modifier
years = gdp_pledged_assembly_vote_duration_value
}
}
}As written in game/common/scripted_effects/gdp_republic_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls gdp_pledge_assembly_vote_effect.
Events (3)
- Beating the Vote Out of Them
yearly_republic.1016 - Gold for Votes
yearly_republic.1015 - Philosopher-Kings
yearly_republic.1017
Source: game/common/scripted_effects/gdp_republic_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.