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_battle_wound_effect

tournament_contest_versus_battle_wound_effect = { CONTEST = … DEATH_CHANCE = … WOUND_CHANCE = … }

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 2072 (51 lines). Parameters: $CONTEST$, $DEATH_CHANCE$, $WOUND_CHANCE$.

tournament_contest_versus_battle_wound_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 2072 of its file. A call passes 3 parameters: CONTEST, DEATH_CHANCE and WOUND_CHANCE. The game's script calls it in 1 place, among them tournament_contest_versus_battle_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

Determine versus wound/death outcomes

What it does

  • scope:contest_loser:
    • If a check the game hides passes: the same again (2 lines)
      • 50% chance of:
      • 50% chance of:
        • death = { death_reason = death_contest_$CONTEST$_accident killer = scope:contest_winner }

      Otherwise

      • …% chance of:
      • …% chance of:
        • death = { death_reason = death_contest_$CONTEST$_accident killer = scope:contest_winner }

• 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 (51 lines of game script)
tournament_contest_versus_battle_wound_effect = {
	scope:contest_loser = {
		if = {
			limit = { exists = var:murder_sabotage_target }
			random = {
				chance = 50
				modifier = {
					add = {
						value = var:murder_sabotage_target
						multiply = 15
					}
				}
				increase_wounds_effect = { REASON = contest_$CONTEST$_accident }
				save_scope_as = sabotage_murder_wound
			}
			random = {
				chance = 50
				modifier = {
					add = {
						value = var:murder_sabotage_target
						multiply = 15
					}
				}
				add_character_flag = died_in_contest_flag
				death = {
					death_reason = death_contest_$CONTEST$_accident
					killer = scope:contest_winner
				}
				save_scope_as = sabotage_murder_death
			}
			if = {
				limit = { is_alive = yes }
				remove_variable = murder_sabotage_target	
			}
		}
		else = {
			random = {
				chance = $WOUND_CHANCE$
				increase_wounds_effect = { REASON = contest_$CONTEST$_accident }
			}
			random = {
				chance = $DEATH_CHANCE$
				add_character_flag = died_in_contest_flag
				death = {
					death_reason = death_contest_$CONTEST$_accident
					killer = scope:contest_winner
				}
			}
		}
	}
}

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