Scripted effect · By God Alone files
request_legitimacy_interaction_effect
request_legitimacy_interaction_effect = yesgame/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
- Their rite:
If
- Any vassal: Their faith is not the same as that of puppet or actor
Then
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
- Popular Opinion -20
- Where:
- Any held title:
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 }
- Where:
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
scope:donate_faith = yes
Then
pay_short_term_gold = { target = scope:recipient gold = scope:puppet_or_actor.major_gold_value }
If
scope:use_hook = yeshas_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
One of these
character_considered_wicked_trigger = { RITE = scope:recipient.rite }or
scope:recipient:has_relation_rival = scope:puppet_or_actor
or
Tyranny more than 40or
Has the Trait: Excommunicated
Then
scope:recipient:add_piety = { … }- Spiritual fulfillment -20
If
- scope:puppet_or_actor: Has the Trait: Excommunicated
Then
- Spiritual Fulfillment loss is caused by … Excommunicated status
Else if
has_relation_rival = scope:puppet_or_actor
Then
- Spiritual Fulfillment loss is caused by … hatred of …
Else if
- scope:puppet_or_actor: Tyranny more than 40
Then
- Spiritual Fulfillment loss is caused by … Tyranny
Else if
One of these
character_considered_morally_dubious_trigger = { RITE = scope:recipient.rite }or
Tyranny at least 10
Then
scope:recipient:add_piety = { … }- Spiritual fulfillment -5
- … (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)
Events (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.