Scripted effect
log_diarch_send_interaction_as_variable_effect
log_diarch_send_interaction_as_variable_effect = { INTERACTION = … }game/common/scripted_effects/00_diarchy_scripted_effects.txt, line 8 (26 lines). Parameters: $INTERACTION$.
log_diarch_send_interaction_as_variable_effect is a scripted effect in Crusader Kings III, written at line 8 of its file. A call passes 1 parameter: INTERACTION. The game's script calls it in 4 places, among them … Revoke Title (interaction), Legal Meddling (interaction) and Shift Privileges (interaction). Patch 1.20.1.2, from game/common/scripted_effects/00_diarchy_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (26 lines of game script)
log_diarch_send_interaction_as_variable_effect = {
if = {
limit = { always = no }
# Did a landless diarch send this?
if = {
limit = {
scope:actor = { is_ruler = no }
}
if = {
limit = {
NOT = { exists = global_var:landless_diarch_tried_$INTERACTION$ }
}
set_global_variable = {
name = landless_diarch_tried_$INTERACTION$
value = 1
}
}
else = {
change_global_variable = {
name = landless_diarch_tried_$INTERACTION$
add = 1
}
}
}
}
}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 log_diarch_send_interaction_as_variable_effect.
Character interactions (4)
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.