Scripted effect
disburse_feast_reveler_rewards
disburse_feast_reveler_rewards = yesgame/common/scripted_effects/00_activity_effects.txt, line 4169 (71 lines). No parameters.
disburse_feast_reveler_rewards is a scripted effect in Crusader Kings III, written at line 4169 of its file. It takes no parameters: disburse_feast_reveler_rewards = yes. The game's script calls it in 3 places, among them Feast (activity), Time to Go (event feast.7151) and disburse_feast_activity_rewards (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_activity_effects.txt.
What it does
If
- Has the Trait: Eager Reveler
scope:activity:has_activity_option = { category = feast_option_courses option = feast_courses_good }
scope:activity:has_activity_option = { category = feast_option_food option = feast_food_good }
Then
- Eager Reveler experience +15
Else if
- Has the Trait: Eager Reveler
scope:activity:has_activity_option = { category = feast_option_food option = feast_food_good }
Then
- Eager Reveler experience +10
Else if
- Has the Trait: Eager Reveler
scope:activity:has_activity_option = { category = feast_option_courses option = feast_courses_good }
Then
- Eager Reveler experience +10
- Else, if has the Trait: Eager Reveler: Eager Reveler experience +5
- Otherwise: You progress towards the Eager Reveler Trait
standard_activity_participation_legitimacy_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 (71 lines of game script)
disburse_feast_reveler_rewards = {
if = {
limit = {
has_trait = lifestyle_reveler
scope:activity = {
has_activity_option = {
category = feast_option_courses
option = feast_courses_good
}
}
scope:activity = {
has_activity_option = {
category = feast_option_food
option = feast_food_good
}
}
}
add_trait_xp = {
trait = lifestyle_reveler
value = 15
}
}
else_if = {
limit = {
has_trait = lifestyle_reveler
scope:activity = {
has_activity_option = {
category = feast_option_food
option = feast_food_good
}
}
}
add_trait_xp = {
trait = lifestyle_reveler
value = 10
}
}
else_if = {
limit = {
has_trait = lifestyle_reveler
scope:activity = {
has_activity_option = {
category = feast_option_courses
option = feast_courses_good
}
}
}
add_trait_xp = {
trait = lifestyle_reveler
value = 10
}
}
else_if = {
limit = { has_trait = lifestyle_reveler }
add_trait_xp = {
trait = lifestyle_reveler
value = 5
}
}
else = { #progress towards reveler
custom_tooltip = {
text = progress_towards_reveler_tt
reveler_points_gain_effect = {
CHANGE = 1
RANDOM_CHANGE = 1
}
}
}
# LEGITIMACY GAIN FOR STANDARD ACTIVITY PARTICIPATION - FEAST
standard_activity_participation_legitimacy_effect = yes
}As written in game/common/scripted_effects/00_activity_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls disburse_feast_reveler_rewards.
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.