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

Scripted effect · Tours and Tournaments files

wedding_update_hosting_variable_effect

wedding_update_hosting_variable_effect = yes

game/common/scripted_effects/04_dlc_ep2_wedding_effects.txt, line 51 (49 lines). No parameters.

wedding_update_hosting_variable_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 51 of its file. It takes no parameters: wedding_update_hosting_variable_effect = yes. The game's script calls it in 1 place, among them Grand Wedding (activity). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_wedding_effects.txt.

The comment above it in the file

Recreate the variables setup if the host dies and is replaced

What it does

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

The script as written (49 lines of game script)
wedding_update_hosting_variable_effect = {
	set_grand_wedding_betrothal_variables = {
		HOST = scope:new_host
		SPOUSE_1 = scope:spouse_1
		SPOUSE_2 = scope:spouse_2
		PROMISEE = scope:host.var:promised_grand_wedding_to
	}
	# copy bloody variable to keep it works.
	if = {
		limit = {
			scope:activity = {
				has_activity_option = { 
					category = special_type 
					option = wedding_type_bloody
				}
			}
		}
		scope:host = {
			if = {
				limit = { has_variable = bloody_wedding_backed_down_var }
				scope:new_host = {
					set_variable = {
						name = bloody_wedding_backed_down_var
						years = 1
					}
				}
			}
			else_if = {
				limit = { has_variable = bloody_murder_fail }
				scope:new_host = {
					set_variable = {
						name = bloody_murder_fail
						years = 1
					}
				}
			}
			if = {
				limit = { has_variable = bloody_wedding_murder }
				scope:new_host = {
					set_variable = {
						name = bloody_wedding_murder
						value = prev.var:bloody_wedding_murder
						years = 1
					}
				}
			}
		}
	}
}

As written in game/common/scripted_effects/04_dlc_ep2_wedding_effects.txt.

Where it is used

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

Activities (1)

Source: game/common/scripted_effects/04_dlc_ep2_wedding_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?