CK3 DatabaseCrusader Kings III · 1.21.0 “Florin” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →Merch→

Scripted effect · Silk and Silver files

gg_ghibelline_situation_victory_effect

gg_ghibelline_situation_victory_effect = yes

game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt, line 896 (126 lines). No parameters.

gg_ghibelline_situation_victory_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 896 of its file. It takes no parameters: gg_ghibelline_situation_victory_effect = yes. The game's script calls it in 3 places, among them Ghibelline 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.

What it does

• 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_ghibelline_situation_victory_effect = {
	save_scope_as = root_scope
	##### Major Effects #####
	situation:guelph_ghibelline ?= {	
		#Ghibelline Leader
		every_situation_participant = {
			custom = custom.every_ghibelline_leader
			limit = { has_variable = ghibelline_leader }
			dynasty ?= { add_dynasty_prestige = prev.gg_leader_victory_renown }
			save_scope_as = current_ghibelline_leader
		}
		#Ghibelline Members
		every_situation_participant = {
			custom = custom.every_ghibelline_only_member
			limit = { 
				is_ghibelline_trigger = yes
				NOR = { 
					has_variable = ghibelline_leader
					dynasty ?= scope:current_ghibelline_leader.dynasty
				}
			}
			dynasty ?= { add_dynasty_prestige = prev.gg_supporter_victory_renown }
		}
		#Ghibellines
		every_situation_participant = {
			custom = custom.every_ghibelline_member
			limit = { is_ghibelline_trigger = yes }
			dynasty ?= {
				add_dynasty_modifier = {
					modifier = ghibelline_victory_dynasty_modifier
					years = 50
				}
			}
			add_character_modifier = ghibelline_victor_modifier
			if = {
				limit = {
					NOT = { this = title:k_papal_state.holder }
				}
				add_character_modifier = {
					modifier = scorned_pope_modifier
					years = 30
				}
				custom_tooltip = {
					text = every_ghibelline_scorned_with_pope_tt
					title:k_papal_state.holder = {
						add_opinion = {
							modifier = scorned_pope_opinion
							target = prev
							opinion = gg_pope_opinion_negative_value
						}
					}
				}
			}
		}
		#Guelphs
		every_situation_participant = {
			custom = custom.every_guelph_member
			limit = { is_guelph_trigger = yes }
			add_character_modifier = {
				modifier = guelph_loser_modifier
				years = 30
			}
		}
	}

	#Your involvement score
	if = {
		limit = {
			is_ghibelline_trigger = yes
			has_variable = ghibelline_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_ghibelline_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 }
		}
	}
	else_if = {
		limit = {
			is_guelph_or_ghibelline_trigger = no
			has_variable = gg_involvement
			var:gg_involvement > gg_involvement_base_value
		}
		custom_description_no_bullet = {
			text = gg_victory_predicted_involvement_effect
			dynasty ?= { add_dynasty_prestige = scope:root_scope.gg_supporter_involvement_renown }
		}
	}

	#It's all HRE from here
	custom_description_no_bullet = { #This looks better :colbert:
		text = ghibelline_victory_hre_effects
		title:k_italy = { set_de_jure_liege_title = title:e_hre }
		title:k_romagna = { set_de_jure_liege_title = title:e_hre }
	}

	if = {
		limit = {
			exists = title:k_papal_state.holder
			title:k_papal_state.holder = { realm_law_use_church_authority = yes }
		}
		title:k_papal_state.holder = {
			custom_tooltip = {
				text = gg_ghibelline_victory_pope_church_authority_tt
				change_authority_effect = { CHANGE = -1 }
			}
		}
	}

As written in game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt.

The first 120 of its 126 lines; the rest is in game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt from line 896.

Where it is used

Every place in common/, events/ and history/ that calls gg_ghibelline_situation_victory_effect.

Decisions (1)

Events (2)

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.

Spotted a mistake on this page, or have an idea for the site?