Scripted effect · All Under Heaven files
great_project_contribution_catalyst_effect
great_project_contribution_catalyst_effect = yesgame/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 198 (30 lines). No parameters.
great_project_contribution_catalyst_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 198 of its file. It takes no parameters: great_project_contribution_catalyst_effect = yes. The game's script calls it in 14 places, among them Compel Religious Uniformity (great project), construct_great_barracks (great project) and grand_canals (great project). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
The comment above it in the file
If both owner and contributor are part of the Dynastic Cycle, trigger the contribution catalyst
What it does
If
tgp_is_any_minister = no- scope:owner › Any character situation:
situation_type = dynastic_cycle
One of these
scope:great_project.great_project_type = great_project_type:great_wallor
scope:great_project.great_project_type = great_project_type:great_wall_extend_to_shanhai_passor
scope:great_project.great_project_type = great_project_type:great_wall_extend_to_liaodongor
scope:great_project.great_project_type = great_project_type:minister_project_establish_control
Then
- One random character situation:
- Where:
situation_type = dynastic_cycle
- Depending on great project.great project type:
- When great project.great project type is great project type:great wall: Counts toward the situation's next phase: “Great Project Contribution”
- When great project.great project type is great project type:great wall extend to shanhai pass: Counts toward the situation's next phase: “Great Project Contribution”
- When great project.great project type is great project type:great wall extend to liaodong: Counts toward the situation's next phase: “Great Project Contribution”
- When great project.great project type is great project type:minister project establish control: Counts toward the situation's next phase: “Great Project Contribution”
- Where:
• 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 (30 lines of game script)
great_project_contribution_catalyst_effect = {
if = {
limit = {
this != scope:owner
this != scope:founder
tgp_is_any_minister = no
scope:owner ?= {
any_character_situation = {
situation_type = dynastic_cycle
}
}
OR = {
scope:great_project.great_project_type = great_project_type:great_wall
scope:great_project.great_project_type = great_project_type:great_wall_extend_to_shanhai_pass
scope:great_project.great_project_type = great_project_type:great_wall_extend_to_liaodong
scope:great_project.great_project_type = great_project_type:minister_project_establish_control
}
}
random_character_situation = {
limit = { situation_type = dynastic_cycle }
switch = {
trigger = scope:great_project.great_project_type
great_project_type:great_wall = { trigger_situation_catalyst = catalyst_great_project_great_wall_contribution }
great_project_type:great_wall_extend_to_shanhai_pass = { trigger_situation_catalyst = catalyst_great_project_great_wall_contribution }
great_project_type:great_wall_extend_to_liaodong = { trigger_situation_catalyst = catalyst_great_project_great_wall_contribution }
great_project_type:minister_project_establish_control = { trigger_situation_catalyst = catalyst_great_project_establish_control_contribution }
}
}
}
}As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls great_project_contribution_catalyst_effect.
Great projects (14)
- Compel Religious Uniformity
- construct_great_barracks
- grand_canals
- great_project_earthquake
- great_project_flood
- great_wall
8 more
- great_wall_extend_to_liaodong
- great_wall_extend_to_shanhai_pass
- minister_project_conduct_census
- minister_project_culture
- minister_project_development
- minister_project_establish_control
- minister_project_train_troops
- strengthen_capital
Source: game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.