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_start_portrait_effect

tournament_contest_start_portrait_effect = yes

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 7283 (74 lines). No parameters.

tournament_contest_start_portrait_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 7283 of its file. It takes no parameters: tournament_contest_start_portrait_effect = yes. The game's script calls it in 4 places, among them …: Contest Begins (event contest_events.0500), …: Contest Begins (event contest_events.0600) and …: Contest Begins (event contest_events.0700). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

The comment above it in the file

Save relevant scopes for start of contest events

What it does

• 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 (74 lines of game script)
tournament_contest_start_portrait_effect = {
	if = {
		limit = {
			intent_target ?= { is_alive = yes }
		}
		intent_target = { save_scope_as = intent_scope }
	}
	tournament_contest_champion_scope_effect = yes
	if = {
		limit = { exists = scope:marriage_prize }
		scope:marriage_prize = { save_scope_as = portrait_scope }
	}
	else_if = {
		limit = {
			exists = scope:mysterious_stranger
			NAND = {
				exists = scope:versus_contestant
				scope:versus_contestant = scope:mysterious_stranger
			}
		}
		scope:mysterious_stranger = { save_scope_as = portrait_scope }	
	}
	else_if = {
		limit = { exists = scope:contest_champion }
		scope:contest_champion = { save_scope_as = portrait_scope }
	}
	scope:activity = {
		ordered_guest_subset_current_phase = {
			name = qualified
			limit = {
				NAND = { exists = scope:contest_summary_1 this = scope:contest_summary_1 }
				NAND = { exists = scope:contest_summary_2 this = scope:contest_summary_2 }
				NAND = { exists = scope:contest_summary_3 this = scope:contest_summary_3 }
				NAND = { exists = scope:contest_summary_4 this = scope:contest_summary_4 }
				NAND = { exists = scope:contest_summary_5 this = scope:contest_summary_5 }
				NAND = { exists = scope:contest_summary_6 this = scope:contest_summary_6 }
				NAND = { exists = scope:contest_summary_7 this = scope:contest_summary_7 }
			}
			max = 8
			check_range_bounds = no
			order_by = primary_title.tier
			if = {
				limit = { NOT = { exists = scope:contest_summary_1 } }
				save_scope_as = contest_summary_1
			}
			else_if = {
				limit = { NOT = { exists = scope:contest_summary_2 } }
				save_scope_as = contest_summary_2
			}
			else_if = {
				limit = { NOT = { exists = scope:contest_summary_3 } }
				save_scope_as = contest_summary_3
			}
			else_if = {
				limit = { NOT = { exists = scope:contest_summary_4 } }
				save_scope_as = contest_summary_4
			}
			else_if = {
				limit = { NOT = { exists = scope:contest_summary_5 } }
				save_scope_as = contest_summary_5
			}
			else_if = {
				limit = { NOT = { exists = scope:contest_summary_6 } }
				save_scope_as = contest_summary_6
			}
			else_if = {
				limit = { NOT = { exists = scope:contest_summary_7 } }
				save_scope_as = contest_summary_7
			}
			else = { save_scope_as = contest_summary_8 }
		}
	}
	tournament_contest_versus_match_scope_effect = { CHAR = root }
}

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

Events (4)

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?