Scripted effect · Coronations files
coronation_move_towards_supporter_effect
coronation_move_towards_supporter_effect = { CHARACTER = … }game/common/scripted_effects/10_ach_effects.txt, line 1940 (132 lines). Parameters: $CHARACTER$.
coronation_move_towards_supporter_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 1940 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 17 places, among them A … … (event coronation_events_klank.1008), A Blessing from … (event coronation_events.1028) and A Coughing Crown (event ach_coronation.0022). 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_supporter_effect = {
$CHARACTER$ = {
if = {
limit = {
scope:activity = {
is_target_in_variable_list = {
name = major_detractor
target = $CHARACTER$
}
}
}
scope:activity = {
remove_list_variable = {
name = major_detractor
target = $CHARACTER$
}
}
}
if = {
limit = {
is_participant_in_activity = scope:activity
}
#Are you a detractor? Stop that
if = {
limit = {
is_in_guest_subset = {
name = detractor
}
}
if = {
limit = {
root = scope:host
}
custom_tooltip = buddy_leaves_detractors_tt
}
else = {
custom_tooltip = buddy_leaves_detractors_tt.guest
}
scope:activity = {
remove_from_guest_subset = {
name = detractor
target = $CHARACTER$
}
add_to_variable_list = {
name = blocked_from_detractors
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 = supporter
}
}
}
if = {
limit = {
root = scope:host
}
custom_tooltip = buddy_becomes_supporter_tt
}
else = {
custom_tooltip = buddy_becomes_supporter_tt.guest
}
scope:activity = {
add_to_guest_subset = {
name = supporter
target = $CHARACTER$
}
add_to_variable_list = {
name = locked_into_supporters
target = $CHARACTER$
}
if = {
limit = {
has_variable_list = blocked_from_supporters
}
remove_list_variable = {
name = blocked_from_supporters
target = $CHARACTER$
}
}
}
}
if = {
limit = {
NOT = {
scope:activity = {
any_in_list = {
variable = major_supporter
count = all
coronation_supporter_sort_value > $CHARACTER$.coronation_supporter_sort_value
}
}
}
}
scope:activity = {
ordered_in_list = {
variable = major_supporter
order_by = {
value = coronation_supporter_sort_value
multiply = -1
}
scope:activity = {
remove_list_variable = {
name = major_supporter
target = prevAs written in game/common/scripted_effects/10_ach_effects.txt.
The first 120 of its 132 lines; the rest is in game/common/scripted_effects/10_ach_effects.txt from line 1940.
Where it is used
Every place in common/, events/ and history/ that calls coronation_move_towards_supporter_effect.
Events (17)
- A … …
coronation_events_klank.1008 - A Blessing from …
coronation_events.1028 - A Coughing Crown
ach_coronation.0022 - A Gift Worthy of a …
ach_coronation.0016 - A Question of Precedence
coronation_events.1007 - A Raw Serving
coronation_events.1012
11 more
- A Whisper at the Feast
coronation_events.1004 - Fit for a …
prelude_events.0090 - Promising Buildings
prelude_events.0100 - Questions of Rite and Right
ach_coronation.0012 - Sacrifice to the Four Altars
coronation_events.1038 - Tales of Wars Lost
coronation_events_klank.1005 - The Anointment
coronation_events.6130 - The Crown-…
ach_coronation.0020 - The Forgotten Vow
coronation_events.1029 - The Kurultai
coronation_events.6121 - Where Is It?
coronation_events.1002
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.