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_react_to_new_pope_effect

pam_react_to_new_pope_effect = yes

game/common/scripted_effects/pam_effects.txt, line 8517 (40 lines). No parameters.

pam_react_to_new_pope_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 8517 of its file. It takes no parameters: pam_react_to_new_pope_effect = yes. The game's script calls it in 1 place, among them on_title_gain (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

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 (40 lines of game script)
pam_react_to_new_pope_effect = {
	if = {
		limit = {
			has_pam_dlc_trigger = yes
			current_date_is_start_date_trigger = no
			is_alive = yes
			is_ruler = yes
		}
		save_scope_as = new_pope
		faith = {
			every_faith_character = {
				limit = {
					is_ruler = yes
					this != scope:new_pope
				}
				hidden_effect = { remove_character_modifier = pam_denied_new_pope_modifier }
				if = {
					limit = { has_variable = pam_new_pope_events_as_feed_message }
					send_interface_message = {
						type = msg_pam_new_pope_elected
						title = {
							first_valid = {
								triggered_desc = {
									trigger = { scope:new_pope = { is_female = yes } }
									desc = pam_clergy_events.0030.t.female
								}
								desc = pam_clergy_events.0030.t
							}
						}
						desc = pam_clergy_events.0030.feed
						left_icon = scope:new_pope
					}
				}
				else = {
					trigger_event = pam_clergy_events.0030
				}
			}
		}
	}
}

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

Where it is used

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

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

  • on_title_gain

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?