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_versus_summary_scope_effect

tournament_contest_versus_summary_scope_effect = yes

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 2965 (52 lines). No parameters.

tournament_contest_versus_summary_scope_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 2965 of its file. It takes no parameters: tournament_contest_versus_summary_scope_effect = yes. The game's script calls it in 2 places, among them tournament_contest_versus_composition_effect (scripted effect) and tournament_contest_versus_pulse_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

The comment above it in the file

Save scopes for round summary events

What it does

  • If

    a check the game hides

    Then

    • Depending on contest versus progress:
      • When contest versus progress is 1 › One guest subset current phase, picked in order:
        • Where:
          • NOT = { scope:contest_summary_1 ?= this }
          • NOT = { scope:contest_summary_2 ?= this }
          • NOT = { scope:contest_summary_3 ?= this }
        • name = semi_finalist
      • When contest versus progress is 2 › One guest subset current phase, picked in order:
        • Where:
          • NOT = { scope:contest_summary_1 ?= this }
        • name = finalist

• 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 (52 lines of game script)
tournament_contest_versus_summary_scope_effect = {
	if = {
		limit = { exists = var:contest_versus_progress }
		switch = {
			trigger = var:contest_versus_progress
			1 = { # Semi finalists
				ordered_guest_subset_current_phase = {
					name = semi_finalist
					limit = {
						NOR = {
							scope:contest_summary_1 ?= this
							scope:contest_summary_2 ?= this
							scope:contest_summary_3 ?= this
						}
					}
					max = 4
					check_range_bounds = no
					order_by = primary_title.tier
					if = {
						limit = { NOT = { exists = scope:contest_summary_1 } }
						save_scope_as = contest_summary_1
					}
					else_if = {
						limit = { NOT = { exists = scope:contest_summary_2 } }
						save_scope_as = contest_summary_2
					}
					else_if = {
						limit = { NOT = { exists = scope:contest_summary_3 } }
						save_scope_as = contest_summary_3
					}
					else = { save_scope_as = contest_summary_4 }
				}
			}
			2 = { # Finalist
				ordered_guest_subset_current_phase = {
					name = finalist
					limit = {
						NOT = { scope:contest_summary_1 ?= this }
					}
					max = 2
					check_range_bounds = no
					order_by = primary_title.tier
					if = {
						limit = { NOT = { exists = scope:contest_summary_1 } }
						save_scope_as = contest_summary_1
					}
					else = { save_scope_as = contest_summary_2 }
				}	
			}
		}
	}
}

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

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?