Scripted trigger
barony_is_valid_for_holy_order_lease_cancellation_trigger
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = … }game/common/scripted_triggers/00_religious_triggers.txt, line 1086 (26 lines). Parameters: $ACTOR$.
barony_is_valid_for_holy_order_lease_cancellation_trigger is a scripted trigger in Crusader Kings III, written at line 1086 of its file. A call passes 1 parameter: ACTOR. The game's script calls it in 2 places, among them Revoke Order Lease (decision) and Revoke Lease (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.
What it checks
is_under_holy_order_lease = yeshas_revokable_lease = yeslessee = { … }If
lessee.faith != $ACTOR$.faith
Then
- Their holder:
None of these
- Any liege or above:
NOT = { this = $ACTOR$ }is_vassal_or_below_of = $ACTOR$faith = scope:valid_baron.lessee.faithvassal_contract_has_flag = religiously_protected
- Any liege or above:
• 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 (26 lines of game script)
barony_is_valid_for_holy_order_lease_cancellation_trigger = {
is_under_holy_order_lease = yes
has_revokable_lease = yes
lessee = {
NOT = {
has_strong_hook = prev.holder
}
}
trigger_if = {
limit = { lessee.faith != $ACTOR$.faith }
# can not revoke holy order under religious protection
save_temporary_scope_as = valid_baron
holder = {
NOT = {
any_liege_or_above = {
NOT = {
this = $ACTOR$
}
is_vassal_or_below_of = $ACTOR$
faith = scope:valid_baron.lessee.faith
vassal_contract_has_flag = religiously_protected
}
}
}
}
}As written in game/common/scripted_triggers/00_religious_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls barony_is_valid_for_holy_order_lease_cancellation_trigger.
Decisions (1)
Character interactions (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.