Scripted effect
ritual_cannibalism_personal_tenet_reward_effect
ritual_cannibalism_personal_tenet_reward_effect = { VICTIM = … }game/common/scripted_effects/00_religion_effects.txt, line 7 (59 lines). Parameters: $VICTIM$.
ritual_cannibalism_personal_tenet_reward_effect is a scripted effect in Crusader Kings III, written at line 7 of its file. A call passes 1 parameter: VICTIM. The game's script calls it in 4 places, among them A Toast To... (event feast.7201), Toast Mortem (event feast.7207) and feast_7201_ritual_cannibal_death_effect (local effect). Patch 1.20.1.2, from game/common/scripted_effects/00_religion_effects.txt.
What it does
- If the Personal Tenets unlock tenet ritual cannibalism devour reward:
add_stress = { … }change_spiritual_fulfillment = { … }
• 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 (59 lines of game script)
ritual_cannibalism_personal_tenet_reward_effect = {
if = {
limit = {
has_personal_tenet_flag = tenet_ritual_cannibalism_devour_reward
}
add_stress = {
value = miniscule_stress_loss
if = {
limit = { $VICTIM$ = { highest_held_title_tier >= tier_duchy } }
add = miniscule_stress_loss
}
if = {
limit = { $VICTIM$ = { highest_held_title_tier >= tier_kingdom } }
add = miniscule_stress_loss
}
if = {
limit = { $VICTIM$ = { highest_held_title_tier >= tier_empire } }
add = miniscule_stress_loss
}
if = {
limit = {
OR = {
is_close_family_of = $VICTIM$
is_consort_of = $VICTIM$
has_any_moderate_good_relationship_with_character_trigger = { CHARACTER = $VICTIM$ }
has_any_best_good_relationship_with_character_trigger = { CHARACTER = $VICTIM$ }
}
}
add = miniscule_stress_loss
}
}
change_spiritual_fulfillment = {
value = miniscule_spiritual_fulfillment_value
if = {
limit = { $VICTIM$ = { highest_held_title_tier >= tier_duchy } }
add = miniscule_spiritual_fulfillment_value
}
if = {
limit = { $VICTIM$ = { highest_held_title_tier >= tier_kingdom } }
add = miniscule_spiritual_fulfillment_value
}
if = {
limit = { $VICTIM$ = { highest_held_title_tier >= tier_empire } }
add = miniscule_spiritual_fulfillment_value
}
if = {
limit = {
OR = {
is_close_family_of = $VICTIM$
is_consort_of = $VICTIM$
has_any_moderate_good_relationship_with_character_trigger = { CHARACTER = $VICTIM$ }
has_any_best_good_relationship_with_character_trigger = { CHARACTER = $VICTIM$ }
}
}
add = miniscule_spiritual_fulfillment_value
}
}
}
}As written in game/common/scripted_effects/00_religion_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls ritual_cannibalism_personal_tenet_reward_effect.
Events (2)
- A Toast To...
feast.7201 - Toast Mortem
feast.7207
Scripted effects inside an event file (1)
- feast_7201_ritual_cannibal_death_effect
Scripted effects (1)
Source: game/common/scripted_effects/00_religion_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.