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_versus_qualifier_death_effect

tournament_versus_qualifier_death_effect = yes

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 3105 (46 lines). No parameters.

tournament_versus_qualifier_death_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 3105 of its file. It takes no parameters: tournament_versus_qualifier_death_effect = yes. The game's script calls it in 1 place, among them on_death (on action). 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

Fallback for replacing dead versus contestant with a fresh one

What it does

  • If

    • Their activity:
      • has_activity_type = activity_tournament
      • One of these

        • has_current_phase = tournament_phase_duel
        • or

          has_current_phase = tournament_phase_wrestling
        • or

          has_current_phase = tournament_phase_board_game
        • or

          has_current_phase = tournament_phase_joust
      • Any guest subset current phase:
        • name = qualified

    Then

• 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_versus_qualifier_death_effect = {
	if = {
		limit = {
			involved_activity ?= {
				has_activity_type = activity_tournament
				OR = {
					has_current_phase = tournament_phase_duel
					has_current_phase = tournament_phase_wrestling
					has_current_phase = tournament_phase_board_game
					has_current_phase = tournament_phase_joust
				}
				any_guest_subset_current_phase = { name = qualified this = root }
			}
			NOT = { has_character_flag = died_in_contest_flag }
		}
		save_scope_as = dead_contestant
		var:next_versus_match = { save_scope_as = versus_match }
		involved_activity = {
			save_scope_as = activity
			if = {
				limit = {
					scope:versus_match = { is_in_guest_subset = { name = finalist } }
				}
				tournament_versus_dead_qualifier_effect = { SUBSET = winner }
			}
			else_if = {
				limit = {
					scope:versus_match = { is_in_guest_subset = { name = semi_finalist } }
				}
				tournament_versus_dead_qualifier_effect = { SUBSET = finalist }
			}
			else = {
				tournament_versus_dead_qualifier_effect = { SUBSET = semi_finalist }
			}
		}
		every_player = {
			limit = { is_participant_in_activity = scope:activity }
			send_interface_toast = {
				title = tournament_qualifier_dies_toast
				left_icon = scope:dead_contestant
				right_icon = scope:versus_match
				custom_tooltip = tournament_quailfier_dies_tt
			}
		}
	}
}

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_versus_qualifier_death_effect.

On actions (the game's own hooks) (1)

  • on_death

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?