CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

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

• 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)

17 more

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.

Spotted a mistake on this page?