Scripted effect · All Under Heaven files
determine_if_contributed_and_save_scope_effect
determine_if_contributed_and_save_scope_effect = { CONTRIBUTION = … }game/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 46 (30 lines). Parameters: $CONTRIBUTION$.
determine_if_contributed_and_save_scope_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 46 of its file. A call passes 1 parameter: CONTRIBUTION. The game's script calls it in 5 places, among them mandala_capital_01 (great project), mandala_capital_02 (great project) and mandala_capital_03 (great project). Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
What it does
scope:great_project:If
- Any contribution:
contribution_id = $CONTRIBUTION$contribution_is_funded = yes
Then
- Every contribution:
- Where:
contribution_id = $CONTRIBUTION$contribution_is_funded = yes
contributor = { … }
- Where:
- Any contribution:
• 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)
determine_if_contributed_and_save_scope_effect = {
scope:great_project = {
if = {
limit = {
any_contribution = {
contribution_id = $CONTRIBUTION$
contribution_is_funded = yes
}
}
every_contribution = {
limit = {
contribution_id = $CONTRIBUTION$
contribution_is_funded = yes
}
contributor = {
if = {
limit = {
is_alive = no
house = scope:owner.house
}
scope:owner = { save_scope_as = contributed_$CONTRIBUTION$ }
}
else = {
save_scope_as = contributed_$CONTRIBUTION$
}
}
}
}
}
}As written in game/common/scripted_effects/tgp_mandala_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls determine_if_contributed_and_save_scope_effect.
Great projects (5)
- mandala_capital_01
- mandala_capital_02
- mandala_capital_03
- mandala_capital_04
- mandala_capital_05
Source: game/common/scripted_effects/tgp_mandala_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.