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

pam_choose_cardinal_order_switch_scripted_effect

pam_choose_cardinal_order_switch_scripted_effect = yes

game/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

• 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.

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.

Spotted a mistake on this page?