Scripted trigger · All Under Heaven files
tgp_natural_disaster_great_project_trigger
tgp_natural_disaster_great_project_trigger = { TYPE = … }game/common/scripted_triggers/10_tgp_natural_disaster_triggers.txt, line 1 (16 lines). Parameters: $TYPE$.
tgp_natural_disaster_great_project_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 1 of its file. A call passes 1 parameter: TYPE. 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_triggers/10_tgp_natural_disaster_triggers.txt.
What it checks
- Is an Independent Ruler
- Any character situation:
situation_type = natural_disaster_$TYPE$- Any participant group:
participant_group_type = affected_rulerparticipant_group_has_character = root
None of these
- Any in list:
great_project_owner = root
- Any in list:
• 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 (16 lines of game script)
tgp_natural_disaster_great_project_trigger = {
is_independent_ruler = yes
any_character_situation = {
situation_type = natural_disaster_$TYPE$
any_participant_group = {
participant_group_type = affected_ruler
participant_group_has_character = root
}
NOT = {
any_in_list = {
variable = great_projects
great_project_owner = root
}
}
}
}As written in game/common/scripted_triggers/10_tgp_natural_disaster_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls tgp_natural_disaster_great_project_trigger.
Great projects (2)
- great_project_earthquake
- great_project_flood
Source: game/common/scripted_triggers/10_tgp_natural_disaster_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.