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_miles_christi_holy_weapon_gain_victory_effect

pam_miles_christi_holy_weapon_gain_victory_effect = yes

game/common/scripted_effects/pam_effects.txt, line 354 (63 lines). No parameters.

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

The comment above it in the file

Artifact scope. Tallies one holy victory and steps up the blessing when a threshold is crossed.

What it does

  • If

    • Does not have “holy weapon blessing var” (a variable the game's script sets)
    • Holy weapon victories var at least 5

    Then

    Else if

    • Has “holy weapon blessing var” (a variable the game's script sets)
    • Holy weapon blessing var is 1
    • Holy weapon victories var at least 15

    Then

    Else if

    • Has “holy weapon blessing var” (a variable the game's script sets)
    • Holy weapon blessing var is 2
    • Holy weapon victories var at least 30

    Then

    Else if

    • Has “holy weapon blessing var” (a variable the game's script sets)
    • Holy weapon blessing var is 3
    • Holy weapon victories var at least 50

    Then

• 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 (63 lines of game script)
pam_miles_christi_holy_weapon_gain_victory_effect = {
	if = {
		limit = { NOT = { has_variable = pam_holy_weapon_victories_var } }
		set_variable = {
			name = pam_holy_weapon_victories_var
			value = 1
		}
	}
	else = {
		change_variable = {
			name = pam_holy_weapon_victories_var
			add = 1
		}
	}

	if = {
		limit = {
			NOT = { has_variable = pam_holy_weapon_blessing_var }
			var:pam_holy_weapon_victories_var >= 5
		}
		set_variable = {
			name = pam_holy_weapon_blessing_var
			value = 1
		}
		pam_miles_christi_holy_weapon_blessing_effect = { MODIFIER = pam_holy_weapon_1_artifact_modifier }
	}
	else_if = {
		limit = {
			has_variable = pam_holy_weapon_blessing_var
			var:pam_holy_weapon_blessing_var = 1
			var:pam_holy_weapon_victories_var >= 15
		}
		change_variable = {
			name = pam_holy_weapon_blessing_var
			add = 1
		}
		pam_miles_christi_holy_weapon_blessing_effect = { MODIFIER = pam_holy_weapon_2_artifact_modifier }
	}
	else_if = {
		limit = {
			has_variable = pam_holy_weapon_blessing_var
			var:pam_holy_weapon_blessing_var = 2
			var:pam_holy_weapon_victories_var >= 30
		}
		change_variable = {
			name = pam_holy_weapon_blessing_var
			add = 1
		}
		pam_miles_christi_holy_weapon_blessing_effect = { MODIFIER = pam_holy_weapon_3_artifact_modifier }
	}
	else_if = {
		limit = {
			has_variable = pam_holy_weapon_blessing_var
			var:pam_holy_weapon_blessing_var = 3
			var:pam_holy_weapon_victories_var >= 50
		}
		change_variable = {
			name = pam_holy_weapon_blessing_var
			add = 1
		}
		pam_miles_christi_holy_weapon_blessing_effect = { MODIFIER = pam_holy_weapon_4_artifact_modifier }
	}
}

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

Where it is used

Every place in common/, events/ and history/ that calls pam_miles_christi_holy_weapon_gain_victory_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.

Spotted a mistake on this page?