Scripted effect · Roads to Power files
disburse_chariot_race_activity_host_rewards
disburse_chariot_race_activity_host_rewards = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 5399 (230 lines). No parameters.
disburse_chariot_race_activity_host_rewards is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 5399 of its file. It takes no parameters: disburse_chariot_race_activity_host_rewards = yes. The game's script calls it in 2 places, among them Chariot Race (activity) and The End of the Games (event chariot_race.0500). Its body carries 6 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
What it does
- scope:activity › Activity log entry › You:
- Influence +60
- If has “wager type” (a variable the game's script sets) › Depending on wager type:
- When wager type is win: Influence +60
- When wager type is place: Influence +30
- When wager type is show: Influence +10
- If employs a Champion Charioteer:
If
- Any court position holder:
scope:activity.var:first_place ?= this
Then
- Influence +250
Else if
- Any court position holder:
scope:activity.var:second_place ?= this
Then
- Influence +150
Else if
- Any court position holder:
scope:activity.var:third_place ?= this
Then
- Influence +100
- Any court position holder:
If
scope:activity:has_activity_option = { category = chariot_option_entertainment option = chariot_entertainment_bad }
Then
If
- scope:host.capital_county: Popular Opinion more than 0
Then
- Gains 20 Legitimacy
If
has_activity_intent = reduce_stress_intent
Then
- Stress and fulfillment impact: -40, and by trait: Athletic -5, Gregarious -5
- Rewards improved by high Popular Opinion in Capital
Else if
- scope:host.capital_county: Popular Opinion at most -50
Then
- Gains 5 Legitimacy
If
has_activity_intent = reduce_stress_intent
Then
- Stress and fulfillment impact: -20, and by trait: Athletic -5, Gregarious -5
- Rewards harmed by low Popular Opinion in Capital
Otherwise
- Gains 10 Legitimacy
Else if
scope:activity:has_activity_option = { category = chariot_option_entertainment option = chariot_entertainment_normal }
Then
If
- scope:host.capital_county: Popular Opinion more than 0
Then
- Gains 50 Legitimacy
If
has_activity_intent = reduce_stress_intent
Then
- Stress and fulfillment impact: -60, and by trait: Athletic -5, Gregarious -5
- Your capital county:
change_county_control = miniscule_county_control_gain
- Rewards improved by high Popular Opinion in Capital
Else if
- scope:host.capital_county: Popular Opinion at most -50
Then
- Gains 10 Legitimacy
If
has_activity_intent = reduce_stress_intent
Then
- Stress and fulfillment impact: -40, and by trait: Athletic -5, Gregarious -5
- Rewards harmed by low Popular Opinion in Capital
Otherwise
- Gains 20 Legitimacy
scope:host.capital_county:- The county gains the modifier “Appeasement Efforts” for 10 years
Else if
scope:activity:has_activity_option = { category = chariot_option_entertainment option = chariot_entertainment_good }
Then
If
- scope:host.capital_county: Popular Opinion more than 0
Then
- Gains 100 Legitimacy
If
has_activity_intent = reduce_stress_intent
Then
- Stress and fulfillment impact: -100, and by trait: Athletic -5, Gregarious -5
- Your capital county:
change_county_control = minor_county_control_gain
- Rewards improved by high Popular Opinion in Capital
Else if
- scope:host.capital_county: Popular Opinion at most -50
Then
- Gains 20 Legitimacy
If
has_activity_intent = reduce_stress_intent
Then
- Stress and fulfillment impact: -5, and by trait: Athletic -60, Gregarious -5
- Rewards harmed by low Popular Opinion in Capital
Otherwise
- Gains 50 Legitimacy
scope:host.capital_county:- The county gains the modifier “Lavish Generosity” for 10 years
- Popular Opinion +10
- The county gains the modifier “Lavish Generosity” for 10 years
pam_vows_of_poverty_host_completion_piety_effect = yes
• 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_chariot_race_activity_host_rewards = {
scope:activity = {
add_activity_log_entry = {
key = chariot_race_host_rewards
score = 100
show_in_conclusion = yes
character = root
location = root.location
root = {
# Some base influence
change_influence = medium_influence_gain
# Extra influence rewards for having a successful wager
if = {
limit = {
has_character_flag = successful_bet
has_variable = wager_type
}
switch = {
trigger = var:wager_type
flag:win = {
change_influence = medium_influence_gain
}
flag:place = {
change_influence = minor_influence_gain
}
flag:show = {
change_influence = miniscule_influence_gain
}
}
}
# Rewards for employing a charioteer who wins/places/shows
if = {
limit = { employs_court_position = charioteer_court_position }
if = {
limit = {
any_court_position_holder = {
type = charioteer_court_position
scope:activity.var:first_place ?= this
}
}
change_influence = monumental_influence_gain
}
else_if = {
limit = {
any_court_position_holder = {
type = charioteer_court_position
scope:activity.var:second_place ?= this
}
}
change_influence = massive_influence_gain
}
else_if = {
limit = {
any_court_position_holder = {
type = charioteer_court_position
scope:activity.var:third_place ?= this
}
}
change_influence = major_influence_gain
}
}
#Legitimacy and popular opinion for how fancy your chariot races were
if = {
limit = {
scope:activity = {
has_activity_option = {
category = chariot_option_entertainment
option = chariot_entertainment_bad
}
}
}
if = {
limit = {
scope:host.capital_county = {
county_opinion > 0
}
}
add_legitimacy = miniscule_legitimacy_gain
if = {
limit = { has_activity_intent = reduce_stress_intent }
stress_and_fulfillment_impact = {
base = major_stress_loss
athletic = miniscule_stress_loss
gregarious = miniscule_stress_loss
}
}
custom_tooltip = chariot_race_reward_high_county_opinion_tt
}
else_if = {
limit = {
scope:host.capital_county = {
county_opinion <= -50
}
}
add_legitimacy = 5
if = {
limit = { has_activity_intent = reduce_stress_intent }
stress_and_fulfillment_impact = {
base = medium_stress_loss
athletic = miniscule_stress_loss
gregarious = miniscule_stress_loss
}
}
custom_tooltip = chariot_race_reward_low_county_opinion_tt
}
else = {
add_legitimacy = 10
}
}
else_if = {
limit = {
scope:activity = {
has_activity_option = {
category = chariot_option_entertainment
option = chariot_entertainment_normal
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The first 120 of its 230 lines; the rest is in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt from line 5399.
Where it is used
Every place in common/, events/ and history/ that calls disburse_chariot_race_activity_host_rewards.
Activities (1)
Events (1)
- The End of the Games
chariot_race.0500
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.