Scripted effect
disburse_tournament_activity_rewards
disburse_tournament_activity_rewards = yesgame/common/scripted_effects/00_activity_effects.txt, line 5 (383 lines). No parameters.
disburse_tournament_activity_rewards is a scripted effect in Crusader Kings III, written at line 5 of its file. It takes no parameters: disburse_tournament_activity_rewards = yes. The game's script calls it in 2 places, among them …: Conclusion (event tournament_events.0150) and tournament_events.0151 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_activity_effects.txt.
The comment above it in the file
ACTIVITY REWARDS by Chad Uhl
What it does
If
- scope:activity: Num phases more than 5
Then
- Their dynasty: The dynasty gains … Renown
- Every participating Glory Hound Vassal (…):
- Where:
is_participant_in_activity = scope:activity
vassal_stance = glory_hound- Opinion: Liege Hosted Tournament (+25)
- Where:
- Every participating Belligerent Vassal (…):
- Where:
has_vassal_stance = belligerentis_participant_in_activity = scope:activity
- Opinion: Liege Hosted Tournament (+25)
- Where:
Else if
scope:activity:num_phases = 5
Then
- Their dynasty: The dynasty gains … Renown
- Every participating Glory Hound Vassal (…):
- Where:
is_participant_in_activity = scope:activity
vassal_stance = glory_hound- Opinion: Liege Hosted Tournament (+20)
- Where:
- Every participating Belligerent Vassal (…):
- Where:
has_vassal_stance = belligerentis_participant_in_activity = scope:activity
- Opinion: Liege Hosted Tournament (+20)
- Where:
Else if
scope:activity:num_phases = 4
Then
- Their dynasty: The dynasty gains … Renown
- Every participating Glory Hound Vassal (…):
- Where:
is_participant_in_activity = scope:activity
vassal_stance = glory_hound- Opinion: Liege Hosted Tournament (+15)
- Where:
- Every participating Belligerent Vassal (…):
- Where:
has_vassal_stance = belligerentis_participant_in_activity = scope:activity
- Opinion: Liege Hosted Tournament (+15)
- Where:
Else if
scope:activity:num_phases = 3
Then
- Every participating Glory Hound Vassal (…):
- Where:
is_participant_in_activity = scope:activity
vassal_stance = glory_hound- Opinion: Liege Hosted Tournament (+10)
- Where:
- Every participating Belligerent Vassal (…):
- Where:
has_vassal_stance = belligerentis_participant_in_activity = scope:activity
- Opinion: Liege Hosted Tournament (+10)
- Where:
Else if
scope:activity:num_phases = 2One of these
has_activity_option = { category = tournament_option_accommodations option = tournament_accommodations_good }or
has_activity_option = { category = tournament_option_accommodations option = tournament_accommodations_normal }
Then
- Every participating Glory Hound Vassal (…):
- Where:
is_participant_in_activity = scope:activity
vassal_stance = glory_hound- Opinion: Liege Hosted Tournament (+5)
- Where:
- Every participating Belligerent Vassal (…):
- Where:
has_vassal_stance = belligerentis_participant_in_activity = scope:activity
- Opinion: Liege Hosted Tournament (+5)
- Where:
accolades_development_growth_for_least_developed_county_effect = yesscope:activity:If
- scope:activity: Num phases more than 2
Then
- … (more in the script below)
- … (more in the script below)
- … (more in the script below)
• 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)
disburse_tournament_activity_rewards = {
# for the loc
save_scope_as = root_scope
# Rewards based on amount of Contests
if = {
limit = {
scope:activity = {
num_phases > 5
}
}
# Host Rewards
# Prestige Gain
if = {
limit = {
culture = { has_cultural_era_or_later = culture_era_high_medieval }
}
add_prestige = 1800
}
else = {
add_prestige = 1500
}
dynasty ?= { add_dynasty_prestige = massive_dynasty_prestige_value }
# Glory Hound Vassal Opinion
every_vassal_or_below = {
vassal_stance = glory_hound
limit = {
is_participant_in_activity = scope:activity
}
custom = every_participating_glory_hound_vassal
add_opinion = {
modifier = hosted_tournament_opinion
target = root
opinion = 25
}
}
# Belligerent Vassal Opinion
every_vassal_or_below = {
limit = {
has_vassal_stance = belligerent
is_participant_in_activity = scope:activity
}
custom = every_participating_belligerent_vassal
add_opinion = {
modifier = hosted_tournament_opinion
target = root
opinion = 25
}
}
}
else_if = {
limit = {
scope:activity = {
num_phases = 5
}
}
# Host Rewards
# Prestige Gain
if = {
limit = {
culture = { has_cultural_era_or_later = culture_era_high_medieval }
}
add_prestige = 1500
}
else = {
add_prestige = 1200
}
dynasty ?= { add_dynasty_prestige = major_dynasty_prestige_value }
# Glory Hound Vassal Opinion
every_vassal_or_below = {
vassal_stance = glory_hound
limit = {
is_participant_in_activity = scope:activity
}
custom = every_participating_glory_hound_vassal
add_opinion = {
modifier = hosted_tournament_opinion
target = root
opinion = 20
}
}
# Belligerent Vassal Opinion
every_vassal_or_below = {
limit = {
has_vassal_stance = belligerent
is_participant_in_activity = scope:activity
}
custom = every_participating_belligerent_vassal
add_opinion = {
modifier = hosted_tournament_opinion
target = root
opinion = 20
}
}
}
else_if = {
limit = {
scope:activity = {
num_phases = 4
}
}
dynasty = { add_dynasty_prestige = medium_dynasty_prestige_value }
# Host Rewards
# Prestige Gain
if = {
limit = {
culture = { has_cultural_era_or_later = culture_era_high_medieval }
}
add_prestige = 1200
}
else = {
add_prestige = 1000
}
# Glory Hound Vassal Opinion
every_vassal_or_below = {As written in game/common/scripted_effects/00_activity_effects.txt.
The first 120 of its 383 lines; the rest is in game/common/scripted_effects/00_activity_effects.txt from line 5.
Where it is used
Every place in common/, events/ and history/ that calls disburse_tournament_activity_rewards.
Events (2)
- …: Conclusion
tournament_events.0150 - tournament_events.0151
Source: game/common/scripted_effects/00_activity_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.