Scripted effect · Tours and Tournaments files
tournament_versus_create_contestant_fallback_effect
tournament_versus_create_contestant_fallback_effect = yesgame/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 7491 (60 lines). No parameters.
tournament_versus_create_contestant_fallback_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 7491 of its file. It takes no parameters: tournament_versus_create_contestant_fallback_effect = yes. The game's script calls it in 1 place, among them tournament_contest_versus_pair_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.
What it does
scope:activity:grab_attending_culture_faith_barony_effect = yesIf
has_current_phase = tournament_phase_joust
Then
create_character = { … }scope:backup_contestant:add_to_activity = scope:activity
Else if
has_current_phase = tournament_phase_board_game
Then
create_character = { … }scope:backup_contestant:add_to_activity = scope:activity
Else if
has_current_phase = tournament_phase_wrestling
Then
create_character = { … }scope:backup_contestant:add_to_activity = scope:activity
Otherwise
create_character = { … }scope:backup_contestant:add_to_activity = scope:activity
• 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 (60 lines of game script)
tournament_versus_create_contestant_fallback_effect = {
scope:activity = {
grab_attending_culture_faith_barony_effect = yes
if = {
limit = { has_current_phase = tournament_phase_joust }
create_character = {
template = tournament_horse_character
location = scope:activity.activity_location
faith = scope:attending_faith
culture = scope:attending_culture
dynasty = none
save_scope_as = backup_contestant
}
scope:backup_contestant = {
add_to_activity = scope:activity
}
}
else_if = {
limit = { has_current_phase = tournament_phase_board_game }
create_character = {
template = tournament_board_game_character
location = scope:activity.activity_location
faith = scope:attending_faith
culture = scope:attending_culture
dynasty = none
save_scope_as = backup_contestant
}
scope:backup_contestant = {
add_to_activity = scope:activity
}
}
else_if = {
limit = { has_current_phase = tournament_phase_wrestling }
create_character = {
template = tournament_pugilism_character
location = scope:activity.activity_location
faith = scope:attending_faith
culture = scope:attending_culture
dynasty = none
save_scope_as = backup_contestant
}
scope:backup_contestant = {
add_to_activity = scope:activity
}
}
else = {
create_character = {
template = tournament_foot_character
location = scope:activity.activity_location
faith = scope:attending_faith
culture = scope:attending_culture
dynasty = none
save_scope_as = backup_contestant
}
scope:backup_contestant = {
add_to_activity = scope:activity
}
}
}
}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_versus_create_contestant_fallback_effect.
Scripted effects (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.