Scripted effect
update_public_credit_perk_effect
update_public_credit_perk_effect = yesgame/common/scripted_effects/00_diplomacy_perk_effects.txt, line 811 (17 lines). No parameters.
update_public_credit_perk_effect is a scripted effect in Crusader Kings III, written at line 811 of its file. It takes no parameters: update_public_credit_perk_effect = yes. The game's script calls it in 3 places, among them True Ruler (lifestyle perk), on_prestige_level_gain (on action) and on_prestige_level_loss (on action). Patch 1.21.0, from game/common/scripted_effects/00_diplomacy_perk_effects.txt.
What it does
remove_all_character_modifier_instances = public_credit_perk_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 (17 lines of game script)
update_public_credit_perk_effect = {
remove_all_character_modifier_instances = public_credit_perk_modifier
if = {
limit = {
government_has_flag = government_is_merchant
has_perk = true_ruler_perk
prestige_level > 0
}
while = {
count = prestige_level
add_character_modifier = {
modifier = public_credit_perk_modifier
}
}
}
}As written in game/common/scripted_effects/00_diplomacy_perk_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls update_public_credit_perk_effect.
Lifestyle perks (1)
On actions (the game's own hooks) (2)
- on_prestige_level_gain
- on_prestige_level_loss
Source: game/common/scripted_effects/00_diplomacy_perk_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.