Scripted effect · Tours and Tournaments files
wedding_assign_officiant_effect
wedding_assign_officiant_effect = yesgame/common/scripted_effects/04_dlc_ep2_wedding_effects.txt, line 185 (90 lines). No parameters.
wedding_assign_officiant_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 185 of its file. It takes no parameters: wedding_assign_officiant_effect = yes. The game's script calls it in 2 places, among them Grand Wedding (activity) and check_officiant_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_wedding_effects.txt.
What it does
- scope:host › Else, if all of these hold:
- Conditions:
- Then:
If
None of these
- scope:activity › Any attending character: Is played by a person
- Any pool character:
province = scope:activity.activity_locationis_physically_able_ai_adult = yes- Their faith is the same as that of host
can_be_clergy_due_to_gender_trigger = yes
Then
- One random pool character:
- Where:
is_physically_able_ai_adult = yes- Their faith is the same as that of host
can_be_clergy_due_to_gender_trigger = yes
province = scope:activity.activity_location
- Where:
Otherwise
create_character = { … }
• 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 (90 lines of game script)
wedding_assign_officiant_effect = {
scope:host = {
if = {
limit = {
scope:host.faith.religious_head ?= {
NOR = {
this = scope:activity.special_guest:spouse_1
this = scope:activity.special_guest:spouse_2
}
}
scope:activity = {
any_attending_character = {
this = scope:host.faith.religious_head
}
}
}
scope:host.faith.religious_head = { save_scope_as = officiant }
}
else_if = {
limit = {
scope:host != scope:activity.special_guest:spouse_1
}
scope:host = { save_scope_as = officiant }
}
else_if = {
limit = {
scope:host.cp:councillor_court_chaplain ?= {
NOR = {
this = scope:activity.special_guest:spouse_1
this = scope:activity.special_guest:spouse_2
}
}
scope:activity = {
any_attending_character = {
this = scope:host.cp:councillor_court_chaplain
}
}
}
scope:host.cp:councillor_court_chaplain = { save_scope_as = officiant }
}
else_if = {
limit = {
NOT = { scope:host.rite = { rite_has_doctrine = doctrine_theocracy_lay_clergy } }
}
if = {
limit = {
NOT = {
scope:activity = {
any_attending_character = {
is_ai = no
}
}
}
any_pool_character = {
province = scope:activity.activity_location
is_physically_able_ai_adult = yes
faith = scope:host.faith
can_be_clergy_due_to_gender_trigger = yes
}
}
random_pool_character = {
province = scope:activity.activity_location
limit = {
is_physically_able_ai_adult = yes
faith = scope:host.faith
can_be_clergy_due_to_gender_trigger = yes
}
save_scope_as = officiant
}
}
else = {
create_character = {
template = priest_character_template
dynasty = none
location = scope:host.location
save_scope_as = officiant
}
}
}
}
scope:officiant ?= {
add_character_flag = officiant
scope:activity = {
set_variable = {
name = officiant
value = scope:officiant
}
}
}
}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_assign_officiant_effect.
Activities (1)
Scripted effects (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.