Scripted effect · Silk and Silver files
gg_relation_catalyst_effect
gg_relation_catalyst_effect = { ACTOR = … CATALYST = … RECIPIENT = … }game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt, line 1391 (24 lines). Parameters: $ACTOR$, $CATALYST$, $RECIPIENT$.
gg_relation_catalyst_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1391 of its file. A call passes 3 parameters: ACTOR, CATALYST and RECIPIENT. The game's script calls it in 8 places, among them on_set_relation_grudge (on action), on_set_relation_nemesis (on action) and on_set_relation_rival (on action). Patch 1.21.0, from game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt.
What it does
scope:root_scope:If
gg_phase_has_catalysts_trigger = yesOne of these
All of these
is_ghibelline_leader_trigger = yesscope:target_scope:is_guelph_leader_trigger = yes
or
All of these
is_guelph_leader_trigger = yesscope:target_scope:
Then
gg_triggered_catalyst_effect = { ACTOR = scope:root_scope RECIPIENT = scope:target_scope CATALYST = $CATALYST$ }gg_involvement_catalyst_effect = yes
• 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 (24 lines of game script)
gg_relation_catalyst_effect = {
$ACTOR$ = { save_scope_as = root_scope }
$RECIPIENT$ = { save_scope_as = target_scope }
scope:root_scope = {
if = {
limit = {
exists = situation:guelph_ghibelline
gg_phase_has_catalysts_trigger = yes
OR = {
AND = {
is_ghibelline_leader_trigger = yes
scope:target_scope = { is_guelph_leader_trigger = yes }
}
AND = {
is_guelph_leader_trigger = yes
scope:target_scope = { is_ghibelline_leader_trigger = yes }
}
}
}
gg_triggered_catalyst_effect = { ACTOR = scope:root_scope RECIPIENT = scope:target_scope CATALYST = $CATALYST$ }
gg_involvement_catalyst_effect = yes
}
}
}As written in game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls gg_relation_catalyst_effect.
On actions (the game's own hooks) (3)
- on_set_relation_grudge
- on_set_relation_nemesis
- on_set_relation_rival
Source: game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.