Scripted effect · Silk and Silver files
gg_guelph_situation_victory_effect
gg_guelph_situation_victory_effect = yesgame/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt, line 710 (185 lines). No parameters.
gg_guelph_situation_victory_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 710 of its file. It takes no parameters: gg_guelph_situation_victory_effect = yes. The game's script calls it in 3 places, among them Guelph Victory (decision), Guelphs & Ghibellines: … Victory (event gdp_guelph_ghibelline.9000) and Guelphs & Ghibellines: … Victory (event gdp_guelph_ghibelline.9010). Its body carries 2 texts of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt.
The comment above it in the file
Endings
What it does
- …:
- The Guelph Leader:
- Where: Has “guelph leader” (a variable the game's script sets)
- Their dynasty: The dynasty gains … Renown
- Every Guelph Supporter:
- Where:
is_guelph_trigger = yes- Does not have “guelph leader” (a variable the game's script sets)
NOT = { dynasty ?= scope:current_guelph_leader.dynasty }
- Their dynasty: The dynasty gains … Renown
- Where:
- Every Guelph Leader and Guelph Supporter:
- Where:
is_guelph_trigger = yes
- Gains the modifier “Proud Guelph”
- Popular Opinion Baseline +5
If
a check the game hides
Then
- Gains the modifier “Favored by Pope” for 30 years
- Gains 35 Opinion with … (Favored by Pope)
- Where:
- Every Ghibelline Leader and Ghibelline Supporter:
- Where:
is_ghibelline_trigger = yes
- Their dynasty:
- The dynasty gains the modifier “Ghibelline Defeat” for 50 years
- Gains the modifier “Disgraced Ghibelline” for 30 years
- Popular Opinion Baseline -15
- Where:
- The Guelph Leader:
- Italian:
change_cultural_acceptance = { target = title:e_hre.holder.culture value = -20 desc = guelph_victory_cultural_acceptance_decline }
- title:e_hre.holder › Every Vassal of Holy Roman Empire in North Italian:
- Where › Their primary title › Their province: Is in the North Italian region
becomes_independent = { change = scope:change }
- Stress and fulfillment impact: by trait: Zealous -30
• 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 (120 lines of game script)
gg_guelph_situation_victory_effect = {
#if = {
# limit = { has_dlc_feature = legends }
# legend_seed_struggle_ending_effect = {
# ENDER = root
# STRUGGLE = iberian_struggle
# }
#}
save_scope_as = root_scope
##### Major Effects #####
situation:guelph_ghibelline ?= {
#Guelph Leader
every_situation_participant = {
custom = custom.every_guelph_leader
limit = { has_variable = guelph_leader }
dynasty ?= { add_dynasty_prestige = prev.gg_leader_victory_renown }
save_scope_as = current_guelph_leader
}
#Guelph Members
every_situation_participant = {
custom = custom.every_guelph_only_member
limit = {
is_guelph_trigger = yes
NOR = {
has_variable = guelph_leader
dynasty ?= scope:current_guelph_leader.dynasty
}
}
dynasty ?= { add_dynasty_prestige = prev.gg_supporter_victory_renown }
}
#Guelphs
every_situation_participant = {
custom = custom.every_guelph_member
limit = { is_guelph_trigger = yes }
add_character_modifier = guelph_victor_modifier
if = {
limit = {
NOT = { this = title:k_papal_state.holder }
}
add_character_modifier = {
modifier = favored_by_pope_modifier
years = 30
}
custom_tooltip = {
text = every_guelph_favored_by_pope_tt
title:k_papal_state.holder ?= {
add_opinion = {
modifier = favored_by_pope_opinion
target = prev
opinion = gg_pope_opinion_value
}
}
}
}
}
#Ghibellines
every_situation_participant = {
custom = custom.every_ghibelline_member
limit = { is_ghibelline_trigger = yes }
dynasty ?= {
add_dynasty_modifier = {
modifier = ghibelline_defeat_dynasty_modifier
years = 50
}
}
add_character_modifier = {
modifier = ghibelline_loser_modifier
years = 30
}
}
}
#The Italians disrespect the Germans slightly more now
culture:italian = {
change_cultural_acceptance = {
target = title:e_hre.holder.culture
value = -20
desc = guelph_victory_cultural_acceptance_decline
}
}
#Any HRE vassal in Northern Italy becomes independent
title:e_hre.holder ?= {
every_vassal = {
custom = custom.every_hre_vassal_northern_italy
limit = {
primary_title = {
title_province = { geographical_region = gdp_guelph_ghibelline_northern_italy_region }
}
}
create_title_and_vassal_change = {
type = independency
save_scope_as = change
}
becomes_independent = { change = scope:change }
resolve_title_and_vassal_change = scope:change
}
}
#Your involvement score
if = {
limit = {
is_guelph_trigger = yes
has_variable = guelph_leader
has_variable = gg_involvement
var:gg_involvement > gg_involvement_base_value
}
custom_description_no_bullet = {
text = gg_victory_leader_involvement_effect
dynasty ?= { add_dynasty_prestige = scope:root_scope.gg_leader_involvement_renown }
}
}
else_if = {
limit = {
is_guelph_trigger = yes
has_variable = gg_involvement
var:gg_involvement > gg_involvement_base_value
}
custom_description_no_bullet = {
text = gg_victory_member_involvement_effect
dynasty ?= { add_dynasty_prestige = scope:root_scope.gg_supporter_involvement_renown }As written in game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt.
The first 120 of its 185 lines; the rest is in game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt from line 710.
Where it is used
Every place in common/, events/ and history/ that calls gg_guelph_situation_victory_effect.
Decisions (1)
Events (2)
- Guelphs & Ghibellines: … Victory
gdp_guelph_ghibelline.9000 - Guelphs & Ghibellines: … Victory
gdp_guelph_ghibelline.9010
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.