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

Scripted effect

invalidate_diarch_grand_wedding_effect

invalidate_diarch_grand_wedding_effect = yes

game/common/scripted_effects/00_diarchy_scripted_effects.txt, line 1185 (48 lines). No parameters.

invalidate_diarch_grand_wedding_effect is a scripted effect in Crusader Kings III, written at line 1185 of its file. It takes no parameters: invalidate_diarch_grand_wedding_effect = yes. The game's script calls it in 2 places, among them on_diarch_change (on action) and on_entered_diarchy (on action). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_diarchy_scripted_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (48 lines of game script)
invalidate_diarch_grand_wedding_effect = {
	# Invalidate grand weddings
	diarch ?= {
		if = {
			limit = {
				# scope:diarch is currently an active Diarch
				exists = liege
				is_diarch = yes
				liege = {
					diarch = scope:diarch
					has_active_diarchy = yes
				}
				# scope:diarch was promised a Grand Wedding
				has_variable = promised_grand_wedding_by
			}
			betrothed ?= { save_scope_as = betrothed } # A promised wedding can outlive the betrothal
			# Save scopes of spouses, and organizers from variables
			scope:diarch = {
				add_to_list = informee
				var:promised_grand_wedding_by ?= {
					add_to_list = informee
					var:promised_grand_wedding_to ?= { add_to_list = informee }
				}
			}
			scope:betrothed ?= {
				add_to_list = informee
				var:promised_grand_wedding_by ?= {
					add_to_list = informee
					var:promised_grand_wedding_to ?= { add_to_list = informee }
				}
			}
			var:promised_grand_wedding_by = {
				clean_grand_wedding_betrothal_variables = yes
			}
			# Clean up variables and inform relevant characters of invalidation
			every_in_list = {
				list = informee
				send_interface_message = {
					type = msg_betrothal_invalidated
					title = grand_wedding_cancelled_by_regency_title
					left_icon = scope:diarch
					right_icon = scope:betrothed
					custom_tooltip = grand_wedding_cancelled_by_regency_desc
				}
			}
		}
	}
}

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

Where it is used

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

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

  • on_diarch_change
  • on_entered_diarchy

Source: game/common/scripted_effects/00_diarchy_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?