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

Scripted effect · By God Alone files

request_legitimacy_interaction_effect

request_legitimacy_interaction_effect = yes

game/common/scripted_effects/pam_effects.txt, line 2283 (354 lines). No parameters.

request_legitimacy_interaction_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 2283 of its file. It takes no parameters: request_legitimacy_interaction_effect = yes. The game's script calls it in 2 places, among them Preach My Legitimacy (interaction) and pam_interactions_events.0001 (event). Its body carries 7 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

What it does

  • add_legitimacy = { … }
  • If

    • Their rite:
      • has_tenet_status = { tenet = tenet_simony status = prohibited }

    Then

    • Spiritual fulfillment -5
  • If

    • Any vassal: Their faith is not the same as that of puppet or actor

    Then

    • Every Vassal whose Faith considers yours Astray or worse:
      • Where:
        • Their faith is not the same as that of puppet or actor
        • Their faith:
          • faith_hostility_level = { target = scope:puppet_or_actor.faith value >= faith_astray_level }
      • Opinion: Rules by Heathen Right (-20)
  • If

    • Any held title:
      • Title tier exactly County
      • Their faith is not the same as that of puppet or actor
      • Their faith:
        • faith_hostility_level = { target = scope:puppet_or_actor.faith value >= faith_astray_level }

    Then

    • Every Domain County where your Faith is considered Astray or worse:
      • Where:
        • Title tier exactly County
        • Their faith is not the same as that of puppet or actor
        • Their faith:
          • faith_hostility_level = { target = scope:puppet_or_actor.faith value >= faith_astray_level }
      • The county gains the modifier “Heathens Preaching Legitimacy” for 5 years
  • If

    • scope:monastic_support = yes

    Then

    • Every patroned holy order:
      • Where:
        • leader = { government_has_flag = government_is_monastic_holy_order }
      • scope:puppet_or_actor:
        • pay_short_term_gold = { target = prev.leader gold = minor_gold_value }
  • If

    • scope:tithe = yes

    Then

    • scope:recipient:
      • add_gold = { … }
    • Every Domain County with 1 or more Development:
      • If

        • scope:recipient.culture:
          • has_cultural_era_or_later = culture_era_late_medieval

        Then

        • change_development_progress = massive_development_progress_loss

        Else if

        • scope:recipient.culture:
          • has_cultural_era_or_later = culture_era_high_medieval

        Then

        • change_development_progress = major_development_progress_loss

        Otherwise

        • change_development_progress = medium_development_progress_loss
    • If

      • Any vassal:
        • has_vassal_stance = barons_and_minor_landholders

      Then

      • Every Minor Landholder Vassal:
        • Where:
          • has_vassal_stance = barons_and_minor_landholders
        • Opinion: Tithed (-25)
      • Baron-Tier Vassals lose some Gold
  • If

    • scope:donate_faith = yes

    Then

    • pay_short_term_gold = { target = scope:recipient gold = scope:puppet_or_actor.major_gold_value }
  • If

    • scope:use_hook = yes
    • has_usable_hook = scope:recipient

    Then

    • use_hook = scope:recipient
  • If

    • scope:offer_hook = yes

    Then

    • scope:recipient:
      • add_hook = { type = favor_hook target = scope:puppet_or_actor }
  • If played by the AI: Opinion: Grateful (+30)
  • pam_offer_pilgrimage_effect = { ACTOR = scope:puppet_or_actor CLERIC = scope:recipient }
  • If

    Then

    Else if

    Then

    • scope:recipient:
      • add_piety = { … }
      • Spiritual fulfillment -5
      • If

        • scope:puppet_or_actor: Tyranny at least 10

        Then

      • … (more in the script below)
  • … (more in the script below)

• 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 (120 lines of game script)
request_legitimacy_interaction_effect = {
	add_legitimacy = {
		value = medium_legitimacy_gain
		multiply = 1.5
		if = {
			limit = {
				scope:monastic_support = yes
			}
			scope:puppet_or_actor = {
				every_patroned_holy_order = {
					limit = {
						leader = {
							government_has_flag = government_is_monastic_holy_order
						}
					}
					add = minor_legitimacy_gain
				}
			}
		}
		if = {
			limit = {
				scope:puppet_or_actor ?= {
					has_personal_tenet_flag = tenet_apostolic_succession_papal_legitimacy
					faith.religious_head ?= scope:recipient
				}
			}
			add = medium_legitimacy_gain
		}
		max = massive_legitimacy_gain
	}
	if = {
		limit = {
			rite = {
				has_tenet_status = {
					tenet = tenet_simony
					status = prohibited
				}
			}
		}
		change_spiritual_fulfillment = medium_spiritual_fulfillment_loss
	}
	if = {
		limit = {
			any_vassal = {
				NOT = {
					faith = scope:puppet_or_actor.faith
				}
			}
		}
		every_vassal = {
			custom = custom.every_astray_faith_vassal
			limit = {
				NOT = {
					faith = scope:puppet_or_actor.faith
				}
				faith = {
					faith_hostility_level = {
						target = scope:puppet_or_actor.faith
						value >= faith_astray_level
					}
				}
			}
			add_opinion = {
				target = scope:puppet_or_actor
				modifier = heathen_mandate_opinion
				opinion = -20
			}
		}
	}
	if = {
		limit = {
			any_held_title = {
				tier = tier_county
				NOT = {
					faith = scope:puppet_or_actor.faith
				}
				faith = {
					faith_hostility_level = {
						target = scope:puppet_or_actor.faith
						value >= faith_astray_level
					}
				}
			}
		}
		every_held_title = {
			custom = custom.every_astray_faith_domain_county
			limit = {
				tier = tier_county
				NOT = {
					faith = scope:puppet_or_actor.faith
				}
				faith = {
					faith_hostility_level = {
						target = scope:puppet_or_actor.faith
						value >= faith_astray_level
					}
				}
			}
			add_county_modifier = {
				modifier = heathen_mandate_modifier
				years = 5
			}
		}
	}
	if = {
		limit = {
			scope:monastic_support = yes
		}
		every_patroned_holy_order = {
			limit = {
				leader = {
					government_has_flag = government_is_monastic_holy_order
				}
			}
			scope:puppet_or_actor = {
				pay_short_term_gold = {
					target = prev.leader
					gold = minor_gold_value
				}
			}

As written in game/common/scripted_effects/pam_effects.txt.

The first 120 of its 354 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 2283.

Where it is used

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

Character interactions (1)

Source: game/common/scripted_effects/pam_effects.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?