Scripted trigger
has_available_funeral_target
has_available_funeral_target = yesgame/common/scripted_triggers/00_funeral_and_body_disposal_triggers.txt, line 14 (35 lines). No parameters.
has_available_funeral_target is a scripted trigger in Crusader Kings III, written at line 14 of its file. It takes no parameters: has_available_funeral_target = yes (or no). The game's script calls it in 1 place, among them Funeral (activity). Patch 1.20.1.2, from game/common/scripted_triggers/00_funeral_and_body_disposal_triggers.txt.
The comment above it in the file
NOTE: Keep this trigger in sync with `funeral_add_funeral_targets_to_list` effect
What it checks
One of these
- Their primary title › Any past holder:
- If highest held Title is more than prev.tier Rank:
NOT = { primary_title.holder.dynasty ?= dynasty }
body_is_available = yes
- If highest held Title is more than prev.tier Rank:
or
Any close or extended family member:body_is_available = yes
or
Any spouse:body_is_available = yes
or
Any memory:One of these
has_memory_type = friend_diedor
has_memory_type = lover_diedor
has_memory_type = soulmate_diedor
has_memory_type = best_friend_died
If
a check the game hides
Then
memory_participant:dead_relation = { body_is_available = yes }
Otherwise
- Never
- Their primary title › Any past holder:
• 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 (35 lines of game script)
has_available_funeral_target = {
OR = {
primary_title ?= { # Previous holders of your primary title
any_past_holder = {
# so vasssals can't 'steal' funeral for new liege just cuz previous liege granted a title to them.
trigger_if = {
limit = { highest_held_title_tier > prev.tier }
NOT = { primary_title.holder.dynasty ?= dynasty }
}
body_is_available = yes
}
}
any_close_or_extended_family_member = {
even_if_dead = yes
body_is_available = yes
}
any_spouse = {
even_if_dead = yes
body_is_available = yes
}
any_memory = {
OR = {
has_memory_type = friend_died
has_memory_type = lover_died
has_memory_type = soulmate_died
has_memory_type = best_friend_died
}
trigger_if = {
limit = { exists = memory_participant:dead_relation }
memory_participant:dead_relation = { body_is_available = yes }
}
trigger_else = { always = no }
}
}
}As written in game/common/scripted_triggers/00_funeral_and_body_disposal_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls has_available_funeral_target.
Activities (1)
Source: game/common/scripted_triggers/00_funeral_and_body_disposal_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.