Scripted effect · By God Alone files
pam_choose_cardinal_order_switch_scripted_effect
pam_choose_cardinal_order_switch_scripted_effect = yesgame/common/scripted_effects/pam_effects.txt, line 1961 (207 lines). No parameters.
pam_choose_cardinal_order_switch_scripted_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 1961 of its file. It takes no parameters: pam_choose_cardinal_order_switch_scripted_effect = yes. The game's script calls it in 3 places, among them Give Cardinal Order (interaction), The Will of the … (event pam_clergy_events.0010) and pam_cardinal_order_accept_notify_players_effect (scripted effect). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
The flag is set in give_cardinal_order_interaction this provides the appropriate event option to accept or deny, along with communicating to players (via toast) who rule the county(s) affected by the below modifiers that a change has taken place
What it does
- Depending on yes:
- When yes is scope:cardinal improve development › Their capital county’s clerical region › Every County in … controlled by a ⟨faith⟩ Ruler:
- Where: Their faith is the same as that of recipient
- The county gains the modifier “Improve Development Cardinal Order” for 10 years
- Development Growth +0.2/month
- Temple Buildings Construction Cost -10%
- Temple Buildings Construction Time -10%
- When yes is scope:cardinal convert faith › Their capital county › Their clerical region:
- Every County in … controlled by a ⟨faith⟩ Ruler:
- Where:
pam_cardinal_order_convert_faith_in_region_county_trigger = { CARDINAL = scope:recipient }
- The county gains the modifier “Convert Faith Cardinal Order” for 10 years
- Where:
If
- Any county in clerical region › Any neighboring county:
pam_cardinal_order_convert_faith_neighboring_county_trigger = { CARDINAL = scope:recipient }
Then
- Any county in clerical region › Any neighboring county:
- Every County in … controlled by a ⟨faith⟩ Ruler:
- When yes is scope:cardinal increase control › Their capital county’s clerical region › Every County in … controlled by a ⟨faith⟩ Ruler:
- Where:
holder.top_liege.faith = scope:recipient.faith
- The county gains the modifier “Increase County Control Cardinal Order” for 10 years
- Monthly county control growth +0.5/month
- Where:
- When yes is scope:cardinal accelerate cultural fascination › scope:puppet_or_actor.culture.culture_head:
- Your Culture Head will accelerate their Cultural Fascination progress
- Gains the modifier “Accelerate Cultural Fascination Order” for 10 years
- Cultural head fascination +5%
- When yes is scope:cardinal improve epidemic resistance › Their capital county’s clerical region › Every County in … controlled by a ⟨faith⟩ Ruler:
- Where:
- The county does not have the modifier “Improve Plague Resistance Cardinal Order”
- Their faith is the same as that of recipient
- The county gains the modifier “Improve Plague Resistance Cardinal Order” for 10 years
- Where:
- When yes is scope:cardinal improve legitimacy › Their capital county’s clerical region › Every ⟨faith⟩ Ruler in …:
- Where › Their holder’s top liege:
- Has Legitimacy
- Does not have the Modifier: Improve Legitimacy Cardinal Order
- Their faith is the same as that of recipient
- Their holder’s top liege:
- Gains the modifier “Improve Legitimacy Cardinal Order” for 10 years
- Legitimacy Gain +15%
- Monthly Diplomacy Lifestyle Experience +20%
- Zealot Vassal Opinion +10
- Gains the modifier “Improve Legitimacy Cardinal Order” for 10 years
- Where › Their holder’s top liege:
- When yes is scope:cardinal undermine legitimacy › Their capital county’s clerical region › Every ⟨faith⟩ Ruler in …:
- Where › Their holder’s top liege:
- Has Legitimacy
- Does not have the Modifier: Undermine Legitimacy Cardinal Order
- Their faith is the same as that of recipient
- Their holder’s top liege:
- Gains the modifier “Undermine Legitimacy Cardinal Order” for 10 years
- Legitimacy Gain -15%
- Zealot Vassal Opinion -10
- Gains the modifier “Undermine Legitimacy Cardinal Order” for 10 years
- Where › Their holder’s top liege:
- When yes is scope:cardinal improve development › Their capital county’s clerical region › Every County in … controlled by a ⟨faith⟩ Ruler:
• 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)
pam_choose_cardinal_order_switch_scripted_effect = {
switch = {
trigger = yes
scope:cardinal_improve_development ?= {
capital_county.clerical_region_title = {
every_county_in_clerical_region = {
custom = cardinal_order_improve_development
limit = {
faith = scope:recipient.faith
}
add_county_modifier = {
modifier = pam_cardinal_order_improve_development_modifier
years = 10
}
holder = {
if = {
limit = {
is_ai = no
}
add_to_list = county_holders
}
}
}
}
}
scope:cardinal_convert_faith ?= {
capital_county ?= {
clerical_region_title ?= {
every_county_in_clerical_region = {
custom = cardinal_order_convert_faith
limit = {
pam_cardinal_order_convert_faith_in_region_county_trigger = { CARDINAL = scope:recipient }
}
add_county_modifier = {
modifier = pam_cardinal_order_convert_faith_modifier
years = 10
}
holder = {
if = {
limit = {
is_ai = no
}
add_to_list = county_holders
}
}
}
if = {
limit = {
any_county_in_clerical_region = {
any_neighboring_county = {
pam_cardinal_order_convert_faith_neighboring_county_trigger = { CARDINAL = scope:recipient }
}
}
}
custom_tooltip = {
text = cardinal_order_convert_faith_neighboring
every_county_in_clerical_region = {
every_neighboring_county = {
limit = {
pam_cardinal_order_convert_faith_neighboring_county_trigger = { CARDINAL = scope:recipient }
NOT = { has_county_modifier = pam_cardinal_order_convert_faith_modifier }
}
add_county_modifier = {
modifier = pam_cardinal_order_convert_faith_modifier
years = 10
}
holder = {
if = {
limit = {
is_ai = no
}
add_to_list = county_holders
}
}
}
}
}
}
}
}
}
scope:cardinal_increase_control ?= {
capital_county.clerical_region_title = {
every_county_in_clerical_region = {
custom = cardinal_order_increase_control
limit = {
holder.top_liege.faith = scope:recipient.faith
}
add_county_modifier = {
modifier = pam_cardinal_order_increase_control_modifier
years = 10
}
holder = {
if = {
limit = {
is_ai = no
}
add_to_list = county_holders
}
}
}
}
}
scope:cardinal_accelerate_cultural_fascination ?= {
scope:puppet_or_actor.culture.culture_head = {
custom_tooltip = cardinal_order_accelerate_cultural_fascination
add_character_modifier = {
modifier = pam_cardinal_order_accelerate_cultural_fascination_modifier
years = 10
}
if = {
limit = {
is_ai = no
}
add_to_list = county_holders
}
}As written in game/common/scripted_effects/pam_effects.txt.
The first 120 of its 207 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 1961.
Where it is used
Every place in common/, events/ and history/ that calls pam_choose_cardinal_order_switch_scripted_effect.
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.