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_end_portrait_effect

tournament_contest_end_portrait_effect = yes

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 7359 (41 lines). No parameters.

tournament_contest_end_portrait_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 7359 of its file. It takes no parameters: tournament_contest_end_portrait_effect = yes. The game's script calls it in 4 places, among them Archery: Contest Winner (event contest_events.0705), Board Game: Contest Winner (event contest_events.0805) and Horse Race: Contest Winner (event contest_events.0505). 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 end of contest events

What it does

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

The script as written (41 lines of game script)
tournament_contest_end_portrait_effect = {
	tournament_contest_champion_scope_effect = yes
	if = {
		limit = {
			OR = {
				scope:contest_winner ?= this
				involved_activity = {
					any_guest_subset_current_phase = { name = winner this = root }
				}
			}
			exists = scope:contest_loser
		}
		scope:contest_loser = { save_scope_as = contest_portrait }
	}
	else_if = {
		limit = {
			OR = {
				scope:contest_winner ?= this
				involved_activity = {
					any_guest_subset_current_phase = { name = winner this = root }
				}
			}
			exists = scope:second_place
		}
		scope:second_place = { save_scope_as = contest_portrait }
	}
	else_if = {
		limit = {
			OR = {
				scope:contest_loser ?= this
				NOT = {
					involved_activity = {
						any_guest_subset_current_phase = { name = winner this = root }
					}
				}
			}
			exists = scope:contest_winner
		}
		scope:contest_winner = { save_scope_as = contest_portrait }
	}
}

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