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_invalidation_missing_leader_message_effect

gg_invalidation_missing_leader_message_effect = { MISSING_LEADER = … }

game/common/scripted_effects/00_gdp_guelph_ghibelline_scripted_effects.txt, line 5 (58 lines). Parameters: $MISSING_LEADER$.

gg_invalidation_missing_leader_message_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 5 of its file. A call passes 1 parameter: MISSING_LEADER. The game's script calls it in 3 places, among them … (situation), on_title_gain (on action) and try_set_up_new_gg_leader_effect (scripted effect). Its body carries 7 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

  • … › Every situation participant:

• 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 (58 lines of game script)
gg_invalidation_missing_leader_message_effect = {
	situation:guelph_ghibelline ?= {
		#All players
		every_situation_participant = {
			limit = {
				is_ai = no
			}
			send_interface_toast = {
				type = event_toast_effect_neutral
				title = gg_invalidation_title
				if = {
					limit = { $MISSING_LEADER$ = flag:guelph }
					custom_tooltip = gg_invalidation_missing_guelph_leader_tt
					debug_log = "Guelphs are missing a leader! Invalidating GG"
					debug_log_scopes = yes
				}
				else_if = {
					limit = { $MISSING_LEADER$ = flag:ghibelline }
					custom_tooltip = gg_invalidation_missing_ghibelline_leader_tt
					debug_log = "Ghibellines are missing a leader! Invalidating GG"
					debug_log_scopes = yes
				}
				else_if = {
					limit = { $MISSING_LEADER$ = flag:hre }
					custom_tooltip = gg_invalidation_missing_hre_leader_tt
					debug_log = "There is no HRE holder! Invalidating GG"
					debug_log_scopes = yes
				}
				else_if = {
					limit = { $MISSING_LEADER$ = flag:1066_hre_not_leader }
					custom_tooltip = gg_invalidation_missing_hre_leader_dictatus_tt
					debug_log = "The HRE is not Ghibelline leader in Prelude! Invalidating GG"
					debug_log_scopes = yes
				}
				else_if = {
					limit = { $MISSING_LEADER$ = flag:1066_pope_not_leader }
					custom_tooltip = gg_invalidation_missing_pope_leader_dictatus_tt
					debug_log = "The Pope is not Guelph leader in Prelude! Invalidating GG"
					debug_log_scopes = yes
				}
				else_if = {
					limit = { $MISSING_LEADER$ = flag:pope_is_emperor }
					custom_tooltip = gg_invalidation_pope_is_emperor_tt
					debug_log = "The Pope and the Emperor are the same character! Invalidating GG"
					debug_log_scopes = yes
				}
				else = {
					custom_tooltip = gg_invalidation_missing_pope_leader_tt
					debug_log = "There is no Pope! Invalidating GG"
					debug_log_scopes = yes
				}
				show_as_tooltip = {
					situation:guelph_ghibelline = { end_situation = 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_invalidation_missing_leader_message_effect.

Situations (1)

On actions (the game's own hooks) (1)

  • on_title_gain

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?