Scripted effect · Tours and Tournaments files
traveler_progress_point_gain_effect
traveler_progress_point_gain_effect = { CHANGE = … RANDOM_CHANGE = … }game/common/scripted_effects/04_dlc_ep2_tour_effects.txt, line 118 (46 lines). Parameters: $CHANGE$, $RANDOM_CHANGE$.
traveler_progress_point_gain_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 118 of its file. A call passes 2 parameters: CHANGE and RANDOM_CHANGE. The game's script calls it in 1 place, among them on_travel_plan_movement (on action). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tour_effects.txt.
What it does
- If has the Trait: Traveler:
- Otherwise: … may adopt the Traveler Lifestyle Trait
• 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 (46 lines of game script)
traveler_progress_point_gain_effect = {
if = {
limit = {
is_alive = yes
NOT = { exists = var:travel_provinces_traversed }
}
set_variable = {
name = travel_provinces_traversed
value = $CHANGE$
}
}
else = {
change_variable = {
name = travel_provinces_traversed
add = $CHANGE$
}
}
save_scope_value_as = {
name = travel_base_increase
value = $CHANGE$
}
# Tooltips
if = {
limit = { has_trait = lifestyle_traveler }
if = {
limit = { scope:travel_base_increase <= 1 }
custom_tooltip = travel_progress_towards_trait_1_tt
}
else_if = {
limit = { scope:travel_base_increase = 2 }
custom_tooltip = travel_progress_towards_trait_2_tt
}
else = { custom_tooltip = travel_progress_towards_trait_3_tt }
}
else = { custom_tooltip = travel_progress_towards_trait_0_tt }
#Random chance of additional point to increase unpredictability
hidden_effect = {
random = {
chance = 50
change_variable = {
name = travel_provinces_traversed
add = $RANDOM_CHANGE$
}
}
}
}As written in game/common/scripted_effects/04_dlc_ep2_tour_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls traveler_progress_point_gain_effect.
On actions (the game's own hooks) (1)
- on_travel_plan_movement
Source: game/common/scripted_effects/04_dlc_ep2_tour_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.