CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect

give_cannibal_secret_or_trait_effect

give_cannibal_secret_or_trait_effect = yes

game/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

• 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)

6 more

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.

Spotted a mistake on this page?