CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger · By God Alone files

monastic_lease_can_be_suborned_trigger

monastic_lease_can_be_suborned_trigger = { ORDER = … }

game/common/scripted_triggers/pam_scripted_triggers.txt, line 5165 (102 lines). Parameters: $ORDER$.

monastic_lease_can_be_suborned_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 5165 of its file. A call passes 1 parameter: ORDER. The game's script calls it in 3 places, among them yearly_holy_order_pulse (on action), monastic_lease_swapping_effect (scripted effect) and monastic_order_movement_prestige_value (script value). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.

What it checks

  • barony.lessee = { save_temporary_scope_as = lessee }
  • If

    • Their county’s holder: Is played by a person

    Then

    • Their county’s holder:
      • NOT = { scope:lessee.puppeteer ?= this }
    • NOT = { county = scope:lessee.capital_county }
  • One of these

    • Their county’s holder:
      • One of these

        • All of these

          • exists = $ORDER$.leader.puppeteer
          • this = $ORDER$.leader.puppeteer
        • or

          All of these

          • exists = $ORDER$.holy_order_patron
          • this = $ORDER$.holy_order_patron
          • rite = $ORDER$.leader.rite
    • or

      Their county’s clerical region’s holder’s rite:
      • this = $ORDER$.leader.rite
      • NOT = { this = scope:lessee.rite }
    • or

      Their county’s clerical region’s holder:
      • One of these

        • All of these

          • exists = $ORDER$.leader.puppeteer
          • this = $ORDER$.leader.puppeteer
        • or

          All of these

          • exists = $ORDER$.holy_order_patron
          • this = $ORDER$.holy_order_patron
          • rite = $ORDER$.leader.rite
    • or

      Their county’s clerical region’s holder:
      • rite = $ORDER$.leader.rite
      • Any personal tenet:
        • this = $ORDER$.order_tenet
      • None of these

        • Any personal tenet:
          • this = scope:lessee.holy_order.order_tenet
      • One of these

        • Piety level at least 4
        • or

          Learning at least 20
        • or

          Has the Trait: Theologian
    • or

      All of these

      • exists = scope:lessee.holy_order.order_tenet
      • Their county’s holder:
        • rite = $ORDER$.leader.rite
        • Any personal tenet:
          • this = $ORDER$.order_tenet
        • None of these

          • Any personal tenet:
            • this = scope:lessee.holy_order.order_tenet
    • or

      Their county’s holder’s rite:
      • this = $ORDER$.leader.rite
      • NOT = { scope:lessee.rite ?= this }
  • $ORDER$ = { … }

• 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 (102 lines of game script)
monastic_lease_can_be_suborned_trigger = {
	barony.lessee = {
		save_temporary_scope_as = lessee
	}
	trigger_if = {
		limit = {
			county.holder ?= {
				is_ai = no
			}
		}
		county.holder = {
			NAND = {
				this = $ORDER$.holy_order_patron
				this = scope:lessee.holy_order.holy_order_patron
			}
			NOT = {
				scope:lessee.puppeteer ?= this
			}
		}
		NOT = {
			county = scope:lessee.capital_county
		}
	}
	OR = {
		county.holder ?= {
			OR = {
				AND = {
					exists = $ORDER$.leader.puppeteer
					this = $ORDER$.leader.puppeteer
				}
				AND = {
					exists = $ORDER$.holy_order_patron
					this = $ORDER$.holy_order_patron
					rite = $ORDER$.leader.rite
				}
			}
		}
		county.clerical_region_title.holder.rite ?= {
			this = $ORDER$.leader.rite
			NOT = {
				this = scope:lessee.rite
			}
		}
		county.clerical_region_title.holder ?= {
			OR = {
				AND = {
					exists = $ORDER$.leader.puppeteer
					this = $ORDER$.leader.puppeteer
				}
				AND = {
					exists = $ORDER$.holy_order_patron
					this = $ORDER$.holy_order_patron
					rite = $ORDER$.leader.rite
				}
			}
		}
		county.clerical_region_title.holder ?= {
			rite = $ORDER$.leader.rite
			any_personal_tenet = {
				this = $ORDER$.order_tenet
			}
			NOT = {
				any_personal_tenet = {
					this = scope:lessee.holy_order.order_tenet
				}
			}
			OR = {
				piety_level >= 4
				learning >= extremely_high_skill_rating
				has_trait = theologian
			}
		}
		AND = {
			exists = scope:lessee.holy_order.order_tenet
			county.holder ?= {
				rite = $ORDER$.leader.rite
				any_personal_tenet = {
					this = $ORDER$.order_tenet
				}
				NOT = {
					any_personal_tenet = {
						this = scope:lessee.holy_order.order_tenet
					}
				}
			}
		}
		AND = {
			county.holder.rite ?= {
				this = $ORDER$.leader.rite
				NOT = {
					scope:lessee.rite ?= this
				}
			}
		}
	}
	county.kingdom ?= { save_temporary_scope_as = target_kingdom }
	$ORDER$ = {
		any_leased_title = {
			kingdom ?= scope:target_kingdom
		}
	}
}

As written in game/common/scripted_triggers/pam_scripted_triggers.txt.

Where it is used

Every place in common/, events/ and history/ that calls monastic_lease_can_be_suborned_trigger.

On actions (the game's own hooks) (1)

  • yearly_holy_order_pulse

Scripted effects (1)

Script values (1)

  • monastic_order_movement_prestige_value

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.

Spotted a mistake on this page?