Scripted effect · Tours and Tournaments files
decrease_tour_success_effect
decrease_tour_success_effect = { POINTS = … }game/common/scripted_effects/04_dlc_ep2_tour_effects.txt, line 453 (41 lines). Parameters: $POINTS$.
decrease_tour_success_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 453 of its file. A call passes 1 parameter: POINTS. The game's script calls it in 8 places, among them …: the Villain of … (event host_dinner_events.1081), A Cake to Remember (event host_dinner_events.1022) and A Local Delicacy (event host_dinner_events.3003). Its body carries 3 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
scope:activity:has_activity_option = { category = special_type option = tour_type_majesty }
Then
- Your Grand Tour becomes less majestic
Else if
scope:activity:has_activity_option = { category = special_type option = tour_type_taxation }
Then
- Your Grand Tour becomes less avaricious
Else if
scope:activity:has_activity_option = { category = special_type option = tour_type_intimidation }
Then
- Your Grand Tour becomes less intimidating
• 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 (41 lines of game script)
decrease_tour_success_effect = {
if = {
limit = {
scope:activity = {
has_activity_option = {
category = special_type
option = tour_type_majesty
}
}
}
custom_tooltip = tour_becomes_less_majestic_tt
}
else_if = {
limit = {
scope:activity = {
has_activity_option = {
category = special_type
option = tour_type_taxation
}
}
}
custom_tooltip = tour_becomes_less_avaricious_tt
}
else_if = {
limit = {
scope:activity = {
has_activity_option = {
category = special_type
option = tour_type_intimidation
}
}
}
custom_tooltip = tour_becomes_less_intimidating_tt
}
scope:activity = {
change_variable = {
name = tour_success_var
subtract = $POINTS$
}
}
}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 decrease_tour_success_effect.
Events (8)
- …: the Villain of …
host_dinner_events.1081 - A Cake to Remember
host_dinner_events.1022 - A Local Delicacy
host_dinner_events.3003 - A Riding Incident
tour_grounds_events.3008 - An Unreliable Steed
tour_grounds_events.3010 - An Unwelcome Guest
host_dinner_events.1032
2 more
- Cultural Taxation
cultural_festival.2030 - On the Wrong Foot
cultural_festival.2001
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.