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_notify_holy_war_instigator_effect_draw

pam_notify_holy_war_instigator_effect_draw = yes

game/common/scripted_effects/pam_effects.txt, line 9795 (33 lines). No parameters.

pam_notify_holy_war_instigator_effect_draw is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 9795 of its file. It takes no parameters: pam_notify_holy_war_instigator_effect_draw = yes. The game's script calls it in 3 places, among them Holy (casus belli), Major Holy (casus belli) and Minor Holy (casus belli). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

What it does

  • If

    • scope:war:
      • Has “holy instigator” (a variable the game's script sets)
      • No war participant:

    Then

    • scope:war › var:holy_instigator: … has failed to conquer …

• 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 (33 lines of game script)
pam_notify_holy_war_instigator_effect_draw = {
	if = {
		limit = {
			scope:war ?= {
				has_variable = holy_instigator
				var:holy_instigator = {
					is_alive = yes
					save_temporary_scope_as = instigator_temp
				}
				NOT = {
					any_war_participant = {
						this = scope:instigator_temp
					}
				}
			}
		}
		every_in_list = {
			list = target_titles
			save_scope_as = target
		}
		scope:war = {
			var:holy_instigator = {
				send_interface_message = {
					type = event_generic_bad
					title = pam_instigated_holy_war_draw.t
					left_icon = scope:attacker
					right_icon = scope:defender
					custom_tooltip = pam_instigated_holy_war_draw_tt
				}
			}
		}
	}
}

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

Where it is used

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

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?