Scripted effect · Tours and Tournaments files
tournament_mysterious_stranger_effect
tournament_mysterious_stranger_effect = { CONTEST = … SKILL = … }game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 3249 (39 lines). Parameters: $CONTEST$, $SKILL$.
tournament_mysterious_stranger_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 3249 of its file. A call passes 2 parameters: CONTEST and SKILL. The game's script calls it in 2 places, among them tournament_contest_turn_composition_effect (scripted effect) and tournament_contest_versus_composition_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.
The comment above it in the file
Create a mysterious stranger contestant
What it does
grab_attending_culture_faith_barony_effect = yescreate_character = { … }scope:mysterious_stranger:add_to_activity = scope:activity
- Activity log entry › scope:mysterious_stranger:
add_to_activity = scope:activity
add_to_guest_subset = { name = qualified target = scope:mysterious_stranger phase = tournament_phase_$CONTEST$ }
• 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 (39 lines of game script)
tournament_mysterious_stranger_effect = {
grab_attending_culture_faith_barony_effect = yes
create_character = {
template = tournament_$SKILL$_character
location = scope:activity.activity_location
faith = scope:attending_faith
culture = scope:attending_culture
dynasty = none
save_scope_as = mysterious_stranger
}
scope:mysterious_stranger = {
set_variable = {
name = mysterious_stranger_origin
value = scope:attending_barony
}
set_variable = {
name = contest_aptitude
value = contest_$SKILL$_aptitude_value
}
add_to_activity = scope:activity
}
add_activity_log_entry = {
key = contest_mysterious_stranger_log
tags = { contestant }
score = 25
character = scope:mysterious_stranger
# Effect
show_as_tooltip = {
scope:mysterious_stranger = { add_to_activity = scope:activity }
}
}
add_to_guest_subset = {
name = qualified
target = scope:mysterious_stranger
phase = tournament_phase_$CONTEST$
}
set_variable = mysterious_stranger_appeared
}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_mysterious_stranger_effect.
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.