Scripted effect · By God Alone files
ecumenical_council_sway_to_innovators_effect
ecumenical_council_sway_to_innovators_effect = { CUSTOM = … LIST = … MAX = … }game/common/scripted_effects/pam_ecumenical_council_effects.txt, line 871 (51 lines). Parameters: $CUSTOM$, $LIST$, $MAX$.
ecumenical_council_sway_to_innovators_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 871 of its file. A call passes 3 parameters: CUSTOM, LIST and MAX. The game's script calls it in 23 places, among them … Sensibilities (event ecumenical_council_events.0105), Among Friends (event ecumenical_council_events.0108) and Among Rivals (event ecumenical_council_events.0126). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_ecumenical_council_effects.txt.
The comment above it in the file
LIST = attendees to sway, and CUSTOM = the loc key for the group line that has the count
What it does
scope:activity:- If any in list › Activity log entry › One in list, picked in order:
ecumenical_council_sway_stance_tt_effect = { SIDE = support }
- Otherwise: No one here would be swayed by this argument
- If any in list › Activity log entry › One in list, picked in order:
• 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 (51 lines of game script)
ecumenical_council_sway_to_innovators_effect = {
scope:activity = {
# Skip the entry when nobody is left to sway
if = {
limit = { any_in_list = { list = $LIST$ } }
# Other players see the sway when it happens, not only in the log
hidden_effect = {
every_attending_character = {
limit = {
is_ai = no
this != scope:actor
}
send_interface_toast = {
type = event_toast_effect_neutral
title = ecumenical_council_guests_swayed_to_innovators_log_title
left_icon = scope:actor
show_as_tooltip = {
ordered_in_list = {
list = $LIST$
custom = $CUSTOM$
max = $MAX$
order_by = "opinion(scope:actor)"
ecumenical_council_sway_stance_tt_effect = { SIDE = support }
}
}
}
}
}
add_activity_log_entry = {
key = ecumenical_council_guests_swayed_to_innovators_log
score = 0
character = scope:actor
location = scope:actor.location
ordered_in_list = {
list = $LIST$
custom = $CUSTOM$
max = $MAX$
order_by = "opinion(scope:actor)"
ecumenical_council_sway_stance_tt_effect = { SIDE = support }
hidden_effect = {
save_temporary_scope_as = change
ecumenical_council_become_innovator_effect = { CHARACTER = scope:change }
}
}
}
}
else = {
custom_tooltip = ec_sway_nobody_tt
}
}
}As written in game/common/scripted_effects/pam_ecumenical_council_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls ecumenical_council_sway_to_innovators_effect.
Events (23)
- … Sensibilities
ecumenical_council_events.0105 - Among Friends
ecumenical_council_events.0108 - Among Rivals
ecumenical_council_events.0126 - Armed With Faith and Steel
ecumenical_council_events.0114 - Clerics of My Blood
ecumenical_council_events.0104 - Competing Prayers
ecumenical_council_events.0102
17 more
- Faith Under Arms
ecumenical_council_events.0113 - Fear in the Hall
ecumenical_council_events.0129 - Names in the Chronicle
ecumenical_council_events.0120 - Owed Fealty
ecumenical_council_events.0106 - Quiet Discontents
ecumenical_council_events.0109 - Should War Soon Come
ecumenical_council_events.0123 - Sickness in the Realm
ecumenical_council_events.0112 - The Grumbling Gray Hairs
ecumenical_council_events.0111 - The Learned Speak
ecumenical_council_events.0101 - The Price of Change
ecumenical_council_events.0103 - Their First Council
ecumenical_council_events.0107 - Too Many Amendments
ecumenical_council_events.0117 - Traditions of a Distant See
ecumenical_council_events.0118 - Vaulting Ambition
ecumenical_council_events.0110 - While I Still Can
ecumenical_council_events.0122 - Whispers and Leverage
ecumenical_council_events.0115 - Who Pays for This?
ecumenical_council_events.0116
Source: game/common/scripted_effects/pam_ecumenical_council_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.