Scripted effect · Silk and Silver files
update_merchant_defender_of_the_faith_effect
update_merchant_defender_of_the_faith_effect = yesgame/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 808 (16 lines). No parameters.
update_merchant_defender_of_the_faith_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 808 of its file. It takes no parameters: update_merchant_defender_of_the_faith_effect = yes. The game's script calls it in 4 places, among them Defender of the Faith (lifestyle perk), on_perks_refunded (on action) and on_piety_level_gain (on action). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
What it does
remove_all_character_modifier_instances = merchant_defender_of_the_faith_competitiveness_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 (16 lines of game script)
update_merchant_defender_of_the_faith_effect = {
remove_all_character_modifier_instances = merchant_defender_of_the_faith_competitiveness_modifier
if = {
limit = {
government_has_flag = government_has_merchant_company
has_perk = defender_of_the_faith_perk
}
while = {
count = piety_level
add_character_modifier = {
modifier = merchant_defender_of_the_faith_competitiveness_modifier
}
}
}
}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 update_merchant_defender_of_the_faith_effect.
Lifestyle perks (1)
On actions (the game's own hooks) (3)
- on_perks_refunded
- on_piety_level_gain
- on_piety_level_loss
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.