Scripted effect
hosted_successful_feast_new_effect
hosted_successful_feast_new_effect = yesgame/common/scripted_effects/00_feast_scripted_effects.txt, line 107 (156 lines). No parameters.
hosted_successful_feast_new_effect is a scripted effect in Crusader Kings III, written at line 107 of its file. It takes no parameters: hosted_successful_feast_new_effect = yes. The game's script calls it in 1 place, among them disburse_feast_activity_rewards (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_feast_scripted_effects.txt.
What it does
scope:activity_location.county:- The county gains the modifier “Great Banquet” for 5 years
- Popular Opinion +10
- Development Growth +20%
- County Fertility Growth +20%
- The county gains the modifier “Great Banquet” for 5 years
- If ceremonial liege events 0020 discount is Feast:
• 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)
hosted_successful_feast_new_effect = {
# Renown gain from Tradition.
if = {
limit = {
culture = { has_cultural_parameter = renown_from_feasts }
}
dynasty ?= { add_dynasty_prestige = minor_dynasty_prestige_value }
}
# Piety gain from Tenets.
if = {
limit = {
rite = {
OR = {
rite_has_parameter = piety_from_feasts_active
AND = {
rite_has_parameter = summer_festivals_active
# Only during 'summer' (May 1st through July 31st).
current_month >= 5
current_month <= 7
}
}
}
}
add_piety = {
value = 0
if = {
limit = {
rite = { rite_has_parameter = summer_festivals_active }
# Only during 'summer' (May 1st through July 31st).
current_month >= 5
current_month <= 7
}
add = major_piety_value
}
if = {
limit = {
rite = { rite_has_tenet = tenet_ritual_celebrations }
}
add = medium_piety_value
}
if = {
limit = {
rite = { rite_has_tenet = tenet_hedonistic }
}
add = medium_piety_value
}
if = {
limit = {
has_royal_court = yes
has_dlc_feature = royal_court
amenity_level = { target = court_food_quality value >= 5 }
}
multiply = 2.5
}
else_if = {
limit = {
has_royal_court = yes
has_dlc_feature = royal_court
amenity_level = { target = court_food_quality value >= 4 }
}
multiply = 2
}
else_if = {
limit = {
has_royal_court = yes
has_dlc_feature = royal_court
amenity_level = { target = court_food_quality value >= 3 }
}
multiply = 1.5
}
else_if = {
limit = {
has_royal_court = yes
has_dlc_feature = royal_court
amenity_level = { target = court_food_quality value >= 2 }
}
multiply = 1
}
else_if = {
limit = {
has_royal_court = yes
has_dlc_feature = royal_court
amenity_level = { target = court_food_quality value <= 1 }
}
multiply = 0.5
}
# Always give some piety, even if you completely cheaped out.
min = medium_piety_value
}
}
# Musician opinion bonus
if = {
limit = {
court_position:court_musician_court_position ?= {
is_physically_able = yes
}
}
court_position:court_musician_court_position = {
save_scope_value_as = {
name = musician_opinion_bonus
value = {
value = "aptitude(court_musician_court_position)"
multiply = 5
if = {
limit = {
culture = { has_cultural_parameter = characters_are_better_court_musicians }
}
add = 10
}
}
}
}
scope:activity = {
add_activity_log_entry = {
key = court_musician_increased_opinion_tt
character = root.intent_target
score = 100
show_in_conclusion = yesAs written in game/common/scripted_effects/00_feast_scripted_effects.txt.
The first 120 of its 156 lines; the rest is in game/common/scripted_effects/00_feast_scripted_effects.txt from line 107.
Where it is used
Every place in common/, events/ and history/ that calls hosted_successful_feast_new_effect.
Scripted effects (1)
Source: game/common/scripted_effects/00_feast_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.