Scripted effect
disburse_carnival_rewards
disburse_carnival_rewards = yesgame/common/scripted_effects/00_activity_effects.txt, line 4277 (143 lines). No parameters.
disburse_carnival_rewards is a scripted effect in Crusader Kings III, written at line 4277 of its file. It takes no parameters: disburse_carnival_rewards = yes. The game's script calls it in 2 places, among them Carnival (activity) and Return to the Mundane (event carnival.1002). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/00_activity_effects.txt.
What it does
If
a check the game hides
Then
- scope:activity › Activity log entry:
If
scope:activity:has_activity_option = { category = carnival_option_decoration option = carnival_decoration_extravagant }
Then
- You: Gain +350 Prestige
Else if
scope:activity:has_activity_option = { category = carnival_option_decoration option = carnival_decoration_basic }
Then
- You: Gain +75 Prestige
Otherwise
- You: Gain +150 Prestige
- scope:activity › Activity log entry:
If
a check the game hides
Then
- scope:activity › Activity log entry:
If
scope:activity:has_activity_option = { category = carnival_option_entertainment option = carnival_entertainment_extravagant }
Then
activity_location.county = { … }
Else if
scope:activity:has_activity_option = { category = carnival_option_entertainment option = carnival_entertainment_basic }
Then
activity_location.county = { … }
Otherwise
activity_location.county = { … }
- scope:activity › Activity log entry:
• 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_carnival_rewards = {
## Decoration tier rewards
if = {
limit = { this = scope:host }
scope:activity = {
add_activity_log_entry = {
key = carnival_conc_reward
score = 100
show_in_conclusion = yes
character = root
if = {
limit = {
scope:activity = {
has_activity_option = {
category = carnival_option_decoration
option = carnival_decoration_extravagant
}
}
}
root = {
add_prestige = major_prestige_gain
}
}
else_if = {
limit = {
scope:activity = {
has_activity_option = {
category = carnival_option_decoration
option = carnival_decoration_basic
}
}
}
root = {
add_prestige = minor_prestige_gain
}
}
else = {
root = {
add_prestige = medium_prestige_gain
}
}
}
}
}
## Entertainment tier rewards
if = {
limit = { this = scope:host }
scope:activity = {
add_activity_log_entry = {
key = carnival_conc_reward
score = 100
show_in_conclusion = yes
character = root
if = {
limit = {
scope:activity = {
has_activity_option = {
category = carnival_option_entertainment
option = carnival_entertainment_extravagant
}
}
}
activity_location.county = {
add_county_modifier = {
modifier = gdp_carnival_extravagant_celebration_modifier
years = 5
}
change_county_control = {
value = {
integer_range = {
min = 5
max = 25
}
}
}
}
}
else_if = {
limit = {
scope:activity = {
has_activity_option = {
category = carnival_option_entertainment
option = carnival_entertainment_basic
}
}
}
activity_location.county = {
add_county_modifier = {
modifier = gdp_carnival_basic_celebration_modifier
years = 5
}
change_county_control = {
value = {
integer_range = {
min = 5
max = 10
}
}
}
}
}
else = {
activity_location.county = {
add_county_modifier = {
modifier = gdp_carnival_extensive_celebration_modifier
years = 5
}
change_county_control = {
value = {
integer_range = {
min = 5
max = 15
}
}
}
}
}
}
}
}As written in game/common/scripted_effects/00_activity_effects.txt.
The first 120 of its 143 lines; the rest is in game/common/scripted_effects/00_activity_effects.txt from line 4277.
Where it is used
Every place in common/, events/ and history/ that calls disburse_carnival_rewards.
Activities (1)
Events (1)
- Return to the Mundane
carnival.1002
Source: game/common/scripted_effects/00_activity_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.