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_wounded_or_dead_tooltip_effect

tournament_wounded_or_dead_tooltip_effect = { CONTEST = … }

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

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

The comment above it in the file

List correct wound status tooltip

What it does

  • If

    a check the game hides

    Then

    • death = { death_reason = death_contest_$CONTEST$_accident killer = scope:contest_winner }

    Else if

    a check the game hides

    Then

    • Depending on traits:
      • If they have Wounded:
        • add_trait_force_tooltip = wounded_1
      • If they have Severely Injured:
        • add_trait_force_tooltip = wounded_2
      • If they have Brutally Mauled:
        • add_trait_force_tooltip = wounded_3

• 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 (20 lines of game script)
tournament_wounded_or_dead_tooltip_effect = {
	show_as_tooltip = {
		if = {
			limit = { is_alive = no }
			death = {
				death_reason = death_contest_$CONTEST$_accident
				killer = scope:contest_winner
			}
		}
		else_if = {
			limit = { has_character_flag = agency_wound }
			switch = {
				trigger = has_trait
				wounded_1 = { add_trait_force_tooltip = wounded_1 }
				wounded_2 = { add_trait_force_tooltip = wounded_2 }
				wounded_3 = { add_trait_force_tooltip = wounded_3 }
			}
		}
	}
}

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

Events (1)

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?