Scripted effect
accolades_contender_tournament_xp_gain_effect
accolades_contender_tournament_xp_gain_effect = yesgame/common/scripted_effects/00_accolades_scripted_effects.txt, line 49 (136 lines). No parameters.
accolades_contender_tournament_xp_gain_effect is a scripted effect in Crusader Kings III, written at line 49 of its file. It takes no parameters: accolades_contender_tournament_xp_gain_effect = yes. The game's script calls it in 1 place, among them disburse_tournament_activity_rewards (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_accolades_scripted_effects.txt.
What it does
- … gains additional Hastiluder Experience
• 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 (120 lines of game script)
accolades_contender_tournament_xp_gain_effect = {
custom_tooltip = accolade_tournament_xp_gain_contender_only.tt
hidden_effect = {
if = {
limit = {
NOT = { has_trait = tourney_participant }
}
add_trait = tourney_participant
}
}
# Low level bonus
if = {
limit = {
accolade = {
has_accolade_parameter = accolade_tournament_xp_gain_contender_only_low
}
}
hidden_effect = {
random_list = {
10 = {
show_chance = no
add_trait_xp = {
trait = tourney_participant
track = foot
value = accolade_contender_trait_xp_low_value
}
}
10 = {
show_chance = no
add_trait_xp = {
trait = tourney_participant
track = horse
value = accolade_contender_trait_xp_low_value
}
}
10 = {
show_chance = no
add_trait_xp = {
trait = tourney_participant
track = bow
value = accolade_contender_trait_xp_low_value
}
}
10 = {
show_chance = no
add_trait_xp = {
trait = tourney_participant
track = wit
value = accolade_contender_trait_xp_low_value
}
}
}
}
}
# Mid level bonus
else_if = {
limit = {
accolade = {
has_accolade_parameter = accolade_tournament_xp_gain_contender_only
}
}
hidden_effect = {
random_list = {
10 = {
add_trait_xp = {
trait = tourney_participant
track = foot
value = accolade_contender_trait_xp_medium_value
}
}
10 = {
add_trait_xp = {
trait = tourney_participant
track = horse
value = accolade_contender_trait_xp_medium_value
}
}
10 = {
add_trait_xp = {
trait = tourney_participant
track = bow
value = accolade_contender_trait_xp_medium_value
}
}
10 = {
add_trait_xp = {
trait = tourney_participant
track = wit
value = accolade_contender_trait_xp_medium_value
}
}
}
}
}
# High level bonus
else_if = {
limit = {
accolade = {
has_accolade_parameter = accolade_tournament_xp_gain_contender_only_high
}
}
hidden_effect = {
random_list = {
10 = {
add_trait_xp = {
trait = tourney_participant
track = foot
value = accolade_contender_trait_xp_high_value
}
}
10 = {
add_trait_xp = {
trait = tourney_participant
track = horse
value = accolade_contender_trait_xp_high_value
}
}
10 = {
add_trait_xp = {As written in game/common/scripted_effects/00_accolades_scripted_effects.txt.
The first 120 of its 136 lines; the rest is in game/common/scripted_effects/00_accolades_scripted_effects.txt from line 49.
Where it is used
Every place in common/, events/ and history/ that calls accolades_contender_tournament_xp_gain_effect.
Scripted effects (1)
Source: game/common/scripted_effects/00_accolades_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.