Scripted trigger
can_be_granted_theocratic_titles_by
can_be_granted_theocratic_titles_by = { RULER = … }game/common/scripted_triggers/00_scripted_triggers.txt, line 368 (17 lines). Parameters: $RULER$.
can_be_granted_theocratic_titles_by is a scripted trigger in Crusader Kings III, written at line 368 of its file. A call passes 1 parameter: RULER. The game's script calls it in 6 places, among them Designate Theocratic Heir (interaction), Grant Titles (interaction) and Support Candidacy (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/00_scripted_triggers.txt.
What it checks
If
$RULER$.rite = { rite_has_doctrine = doctrine_clerical_gender_female_only }
Then
is_female = yes
Else if
$RULER$.rite = { rite_has_doctrine = doctrine_clerical_gender_male_only }
Then
is_male = yes
Otherwise
always = yes
• 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 (17 lines of game script)
can_be_granted_theocratic_titles_by = { #This is set up with trigger-ifs to allow for nice tooltip printouts in grant title interaction
save_temporary_scope_as = title_grantee
#Gender check
trigger_if = {
limit = {
$RULER$.rite = { rite_has_doctrine = doctrine_clerical_gender_female_only }
}
is_female = yes
}
trigger_else_if = {
limit = {
$RULER$.rite = { rite_has_doctrine = doctrine_clerical_gender_male_only }
}
is_male = yes
}
trigger_else = { always = yes }
}As written in game/common/scripted_triggers/00_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls can_be_granted_theocratic_titles_by.
Character interactions (3)
Scripted triggers (2)
Scripted rules (1)
- allowed_to_be_granted_titles_by
Source: game/common/scripted_triggers/00_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.