Scripted effect · Silk and Silver files
gdp_tgf_add_tiered_character_modifier_effect
gdp_tgf_add_tiered_character_modifier_effect = { MODIFIER = … YEARS = … }game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 7258 (15 lines). Parameters: $MODIFIER$, $YEARS$.
gdp_tgf_add_tiered_character_modifier_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 7258 of its file. A call passes 2 parameters: MODIFIER and YEARS. The game's script calls it in 6 places, among them A Truce of Traders (event gdp_trade_good_flavor.1012), Flooded Market (event gdp_trade_good_flavor.1047) and Other … See Armies (event gdp_trade_good_flavor.2009). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
The comment above it in the file
Character version of gdp_tgf_add_tiered_route_modifier_effect. this = character
What it does
If
Then
- Gains the modifier “$MODIFIER$ renowned modifier”
Otherwise
- Gains the modifier “$MODIFIER$ modifier”
• 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 (15 lines of game script)
gdp_tgf_add_tiered_character_modifier_effect = {
if = {
limit = { gdp_tgf_root_renowned_in_event_category_trigger = yes }
add_character_modifier = {
modifier = $MODIFIER$_renowned_modifier
years = $YEARS$
}
}
else = {
add_character_modifier = {
modifier = $MODIFIER$_modifier
years = $YEARS$
}
}
}As written in game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls gdp_tgf_add_tiered_character_modifier_effect.
Events (6)
- A Truce of Traders
gdp_trade_good_flavor.1012 - Flooded Market
gdp_trade_good_flavor.1047 - Other … See Armies
gdp_trade_good_flavor.2009 - The Builder's Rate
gdp_trade_good_flavor.1020 - The Price of …
gdp_trade_good_flavor.1011 - Under the Hammer
gdp_trade_good_flavor.1024
Source: game/common/scripted_effects/gdp_merchant_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.