Scripted trigger
potential_abbot_trigger
potential_abbot_trigger = yesgame/common/scripted_triggers/00_religious_triggers.txt, line 2311 (48 lines). No parameters.
potential_abbot_trigger is a scripted trigger in Crusader Kings III, written at line 2311 of its file. It takes no parameters: potential_abbot_trigger = yes (or no). The game's script calls it in 2 places, among them The Building of a Monastery (event holy_order.2009) and grab_best_monk_for_tenet_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.
What it checks
- Has the Trait: Monk
- Is an Adult
- Their faith is the same as yours
rite = root.ritebasic_is_available_ai = yesNOT = { has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:founder } }If
a check the game hides
Then
One of these
All of these
is_female = yes- scope:leader.primary_title: Does not have “male order” (a variable the game's script sets)
or
All of these
is_female = no- scope:leader.primary_title: Does not have “female order” (a variable the game's script sets)
If
a check the game hides
Then
One of these
- Any personal tenet:
this = scope:monk_grabbin_tenet
or
Any desired tenet:selection_count = 97only_positive = yesthreshold = 1this = scope:monk_grabbin_tenet
- Any personal tenet:
• 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 (48 lines of game script)
potential_abbot_trigger = {
has_trait = devoted
is_adult = yes
faith = root.faith
rite = root.rite
NOT = {
is_in_list = grabbed_monks
}
basic_is_available_ai = yes
NOT = {
has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:founder }
}
trigger_if = {
limit = {
exists = scope:leader.primary_title
}
OR = {
AND = {
is_female = yes
scope:leader.primary_title = {
NOT = { has_variable = male_order }
}
}
AND = {
is_female = no
scope:leader.primary_title = {
NOT = { has_variable = female_order }
}
}
}
}
trigger_if = {
limit = {
exists = scope:monk_grabbin_tenet
}
OR = {
any_personal_tenet = {
this = scope:monk_grabbin_tenet
}
any_desired_tenet = {
selection_count = 97
only_positive = yes
threshold = 1
this = scope:monk_grabbin_tenet
}
}
}
}As written in game/common/scripted_triggers/00_religious_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls potential_abbot_trigger.
Events (1)
- The Building of a Monastery
holy_order.2009
Scripted effects (1)
Source: game/common/scripted_triggers/00_religious_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.