Scripted effect · Tours and Tournaments files
set_grand_wedding_betrothal_variables
set_grand_wedding_betrothal_variables = { HOST = … PROMISEE = … SPOUSE_1 = … SPOUSE_2 = … }game/common/scripted_effects/04_dlc_ep2_wedding_effects.txt, line 6 (26 lines). Parameters: $HOST$, $PROMISEE$, $SPOUSE_1$, $SPOUSE_2$.
set_grand_wedding_betrothal_variables is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 6 of its file. A call passes 4 parameters: HOST, PROMISEE, SPOUSE_1 and SPOUSE_2. The game's script calls it in 5 places, among them on_death (on action), on_rank_down (on action) and create_grand_wedding_betrothal (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_wedding_effects.txt.
The comment above it in the file
Create the grand wedding variables between the two characters, they must already have been betrothed by the code hook in the marry interaction or by manually setting a betrothal. For manual betrothal setting prefer using create_grand_wedding_betrothal. SPOUSE_1 = First spouse character SPOUSE_2 = Second spouse character HOST = Character promising to host the grand wedding
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (26 lines of game script)
set_grand_wedding_betrothal_variables = {
$SPOUSE_1$ = {
set_variable = { name = promised_grand_wedding_by value = $HOST$ }
save_scope_as = spouse_1
}
$SPOUSE_2$ = {
set_variable = { name = promised_grand_wedding_by value = $HOST$ }
save_scope_as = spouse_2
}
$HOST$ = {
set_variable = {
name = promised_grand_wedding_marriage_countdown
value = $SPOUSE_1$
years = grand_wedding_timeout
}
set_variable = {
name = promised_grand_wedding_to
value = $PROMISEE$
}
# Notification that the countdown has expired (one day before, to avoid getting the variable deleted before we have used it)
trigger_event = {
id = ep2_wedding.0001
days = grand_wedding_timeout_notification
}
}
}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 set_grand_wedding_betrothal_variables.
On actions (the game's own hooks) (2)
- on_death
- on_rank_down
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.