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

contest_versus_player_vs_ai_trigger

contest_versus_player_vs_ai_trigger = yes

game/common/scripted_triggers/04_ep2_tournament_triggers.txt, line 319 (16 lines). No parameters.

contest_versus_player_vs_ai_trigger is a scripted trigger in Crusader Kings III, in the Tours and Tournaments files, written at line 319 of its file. It takes no parameters: contest_versus_player_vs_ai_trigger = yes (or no). The game's script calls it in 43 places, among them … …: A Beefy Bout (event ep2_tournament_events.2004), … …: A Handy Option (event ep2_tournament_events.0011) and … …: A Hobbled Combatant (event ep2_tournament_events.0001). Patch 1.20.1.2, from game/common/scripted_triggers/04_ep2_tournament_triggers.txt.

What it checks

  • Exactly 1 of the following must be true:
    • scope:versus_matchee: Is played by a person
    • scope:versus_matcher: Is played by a person
  • Exactly 1 of the following must be true:
    • scope:versus_matchee: Is played by the AI
    • scope:versus_matcher: Is played by the AI

• 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 (16 lines of game script)
contest_versus_player_vs_ai_trigger = {
	calc_true_if = {
		amount = 1
		scope:versus_matchee = { is_ai = no }
		scope:versus_matcher = { is_ai = no }
	}
	calc_true_if = {
		amount = 1
		scope:versus_matchee = { is_ai = yes }
		scope:versus_matcher = { is_ai = yes }
	}
	NOR = {
		scope:versus_matchee = { has_character_flag = resigned_contest_flag }
		scope:versus_matcher = { has_character_flag = resigned_contest_flag }
	}
}

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

Events (43)

37 more

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?