Scripted effect · Silk and Silver files
gdp_republic_popular_opinion_market_modifier_effect
gdp_republic_popular_opinion_market_modifier_effect = { MODIFIER = … SEVERITY = … STATE = … }game/common/scripted_effects/gdp_republic_effects.txt, line 3184 (25 lines). Parameters: $MODIFIER$, $SEVERITY$, $STATE$.
gdp_republic_popular_opinion_market_modifier_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 3184 of its file. A call passes 3 parameters: MODIFIER, SEVERITY and STATE. The game's script calls it in 4 places, among them gdp_republic_popular_opinion_mild_neg (on action), gdp_republic_popular_opinion_mild_pos (on action) and gdp_republic_popular_opinion_severe_neg (on action). Patch 1.21.0, from game/common/scripted_effects/gdp_republic_effects.txt.
What it does
scope:gdp_republic_market:add_trade_market_modifier = { modifier = $MODIFIER$ years = 5 }
- Every in list › scope:gdp_republic_market:
add_trade_market_modifier = { modifier = $MODIFIER$ years = 5 }
• 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 (25 lines of game script)
gdp_republic_popular_opinion_market_modifier_effect = {
scope:gdp_republic_market ?= {
add_trade_market_modifier = {
modifier = $MODIFIER$
years = 5
}
}
every_in_list = {
list = gdp_republic_notification_targets
send_interface_message = {
type = event_republic_popular_opinion_$STATE$
title = gdp_popular_opinion_$SEVERITY$_title
left_icon = root
show_as_tooltip = {
scope:gdp_republic_market ?= {
add_trade_market_modifier = {
modifier = $MODIFIER$
years = 5
}
}
}
}
}
}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_republic_popular_opinion_market_modifier_effect.
On actions (the game's own hooks) (4)
- gdp_republic_popular_opinion_mild_neg
- gdp_republic_popular_opinion_mild_pos
- gdp_republic_popular_opinion_severe_neg
- gdp_republic_popular_opinion_strong_pos
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.