Scripted effect
accolades_activity_complete_tour_glory_effect
accolades_activity_complete_tour_glory_effect = yesgame/common/scripted_effects/00_accolades_scripted_effects.txt, line 348 (130 lines). No parameters.
accolades_activity_complete_tour_glory_effect is a scripted effect in Crusader Kings III, written at line 348 of its file. It takes no parameters: accolades_activity_complete_tour_glory_effect = yes. The game's script calls it in 1 place, among them disburse_tour_activity_rewards (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_accolades_scripted_effects.txt.
The comment above it in the file
GLORY GAIN FOR TOURS used in disburse_tour_activity_rewards on scope:host
What it does
If
- scope:activity › Any attending character:
is_acclaimed = yes
Then
scope:activity:- Activity log entry › scope:host › Every acclaimed knight:
- Where:
involved_activity = scope:activity
accolade = { … }
- Where:
- Every attending character:
- Where:
is_acclaimed = yesNOT = { is_knight_of = scope:host }
- scope:activity › Activity log entry › scope:acclaimed_knight:
accolade = { … }
clear_saved_scope = acclaimed_knight
- Where:
- Activity log entry › scope:host › Every acclaimed knight:
- scope:activity › Any attending character:
• 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_activity_complete_tour_glory_effect = {
if = {
limit = {
scope:activity = {
any_attending_character = {
is_acclaimed = yes
}
}
}
save_scope_as = accolade_owner
scope:activity = {
add_activity_log_entry = {
key = liege_accolades_glory_reward_tour
tags = { completed }
score = 10
show_in_conclusion = no
character = scope:accolade_owner
scope:host = {
every_acclaimed_knight = {
limit = {
involved_activity = scope:activity
}
accolade = {
add_glory = {
value = minimal_glory_gain
if = {
limit = {
acclaimed_knight = {
is_knight_of = scope:host
}
}
add = major_glory_gain
}
if = {
limit = {
scope:activity = {
variable_list_size = {
name = tour_vassals_to_visit
value >= activity_tour_high_stop_value
}
}
}
add = major_glory_gain
}
else_if = {
limit = {
scope:activity = {
variable_list_size = {
name = tour_vassals_to_visit
value >= activity_tour_low_stop_value
}
}
}
add = medium_glory_value
}
if = {
limit = {
has_accolade_type = reeve_attribute
}
add = sub_minimal_glory_gain
}
}
}
}
}
}
every_attending_character = {
limit = {
is_acclaimed = yes
this != scope:host
NOT = {
is_knight_of = scope:host
}
}
save_scope_as = acclaimed_knight
scope:activity = {
add_activity_log_entry = {
key = knight_accolade_glory_reward
tags = { completed }
score = 10
show_in_conclusion = no
character = scope:acclaimed_knight
scope:acclaimed_knight = {
accolade = {
add_glory = {
value = minimal_glory_gain
if = {
limit = {
accolade_owner.involved_activity ?= scope:activity
}
add = medium_glory_gain
}
if = {
limit = {
scope:activity = {
variable_list_size = {
name = tour_vassals_to_visit
value >= activity_tour_high_stop_value
}
}
}
add = major_glory_gain
}
else_if = {
limit = {
scope:activity = {
variable_list_size = {
name = tour_vassals_to_visit
value >= activity_tour_low_stop_value
}
}
}
add = medium_glory_value
}
if = {
limit = {
has_accolade_type = reeve_attribute
}
add = sub_minimal_glory_gain
}As written in game/common/scripted_effects/00_accolades_scripted_effects.txt.
The first 120 of its 130 lines; the rest is in game/common/scripted_effects/00_accolades_scripted_effects.txt from line 348.
Where it is used
Every place in common/, events/ and history/ that calls accolades_activity_complete_tour_glory_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.