Scripted trigger · By God Alone files
piety_support_trigger
piety_support_trigger = yesgame/common/scripted_triggers/pam_scripted_triggers.txt, line 6403 (59 lines). No parameters.
piety_support_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 6403 of its file. It takes no parameters: piety_support_trigger = yes (or no). The game's script calls it in 3 places, among them Puppet Clerical Ruler (interaction), Puppet Realm Priest (interaction) and Puppet Secular Ruler (interaction). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.
What it checks
- If played by the AI:
- Ai zeal at least 0
- Ai boldness at least -20
- Does not have the Trait: Excommunicated
rite = scope:recipient.rite- Your Level of Devotion must be at least as high as …
One of these
- Has the Trait: Venerated Ancestor
or
Has the Trait: Heraldor
Has the Trait: Saoshyantor
Has the Trait: Paragonor
Has the Trait: The Savioror
Has the Trait: Holy Monarchor
Has the Trait: Divine Bloodor
Has the Trait: Warrior of the Faithor
Has the Trait: Theologianor
Has the Trait: Zealousor
You are the Head of Faithor
You have at least 50 Pilgrim Trait Experienceor
You have at least 50 Religious Scholar Trait Experience
- scope:recipient: Does not have the Trait: Cynical
• 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 (59 lines of game script)
piety_support_trigger = {
#AI precautions
trigger_if = {
limit = {
is_ai = yes
}
ai_zeal >= 0
ai_boldness >= low_negative_ai_value
}
NOT = {
has_trait = excommunicated
}
rite = scope:recipient.rite
custom_tooltip = {
text = comparable_piety_to_recipient_req_tt
piety_level >= scope:recipient.piety_level
}
OR = {
has_trait = saint
has_trait = herald
has_trait = saoshyant
has_trait = paragon
has_trait = savior
has_trait = crusader_king
has_trait = divine_blood
has_trait = faith_warrior
has_trait = theologian
has_trait = zealous
custom_tooltip = {
text = you_are_head_of_faith_req_tt
trigger_if = {
limit = { exists = scope:recipient.faith.religious_head }
this = scope:recipient.faith.religious_head
}
}
custom_tooltip = {
text = pilgrim_xp_req_tt
has_trait = pilgrim
has_trait_xp = {
trait = pilgrim
value >= 50
}
}
custom_tooltip = {
text = scholar_xp_req_tt
has_trait = lifestyle_scholar
has_trait_xp = {
trait = lifestyle_scholar
value >= 50
}
}
}
scope:recipient = {
NOT = {
has_trait = cynical
}
}
}As written in game/common/scripted_triggers/pam_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls piety_support_trigger.
Character interactions (3)
Source: game/common/scripted_triggers/pam_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.