Scripted effect · Silk and Silver files
update_merchant_missionary_network_effect
update_merchant_missionary_network_effect = yesgame/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 537 (23 lines). No parameters.
update_merchant_missionary_network_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 537 of its file. It takes no parameters: update_merchant_missionary_network_effect = yes. The game's script calls it in 5 places, among them Zealous Proselytizer (lifestyle perk), on_perks_refunded (on action) and on_trade_route_created (on action). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
The comment above it in the file
Merchant Lifestyle Effects
What it does
remove_all_character_modifier_instances = merchant_missionary_network_modifierIf
- Government is Merchant
- Has the Zealous Proselytizer Perk
Then
- Every trade route › prev:
- Gains the modifier “Missionary Network”
- Piety +0.1/month
- Gains the modifier “Missionary Network”
• 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 (23 lines of game script)
update_merchant_missionary_network_effect = {
remove_all_character_modifier_instances = merchant_missionary_network_modifier
if = {
limit = {
government_has_flag = government_is_merchant
has_perk = zealous_proselytizer_perk
}
every_trade_route = {
limit = {
trigger_if = {
limit = { exists = scope:destroyed_trade_route }
NOT = { this = scope:destroyed_trade_route }
}
}
prev = {
add_character_modifier = {
modifier = merchant_missionary_network_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_missionary_network_effect.
Lifestyle perks (1)
On actions (the game's own hooks) (4)
- on_perks_refunded
- on_trade_route_created
- on_trade_route_destroyed
- on_trade_route_edited
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.