CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger · Tours and Tournaments files

activity_is_valid_tournament_contestant

activity_is_valid_tournament_contestant = yes

game/common/scripted_triggers/04_ep2_tournament_triggers.txt, line 27 (62 lines). No parameters.

activity_is_valid_tournament_contestant is a scripted trigger in Crusader Kings III, in the Tours and Tournaments files, written at line 27 of its file. It takes no parameters: activity_is_valid_tournament_contestant = yes (or no). The game's script calls it in 37 places, among them tournament_acclaimed_participant (activity pulse), tournament_entry_fee (activity pulse) and tournament_guest_ptv_small (activity pulse). Patch 1.20.1.2, from game/common/scripted_triggers/04_ep2_tournament_triggers.txt.

What it checks

  • Their activity:
    • has_activity_type = activity_tournament
  • Is an Adult
  • Is not imprisoned
  • clergy_can_fight_check_trigger = yes
  • NOT = { is_in_guest_subset = { name = spectator } }
  • If

    • Their activity:
      • NOT = { has_current_phase = tournament_phase_horse_race }
      • NOT = { has_current_phase = tournament_phase_board_game }
      • NOT = { has_current_phase = tournament_phase_recital }

    Then

  • If

    • Their activity:
      • has_current_phase = tournament_phase_wrestling

    Then

  • Does not have the Trait: Incapable
  • If

    • None of these

      • Their activity:
        • has_current_phase = tournament_phase_horse_race

    Then

  • If

    • None of these

      • Their activity:
        • has_current_phase = tournament_phase_archery

    Then

• 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 (62 lines of game script)
activity_is_valid_tournament_contestant = {
	involved_activity ?= { has_activity_type = activity_tournament }
	is_alive = yes
	is_adult = yes
	is_imprisoned = no
	# Exclude clergy who don't fight
	clergy_can_fight_check_trigger = yes
	# Has not opted out
	NOR = {
		has_character_flag = tournament_not_competing
		is_in_guest_subset = { name = spectator }
	}
	trigger_if = {
		limit = {
			involved_activity = {
				NOR = {
					has_current_phase = tournament_phase_horse_race
					has_current_phase = tournament_phase_board_game
					has_current_phase = tournament_phase_recital
				}
			}
		}
		# Only martial sex competes
		can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = involved_activity.activity_host }
		NOR = {
			has_trait = wounded_2
			has_trait = wounded_3
		}
	}
	# Mulan is clever enough not to reveal themselves
	trigger_if = {
		limit = {
			involved_activity = { has_current_phase = tournament_phase_wrestling }
		}
		NOT = { has_character_modifier = ignores_gender_army_rules }
	}
	NOT = {
		has_trait = incapable
	}
	trigger_if = {
		limit = {
			NOT = {
				involved_activity = { has_current_phase = tournament_phase_horse_race }
			}
		}
		NOR = {
			has_trait = blind
			has_trait = infirm
		}
	}
	trigger_if = { # Blind and maimed people don't do archery
	    limit = {
	        NOT = {
	            involved_activity = { has_current_phase = tournament_phase_archery }
	        }
	    }
	    NOR = {
	        has_trait = blind
	        has_trait = maimed
	    }
	} 
}

As written in game/common/scripted_triggers/04_ep2_tournament_triggers.txt.

Where it is used

Every place in common/, events/ and history/ that calls activity_is_valid_tournament_contestant.

Activity pulse actions (4)

  • tournament_acclaimed_participant
  • tournament_entry_fee
  • tournament_guest_ptv_small
  • tournament_win_memory

Events (20)

14 more

Scripted effects inside an event file (1)

  • ep2_locale_events_3011_warning_effect

Scripted triggers inside an event file (4)

  • ep2_locale_events_5020_valid_lover
  • tournament_events_1250_favor_trigger
  • tournament_pas_darmes_instigator_trigger
  • tournament_prayer_target_trigger

Script values (2)

  • contest_contestants_count_value
  • contest_guests_count_value

Source: game/common/scripted_triggers/04_ep2_tournament_triggers.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?