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

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 = prev

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

11 more

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.

Spotted a mistake on this page?