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_pivotal_duel_effect

tournament_pivotal_duel_effect = { DECREASE = … DUELIST = … INCREASE = … NO_CHANGE_CHANCE = … SKILL_1 = … SKILL_2 = … }

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 8229 (47 lines). Parameters: $DECREASE$, $DUELIST$, $INCREASE$, $NO_CHANGE_CHANCE$, $SKILL_1$, $SKILL_2$.

tournament_pivotal_duel_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 8229 of its file. A call passes 6 parameters: DECREASE, DUELIST, INCREASE, NO_CHANGE_CHANCE, SKILL_1 and SKILL_2. The game's script calls it in 12 places, among them …: Check (event contest_events.0863), …: Final Lap (event contest_events.0510) and …: Full Tilt (event contest_events.0860). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (47 lines of game script)
tournament_pivotal_duel_effect = {
	save_scope_value_as = {
		name = no_change_chance
		value = $NO_CHANGE_CHANCE$
	}
	save_scope_as = contestant
	remove_character_flag = success_pivotal_flag
	remove_character_flag = neutral_pivotal_flag
	remove_character_flag = failure_pivotal_flag
	$DUELIST$ = { save_scope_as = duelist } # used if a proxy's skills are tested, e.g. a jockey
	scope:duelist = {
		duel = {
			skills = { $SKILL_1$ $SKILL_2$ }
			value = decent_skill_rating
			10 = {
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					min = 5
				}
				tournament_horse_contest_trait_pivotal_modifier = yes
				tournament_foot_contest_trait_pivotal_modifier = yes
				tournament_wit_contest_trait_pivotal_modifier = yes
				tournament_bow_contest_trait_pivotal_modifier = yes
				scope:contestant = {
					activity_tournament_change_contestant_score_effect = { SCORE = increase_$INCREASE$ }
					add_character_flag = success_pivotal_flag
				}
			}
			10 = {
				trigger = { scope:no_change_chance = yes }
				scope:contestant = { add_character_flag = neutral_pivotal_flag }
			}
			10 = {
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = 5
				}
				scope:contestant = {
					activity_tournament_change_contestant_score_effect = { SCORE = decrease_$DECREASE$ }
					add_character_flag = failure_pivotal_flag
				}
			}
		}
	}
}

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

Events (12)

6 more

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?