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

Scripted trigger · Tours and Tournaments files

tournament_contest_versus_event_trigger

tournament_contest_versus_event_trigger = yes

game/common/scripted_triggers/04_ep2_tournament_triggers.txt, line 377 (54 lines). No parameters.

tournament_contest_versus_event_trigger is a scripted trigger in Crusader Kings III, in the Tours and Tournaments files, written at line 377 of its file. It takes no parameters: tournament_contest_versus_event_trigger = yes (or no). The game's script calls it in 8 places, among them contest_bout_board_game_pivotal_pulse (on action), contest_bout_board_game_random_pulse (on action) and contest_bout_duel_pivotal_pulse (on action). Patch 1.20.1.2, from game/common/scripted_triggers/04_ep2_tournament_triggers.txt.

What it checks

  • Is played by a person
  • is_in_guest_subset = { name = qualified }

• 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 (54 lines of game script)
tournament_contest_versus_event_trigger = {
	is_ai = no
	exists = var:progress_to_victory
	is_in_guest_subset = { name = qualified }
	NOT = { has_character_flag = resigned_contest_flag }
	save_temporary_scope_as = versus_event_scope
	# Only fire events if the bout has not been pre-decided
	involved_activity = {
		switch = {
			trigger = has_current_phase
			tournament_phase_joust = {
				scope:versus_event_scope = {
					switch = {
						trigger = involved_activity.var:contest_versus_progress
						0 = { exists = var:contest_qualified_match_joust.var:progress_to_victory }
						1 = { exists = var:contest_semi_finalist_match_joust.var:progress_to_victory }
						2 = { exists = var:contest_finalist_match_joust.var:progress_to_victory }
					}
				}
			}
			tournament_phase_duel = {
				scope:versus_event_scope = {
					switch = {
						trigger = involved_activity.var:contest_versus_progress
						0 = { exists = var:contest_qualified_match_duel.var:progress_to_victory }
						1 = { exists = var:contest_semi_finalist_match_duel.var:progress_to_victory }
						2 = { exists = var:contest_finalist_match_duel.var:progress_to_victory }
					}
				}
			}
			tournament_phase_wrestling = {
				scope:versus_event_scope = {
					switch = {
						trigger = involved_activity.var:contest_versus_progress
						0 = { exists = var:contest_qualified_match_wrestling.var:progress_to_victory }
						1 = { exists = var:contest_semi_finalist_match_wrestling.var:progress_to_victory }
						2 = { exists = var:contest_finalist_match_wrestling.var:progress_to_victory }
					}
				}
			}
			tournament_phase_board_game = {
				scope:versus_event_scope = {
					switch = {
						trigger = involved_activity.var:contest_versus_progress
						0 = { exists = var:contest_qualified_match_board_game.var:progress_to_victory }
						1 = { exists = var:contest_semi_finalist_match_board_game.var:progress_to_victory }
						2 = { exists = var:contest_finalist_match_board_game.var:progress_to_victory }
					}
				}
			}
		}
	}
	
}

As written in game/common/scripted_triggers/04_ep2_tournament_triggers.txt.

Where it is used

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

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

  • contest_bout_board_game_pivotal_pulse
  • contest_bout_board_game_random_pulse
  • contest_bout_duel_pivotal_pulse
  • contest_bout_duel_random_pulse
  • contest_bout_joust_pivotal_pulse
  • contest_bout_joust_random_pulse
2 more
  • contest_bout_wrestling_pivotal_pulse
  • contest_bout_wrestling_random_pulse

Source: game/common/scripted_triggers/04_ep2_tournament_triggers.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?