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_add_contestant_or_spectator_effect

tournament_add_contestant_or_spectator_effect = yes

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 7577 (22 lines). No parameters.

tournament_add_contestant_or_spectator_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 7577 of its file. It takes no parameters: tournament_add_contestant_or_spectator_effect = yes. The game's script calls it in 1 place, among them Grand Tournament (activity). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

What it does

  • If

    • NOT = { is_in_guest_subset = { name = contestant } }
    • NOT = { is_in_guest_subset = { name = spectator } }

    Then

    • If

      Then

      • Their activity:
        • add_to_guest_subset = { name = contestant target = scope:new_arrival }

      Otherwise

      • Their activity:
        • add_to_guest_subset = { name = spectator target = scope:new_arrival }

• 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 (22 lines of game script)
tournament_add_contestant_or_spectator_effect = {
	save_scope_as = new_arrival
	if = {
		limit = {
			NOR = {
				is_in_guest_subset = { name = contestant }
				is_in_guest_subset = { name = spectator }
			}
		}
		if = {
			limit = { activity_is_valid_tournament_contestant = yes }
			involved_activity = {
				add_to_guest_subset = { name = contestant target = scope:new_arrival }
			}
		}
		else = {
			involved_activity = {
				add_to_guest_subset = { name = spectator target = scope:new_arrival }
			}
		}
	}
}

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