Scripted effect · Coronations files
coronation_move_towards_detractor_effect
coronation_move_towards_detractor_effect = { CHARACTER = … }game/common/scripted_effects/10_ach_effects.txt, line 2072 (131 lines). Parameters: $CHARACTER$.
coronation_move_towards_detractor_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 2072 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 7 places, among them A Coughing Crown (event ach_coronation.0022), A Suspiciously Cultured Crowd (event coronation_events_klank.1001) and Legitimate Stupors (event ach_coronation.0028). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/10_ach_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (120 lines of game script)
coronation_move_towards_detractor_effect = {
$CHARACTER$ = {
if = {
limit = {
scope:activity = {
is_target_in_variable_list = {
name = major_supporter
target = $CHARACTER$
}
}
}
scope:activity = {
remove_list_variable = {
name = major_supporter
target = $CHARACTER$
}
}
}
#re you a detractor? Stop that
if = {
limit = {
is_participant_in_activity = scope:activity
}
if = {
limit = {
is_in_guest_subset = {
name = supporter
}
}
if = {
limit = {
root = scope:host
}
custom_tooltip = hater_leaves_supporters_tt
}
else = {
custom_tooltip = hater_leaves_supporters_tt.guest
}
scope:activity = {
remove_from_guest_subset = {
name = supporter
target = $CHARACTER$
}
add_to_variable_list = {
name = blocked_from_supporters
target = $CHARACTER$
}
if = {
limit = {
has_variable_list = locked_into_detractors
}
remove_list_variable = {
name = locked_into_detractors
target = $CHARACTER$
}
}
}
}
#Not a supporter? Make them a supporter
else_if = {
limit = {
NOT = {
is_in_guest_subset = {
name = detractor
}
}
}
if = {
limit = {
root = scope:host
}
custom_tooltip = hater_becomes_detractor_tt
}
else = {
custom_tooltip = hater_becomes_detractor_tt.guest
}
scope:activity = {
add_to_guest_subset = {
name = detractor
target = $CHARACTER$
}
add_to_variable_list = {
name = locked_into_detractors
target = $CHARACTER$
}
if = {
limit = {
has_variable_list = blocked_from_detractors
}
remove_list_variable = {
name = blocked_from_detractors
target = $CHARACTER$
}
}
}
}
if = {
limit = {
NOT = {
scope:activity = {
any_in_list = {
variable = major_detractor
count = all
coronation_detractor_sort_value > $CHARACTER$.coronation_detractor_sort_value
}
}
}
}
scope:activity = {
ordered_in_list = {
variable = major_detractor
order_by = {
value = coronation_detractor_sort_value
multiply = -1
}
scope:activity = {
remove_list_variable = {
name = major_detractor
target = prev
}As written in game/common/scripted_effects/10_ach_effects.txt.
The first 120 of its 131 lines; the rest is in game/common/scripted_effects/10_ach_effects.txt from line 2072.
Where it is used
Every place in common/, events/ and history/ that calls coronation_move_towards_detractor_effect.
Events (7)
- A Coughing Crown
ach_coronation.0022 - A Suspiciously Cultured Crowd
coronation_events_klank.1001 - Legitimate Stupors
ach_coronation.0028 - Our Voices and the Ages
coronation_events.6001 - Questions of Rite and Right
ach_coronation.0012 - The Kurultai
coronation_events.6121
1 more
- The Three Assents
coronation_events.6123
Source: game/common/scripted_effects/10_ach_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.