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_pulse_effect

tournament_contest_versus_pulse_effect = { CONTEST = … }

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 1731 (49 lines). Parameters: $CONTEST$.

tournament_contest_versus_pulse_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 1731 of its file. A call passes 1 parameter: CONTEST. The game's script calls it in 2 places, among them tournament_contest_versus_composition_effect (scripted effect) and contest_events.0801 (event). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

The comment above it in the file

Pair opponents and fire summary event for current round

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 (49 lines of game script)
tournament_contest_versus_pulse_effect = {
	scope:activity = {
		if = {
			limit = {
				NOT = { exists = var:contest_versus_progress }
			}
			set_variable = {
				name = contest_versus_progress
				value = 0
			}
		}
		else = {
			# Progress tournament stage tracker
			change_variable = {
				name = contest_versus_progress
				add = 1
			}
		}
		# Resolve bouts for current stage (we use stage prior here to select from those who made it through)
		switch = {
			trigger = var:contest_versus_progress
			0 = {
				tournament_contest_versus_pair_effect = { CONTEST = $CONTEST$ STAGE = qualified }
			}
			1 = {
				tournament_contest_versus_pair_effect = { CONTEST = $CONTEST$ STAGE = semi_finalist }
			}
			2 = {
				tournament_contest_versus_pair_effect = { CONTEST = $CONTEST$ STAGE = finalist }
			}
		}
		# Save scopes for events
		tournament_contest_versus_summary_scope_effect = yes
		# Fire summary events
		every_attending_character = {
			limit = {
				OR = {
					is_in_guest_subset = { name = qualified }
					is_ai = no
				}
			}
			trigger_event = contest_events.0820
			trigger_event = {
				on_action = tournament_intent_setup_events
				days = 1
			}
		}
	}
}

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_pulse_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?