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_holy_myron_consume_charge_effect

pam_holy_myron_consume_charge_effect = { ARTIFACT = … }

game/common/scripted_effects/pam_effects.txt, line 14480 (40 lines). Parameters: $ARTIFACT$.

pam_holy_myron_consume_charge_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 14480 of its file. A call passes 1 parameter: ARTIFACT. The game's script calls it in 5 places, among them Anoint an Artifact with Holy Myron (decision), Gift the Holy Myron (interaction) and A Final Anointing (event pam_holy_myron.0200). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

The comment above it in the file

$ARTIFACT$ = the ampulla
trigger_event with no delay runs after this script, so destroy (0002) never leaves a live empty vessel

What it does

  • If

    a check the game hides

    Then

    • If

      • $ARTIFACT$ = { var:pam_holy_myron_charges <= 0 }

      Then

      • $ARTIFACT$.artifact_owner ?= { trigger_event = pam_holy_myron.0002 }

      Otherwise

      • $ARTIFACT$ = { … }

• 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_holy_myron_consume_charge_effect = {
	if = {
		limit = { exists = $ARTIFACT$ }
		$ARTIFACT$ = {
			change_variable = {
				name = pam_holy_myron_charges
				subtract = 1
			}
		}
		if = {
			limit = {
				$ARTIFACT$ = { var:pam_holy_myron_charges <= 0 }
			}
			$ARTIFACT$ = { save_scope_as = pam_holy_myron_spent_vessel }
			$ARTIFACT$.artifact_owner ?= {
				trigger_event = pam_holy_myron.0002
			}
		}
		else = {
			$ARTIFACT$ = {
				save_scope_as = pam_myron_vessel
				if = {
					limit = { rarity = masterwork }
					set_artifact_description = pam_holy_myron_artifact_desc_charged_masterwork
				}
				else_if = {
					limit = { rarity = famed }
					set_artifact_description = pam_holy_myron_artifact_desc_charged_famed
				}
				else_if = {
					limit = { rarity = illustrious }
					set_artifact_description = pam_holy_myron_artifact_desc_charged_illustrious
				}
				else = {
					set_artifact_description = pam_holy_myron_artifact_desc_charged_common
				}
			}
		}
	}
}

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

Where it is used

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

Character interactions (1)

Events (3)

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?