Scripted effect · All Under Heaven files
natural_disaster_survival_memory_effect
natural_disaster_survival_memory_effect = yesgame/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt, line 779 (36 lines). No parameters.
natural_disaster_survival_memory_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 779 of its file. It takes no parameters: natural_disaster_survival_memory_effect = yes. The game's script calls it in 3 places, among them …: Last Moments (event natural_disaster.5101), …: Stricken Camp (event natural_disaster.5111) and …: Survivor (event natural_disaster.5102). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt.
What it does
- Otherwise:
create_character_memory = { type = survived_disaster_memory }
• 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 (36 lines of game script)
natural_disaster_survival_memory_effect = {
if = {
limit = {
any_memory = {
memory_type = survived_disaster_memory
memory_age_years < 1
}
}
# Don't add duplicates
}
else = {
create_character_memory = { type = survived_disaster_memory }
ordered_memory = {
order_by = memory_creation_date
save_scope_as = memory
scope:situation = {
switch = {
trigger = situation_type
natural_disaster_flood = {
scope:memory = {
set_variable = { name = disaster value = flag:flood }
set_variable = { name = river_region value = scope:situation.var:river_region }
}
}
natural_disaster_earthquake = {
scope:memory = {
set_variable = { name = disaster value = flag:earthquake }
set_variable = { name = epicenter_county value = scope:situation.situation_center_province.county }
}
}
}
}
set_variable = { name = location value = memory_owner.location }
}
}
}As written in game/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls natural_disaster_survival_memory_effect.
Events (3)
- …: Last Moments
natural_disaster.5101 - …: Stricken Camp
natural_disaster.5111 - …: Survivor
natural_disaster.5102
Source: game/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.