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_set_current_aptitude_variable_effect

tournament_set_current_aptitude_variable_effect = yes

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 7154 (40 lines). No parameters.

tournament_set_current_aptitude_variable_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 7154 of its file. It takes no parameters: tournament_set_current_aptitude_variable_effect = yes. The game's script calls it in 2 places, among them tournament_contest_replace_qualifier_effect (scripted effect) and tournament_contest_versus_replace_qualifier_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

Set aptitude variable based on the current contest type

What it does

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

The script as written (40 lines of game script)
tournament_set_current_aptitude_variable_effect = {
	set_variable = {
		name = contest_aptitude
		value = {
			value = 0
			if = {
				limit = { scope:activity = { has_current_phase = tournament_phase_joust } }
				add = contest_horse_aptitude_value
			}
			else_if = {
				limit = {
					scope:activity = {
						OR = {
							has_current_phase = tournament_phase_duel
							has_current_phase = tournament_phase_melee
						}
					}
				}
				add = contest_foot_aptitude_value
			}
			else_if = {
				limit = { scope:activity = { has_current_phase = tournament_phase_board_game } }
				add = contest_board_game_aptitude_value
			}
			else_if = {
				limit = { scope:activity = { has_current_phase = tournament_phase_recital } }
				add = contest_recital_aptitude_value
			}
			else_if = {
				limit = { scope:activity = { has_current_phase = tournament_phase_horse_race } }
				add = contest_horse_race_aptitude_value
			}
			else_if = {
				limit = { scope:activity = { has_current_phase = tournament_phase_archery } }
				add = contest_archery_aptitude_value
			}
			else = { add = contest_pugilism_aptitude_value }
		}
	}
}

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