Scripted effect · All Under Heaven files
natural_disaster_great_project_mandatory_investment_reward_effect
natural_disaster_great_project_mandatory_investment_reward_effect = yesgame/common/scripted_effects/10_dlc_tgp_natural_disaster_scripted_effects.txt, line 938 (31 lines). No parameters.
natural_disaster_great_project_mandatory_investment_reward_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 938 of its file. It takes no parameters: natural_disaster_great_project_mandatory_investment_reward_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.
What it does
If
a check the game hides
Then
- If government allows: merit:
change_merit = { value = medium_merit_gain }
• 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 (31 lines of game script)
natural_disaster_great_project_mandatory_investment_reward_effect = {
if = {
limit = { this = scope:owner }
if = {
limit = { is_valid_for_legitimacy_change = yes }
add_legitimacy = natural_disaster_great_project_mandatory_investment_legitimacy_gain_value
}
else = {
add_prestige = minor_prestige_gain
add_piety = minor_piety_gain
}
}
else_if = {
limit = { is_governor = yes }
change_influence = minor_influence_gain
increase_governance_effect = { VALUE = 2 }
}
else = {
add_prestige = medium_prestige_gain
add_piety = medium_prestige_gain
}
if = {
limit = {
government_allows = merit
this != title:h_china.holder # Chinese Emperor does not "use" merit
}
change_merit = {
value = medium_merit_gain
}
}
}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_great_project_mandatory_investment_reward_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.