Scripted effect · Silk and Silver files
update_merchant_house_of_knives_effect
update_merchant_house_of_knives_effect = yesgame/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 68 (27 lines). No parameters.
update_merchant_house_of_knives_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 68 of its file. It takes no parameters: update_merchant_house_of_knives_effect = yes. The game's script calls it in 2 places, among them Malice Implicit (lifestyle perk) and on_perks_refunded (on action). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
The comment above it in the file
Torturer Intrigue Lifestyle Perk Effect
What it does
- Loses “Company Direction: House of Knives”
If
- Government is Merchant
- Has the Malice Implicit Perk
Then
If
- Their house: House unity is rapacious cs
Then
- Gains the modifier “Company Direction: House of Knives”
- Dread Baseline +20
Else if
- Their house: House unity is opportunistic cs
Then
- Gains the modifier “Company Direction: House of Knives”
- Dread Baseline +10
• 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 (27 lines of game script)
update_merchant_house_of_knives_effect = {
remove_character_modifier = merchant_house_of_knives_fractious_modifier
remove_character_modifier = merchant_house_of_knives_divided_modifier
if = {
limit = {
government_has_flag = government_is_merchant
has_perk = malice_implicit_perk
}
if = {
limit = {
house ?= { has_house_unity_stage = rapacious_cs }
}
add_character_modifier = {
modifier = merchant_house_of_knives_divided_modifier
}
}
else_if = {
limit = {
house ?= { has_house_unity_stage = opportunistic_cs }
}
add_character_modifier = {
modifier = merchant_house_of_knives_fractious_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_house_of_knives_effect.
Lifestyle perks (1)
On actions (the game's own hooks) (1)
- on_perks_refunded
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.