Scripted effect
remove_strife_per_invited_powerful_vassal_effect
remove_strife_per_invited_powerful_vassal_effect = yesgame/common/scripted_effects/00_diarchy_scripted_effects.txt, line 223 (35 lines). No parameters.
remove_strife_per_invited_powerful_vassal_effect is a scripted effect in Crusader Kings III, written at line 223 of its file. It takes no parameters: remove_strife_per_invited_powerful_vassal_effect = yes. The game's script calls it in 2 places, among them disburse_feast_activity_rewards (scripted effect) and disburse_hunt_activity_rewards (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_diarchy_scripted_effects.txt.
What it does
scope:activity:If
- scope:host: Strife Opinion at least 1
- Any attending character:
is_powerful_vassal_of = scope:host.liege
Then
- … lost … Strife due to attending Powerful Vassals from …
• 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 (35 lines of game script)
remove_strife_per_invited_powerful_vassal_effect = {
scope:activity = {
if = {
limit = {
# Does scope:host have any strife to take care of?
scope:host = {
exists = liege
strife_opinion >= 1
}
any_attending_character = {
this != scope:host
is_powerful_vassal_of = scope:host.liege
}
}
# Save a variable for the loc key so that we don't need to parse a million scopes _into_ the key.
## We do it this way because the custom_tooltip otherwise gets real finnicky about having
scope:host = {
set_variable = {
name = strife_loss_total
value = {
value = scope:activity.diarch_reduced_strife_for_inviting_powerful_covassals_value
# Invert it for UX purposes.
multiply = -1
}
}
}
custom_tooltip = remove_strife_per_invited_powerful_vassal_effect.tt
## Don't forget to remove the variable!
# Now, change the actual strife.
hidden_effect = {
scope:host = { change_strife_opinion = scope:activity.diarch_reduced_strife_for_inviting_powerful_covassals_value }
}
}
}
}As written in game/common/scripted_effects/00_diarchy_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls remove_strife_per_invited_powerful_vassal_effect.
Scripted effects (2)
Source: game/common/scripted_effects/00_diarchy_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.