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

set_passive_contest_aptitude_and_progress_effect

set_passive_contest_aptitude_and_progress_effect = yes

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 6502 (83 lines). No parameters.

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

Update PtV and aptitude, used on passive pulse to keep values up to date before contest begins

What it does

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

The script as written (83 lines of game script)
set_passive_contest_aptitude_and_progress_effect = {
	if = {
		limit = {
			OR = {
				AND = {
					activity_is_valid_tournament_contestant = yes
					activity_tournament_race_contest_trigger = no
				}
				AND = {
					is_playable_character = yes
					activity_tournament_race_contest_trigger = yes
				}
			}
		}
		if = { # Foot
			limit = {	
				scope:activity = {
					OR = {
						has_current_phase = tournament_phase_melee
						has_current_phase = tournament_phase_duel
					}
				}
			}
			set_variable = { name = contest_aptitude value = contest_foot_aptitude_value }
		}
		else_if = { # Horse
			limit = {
				scope:activity = { has_current_phase = tournament_phase_joust }
			}
			set_variable = { name = contest_aptitude value = contest_horse_aptitude_value }
		}
		else_if = { # Pugilism
			limit = {
				scope:activity = { has_current_phase = tournament_phase_wrestling }
			}
			set_variable = { name = contest_aptitude value = contest_pugilism_aptitude_value }
		}
		else_if = { # Archery
			limit = {
				scope:activity = { has_current_phase = tournament_phase_archery }
			}
			set_variable = { name = contest_aptitude value = contest_archery_aptitude_value }
		}
		else_if = { # Recital
			limit = {
				scope:activity = { has_current_phase = tournament_phase_recital }
			}
			set_variable = { name = contest_aptitude value = contest_recital_aptitude_value }
		}
		else_if = { # Board Game
			limit = {
				scope:activity = { has_current_phase = tournament_phase_board_game }
			}
			set_variable = { name = contest_aptitude value = contest_board_game_aptitude_value }
		}
		else_if = { # Horse Race
			limit = {
				scope:activity = { has_current_phase = tournament_phase_horse_race }
			}
			set_variable = { name = contest_aptitude value = contest_horse_race_aptitude_value }
		}
		
		#Have you taken the Prowess Training decision?
		if = {
			limit = {
				has_character_modifier = tournament_training_decision_modifier
				activity_tournament_prowess_contest_trigger = yes			
			}
			set_variable = {
				name = progress_to_victory
				value = {
					value = progress_to_victory_passive_contestant_value
					add = 20
				}
			}
		}
		set_variable = {
			name = progress_to_victory
			value = progress_to_victory_passive_contestant_value
		}
	}
	else = { remove_variable = progress_to_victory }
}

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

Activities (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?