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_challenge_hof_war_try_execute_effect

pam_challenge_hof_war_try_execute_effect = { EXECUTIONER = … VICTIM = … }

game/common/scripted_effects/pam_antipope_effects.txt, line 746 (30 lines). Parameters: $EXECUTIONER$, $VICTIM$.

pam_challenge_hof_war_try_execute_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 746 of its file. A call passes 2 parameters: EXECUTIONER and VICTIM. The game's script calls it in 3 places, among them A Sentence for Satan's Soldier (event pam_antipope_events.0012), The Pretender Brought Low (event pam_antipope_events.0010) and The Price of Patronage (event pam_antipope_events.0011). Patch 1.20.1.2, from game/common/scripted_effects/pam_antipope_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 (30 lines of game script)
pam_challenge_hof_war_try_execute_effect = {
	$VICTIM$ = { save_scope_as = pam_ch_hof_victim }
	$EXECUTIONER$ = { save_scope_as = pam_ch_hof_executioner }
	pam_challenge_hof_war_excommunicate_if_possible_effect = { TARGET = scope:pam_ch_hof_victim }
	scope:pam_ch_hof_victim = {
		set_variable = {
			name = pam_ch_hof_fate
			value = flag:executed
			days = 30
		}
		set_variable = {
			name = pam_ch_hof_executioner
			value = scope:pam_ch_hof_executioner
			days = 7
		}
		if = {
			limit = { is_ai = no }
			pam_challenge_hof_war_notify_victim_fate_effect = {
				VICTIM = scope:pam_ch_hof_victim
				JUDGE = scope:pam_ch_hof_executioner
			}
		}
		else = {
			death = {
				killer = scope:pam_ch_hof_executioner
				death_reason = death_execution
			}
		}
	}
}

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

Where it is used

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

Events (3)

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