Scripted effect
give_cannibal_secret_or_trait_effect
give_cannibal_secret_or_trait_effect = yesgame/common/scripted_effects/00_secret_effects.txt, line 268 (27 lines). No parameters.
give_cannibal_secret_or_trait_effect is a scripted effect in Crusader Kings III, written at line 268 of its file. It takes no parameters: give_cannibal_secret_or_trait_effect = yes. The game's script calls it in 18 places, among them A New Hobby (event bp1_yearly.1000), A Toast To... (event feast.7201) and Danger: Emergent Emaciation (event travel_danger_events.9020). Patch 1.20.1.2, from game/common/scripted_effects/00_secret_effects.txt.
What it does
If
is_cannibal_trigger = no
Then
If
- Is available
NOT = { knows_tenet = tenet_ritual_cannibalism }
Then
add_known_tenet = tenet_ritual_cannibalism
If
trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:cannibal GENDER_CHARACTER = scope:cannibal_character }
Then
add_secret = { type = secret_cannibal }shunned_or_criminal_sf_impact_effect = { TRAIT = trait:cannibal }
• 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 (27 lines of game script)
give_cannibal_secret_or_trait_effect = {
save_temporary_scope_as = cannibal_character
if = {
limit = { #Not already a cannibal
is_cannibal_trigger = no
}
if = {
limit = {
is_available_quick = { advanced_ruler = yes }
NOT = { knows_tenet = tenet_ritual_cannibalism }
}
add_known_tenet = tenet_ritual_cannibalism
}
if = {
limit = {
trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:cannibal GENDER_CHARACTER = scope:cannibal_character }
}
add_secret = {
type = secret_cannibal
}
shunned_or_criminal_sf_impact_effect = { TRAIT = trait:cannibal }
}
else = {
add_trait = cannibal
}
}
}As written in game/common/scripted_effects/00_secret_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls give_cannibal_secret_or_trait_effect.
Events (12)
- A New Hobby
bp1_yearly.1000 - A Toast To...
feast.7201 - Danger: Emergent Emaciation
travel_danger_events.9020 - Every … for …
yearly.1030 - Gourmand
trait_specific.5002 - My Delectable …
hold_court.4602
6 more
- Only a Nightmare
yearly.3071 - Stocking the Stores
martial_strategy.4000 - Taken to the Extreme
trait_specific.5003 - The Evening Meal
intrigue_dread.1501 - The Evening Meal
intrigue_dread.1502 - Toast Mortem
feast.7207
Scripted effects inside an event file (2)
- 1060_liege_eat_heart_effect
- feast_7201_ritual_cannibal_death_effect
Source: game/common/scripted_effects/00_secret_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.