Scripted effect · All Under Heaven files
tenet_benevolent_governance_disaster_neglect_effect
tenet_benevolent_governance_disaster_neglect_effect = yesgame/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt, line 1130 (26 lines). No parameters.
tenet_benevolent_governance_disaster_neglect_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1130 of its file. It takes no parameters: tenet_benevolent_governance_disaster_neglect_effect = yes. The game's script calls it in 2 places, among them great_project_earthquake (great project) and great_project_flood (great project). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt.
The comment above it in the file
Called from the disaster great project's on_complete, root is the project. Expects scope:situation, set by natural_disaster_great_project_save_scopes_effect.
What it does
If
scope:owner:- The Personal Tenets unlock tenet benevolent governance disaster relief fulfillment
tgp_natural_disaster_is_valid_contributor_trigger = yes
Then
scope:owner:- If played by a person: Spiritual fulfillment changes
- Otherwise: Spiritual fulfillment changes
• 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 (26 lines of game script)
tenet_benevolent_governance_disaster_neglect_effect = {
if = {
limit = {
exists = scope:situation
NOT = { exists = scope:great_project.var:benevolent_governance_relief_funded }
scope:owner ?= {
has_personal_tenet_flag = tenet_benevolent_governance_disaster_relief_fulfillment
tgp_natural_disaster_is_valid_contributor_trigger = yes
}
}
scope:owner = {
if = {
limit = { is_ai = no }
send_interface_toast = {
type = event_generic_bad
title = benevolent_governance_disaster_neglect_toast
left_icon = root
change_spiritual_fulfillment = tenet_benevolent_governance_disaster_neglect_loss_value
}
}
else = {
change_spiritual_fulfillment = tenet_benevolent_governance_disaster_neglect_loss_value
}
}
}
}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 tenet_benevolent_governance_disaster_neglect_effect.
Great projects (2)
- great_project_earthquake
- great_project_flood
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.