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

contest_team_save_enemy_member_effect

contest_team_save_enemy_member_effect = { SCOPE = … }

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 6857 (30 lines). Parameters: $SCOPE$.

contest_team_save_enemy_member_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 6857 of its file. A call passes 1 parameter: SCOPE. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

The comment above it in the file

Save a random contestant on the opposite team

What it does

  • scope:activity:
    • If

      • Any guest subset current phase:
        • name = team_alpha

      Then

      • One random guest subset current phase:
        • Where: Is played by the AI
        • name = team_beta

      Otherwise

      • One random guest subset current phase:
        • Where: Is played by the AI
        • name = team_beta

• 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 (30 lines of game script)
contest_team_save_enemy_member_effect = {
	scope:activity = {
		if = {
			limit = {
				any_guest_subset_current_phase = {
					name = team_alpha
					this = root
				}
			}
			random_guest_subset_current_phase = {
				name = team_beta
				limit = {
					is_alive = yes
					is_ai = yes
				}
				save_scope_as = $SCOPE$
			}
		}
		else = {
			random_guest_subset_current_phase = {
				name = team_beta
				limit = {
					is_alive = yes
					is_ai = yes
				}
				save_scope_as = $SCOPE$
			}
		}
	}
}

As written in game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

Where it is used

No file of common/, events/ or history/ calls it.

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?