Scripted trigger · Tours and Tournaments files
activity_is_valid_tournament_contestant
activity_is_valid_tournament_contestant = yesgame/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 = yesNOT = { 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
can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = involved_activity.activity_host }- Does not have the Trait: Severely Injured
- Does not have the Trait: Brutally Mauled
- Their activity:
- Does not have the Trait: Incapable
• 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)
- …: Murder Rival
tournament_events.6010 - …: Opening
tournament_events.0100 - …: Restoring Honor
tournament_events.1150 - …: The Things We Do For Love
tournament_events.6500 - …: Withdrawal
tournament_events.0800 - A … Pride
tournament_events.1140
14 more
- Bad Air
ep2_locale_events.3010 - Keeping the Peace
tournament_events.1260 - Tavern: A Betting …?
ep2_locale_events.1050 - Temple: … Favors
ep2_locale_events.1500 - Temple: Sacrilegious Spree
ep2_locale_events.1510 - Tent Camp: Stealing a Moment
ep2_locale_events.3001 - Tent Camp: Wanton Warriors
ep2_locale_events.3002 - tournament_events.1110
- …: Contest Begins
contest_events.0500 - …: Contest Begins
contest_events.0600 - …: Contest Begins
contest_events.0700 - …: Contest Begins
contest_events.0800 - contest_events.1130
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
debug.9595
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
Scripted effects (4)
Scripted triggers (2)
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.