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

Scripted effect · Tours and Tournaments files

tournament_contest_replace_qualifier_effect

tournament_contest_replace_qualifier_effect = { CONTEST = … NEW_CONTESTANT = … OLD_CONTESTANT = … }

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 6954 (46 lines). Parameters: $CONTEST$, $NEW_CONTESTANT$, $OLD_CONTESTANT$.

tournament_contest_replace_qualifier_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 6954 of its file. A call passes 3 parameters: CONTEST, NEW_CONTESTANT and OLD_CONTESTANT. The game's script calls it in 2 places, among them …: Contest Begins (event contest_events.0500) and …: Contest Begins (event contest_events.0700). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

The comment above it in the file

Replace qualified contestant for another

What it does

  • remove_from_guest_subset = { name = qualified target = scope:old_contestant phase = tournament_phase_$CONTEST$ }
  • add_to_guest_subset = { name = spectator target = scope:old_contestant phase = tournament_phase_$CONTEST$ }
  • add_to_guest_subset = { name = qualified target = scope:new_contestant phase = tournament_phase_$CONTEST$ }
  • scope:new_contestant:
  • scope:activity › Every attending character:
    • Where: Is played by a person
    • They replaces …

• 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 (46 lines of game script)
tournament_contest_replace_qualifier_effect = {
	$NEW_CONTESTANT$ = { save_scope_as = new_contestant }
	$OLD_CONTESTANT$ = { save_scope_as = old_contestant }
	remove_from_guest_subset = {
		name = qualified
		target = scope:old_contestant
		phase = tournament_phase_$CONTEST$
	}
	add_to_guest_subset = {
		name = spectator
		target = scope:old_contestant
		phase = tournament_phase_$CONTEST$
	}
	add_to_guest_subset = {
		name = qualified
		target = scope:new_contestant
		phase = tournament_phase_$CONTEST$
	}
	scope:old_contestant = {
		remove_variable = contest_aptitude
		remove_variable = progress_to_victory
		save_scope_as = disqualify_target
	}
	scope:new_contestant = {
		tournament_set_current_aptitude_variable_effect = yes
		set_variable = {
			name = progress_to_victory
			value = progress_to_victory_active_contestant_value
		}
	}
	scope:activity = {
		every_attending_character = {
			limit = { is_ai = no }
			send_interface_toast = {
				title = tournament_qualifier_replaced_toast
				left_icon = scope:old_contestant
				right_icon = scope:new_contestant
				custom_description = {
					text = tournament_contest_replaced_tt
					subject = scope:new_contestant # REPLACER
					object = scope:old_contestant # REPLACED
				}
			}
		}
	}
}

As written in game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls tournament_contest_replace_qualifier_effect.

Events (2)

Source: game/common/scripted_effects/04_dlc_ep2_tournament_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?