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_claim_war_instigator_effect_loss

pam_notify_claim_war_instigator_effect_loss = yes

game/common/scripted_effects/pam_effects.txt, line 10973 (52 lines). No parameters.

pam_notify_claim_war_instigator_effect_loss is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 10973 of its file. It takes no parameters: pam_notify_claim_war_instigator_effect_loss = yes. The game's script calls it in 1 place, among them Claim (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 “claim instigator” (a variable the game's script sets)
      • One of these

        • Has “claim joiner” (a variable the game's script sets)
        • or

          None of these

          • Any war participant:
            • this = scope:instigator_temp

    Then

    • scope:war:
      • If has “claim joiner” (a variable the game's script sets) › var:claim_joiner: Level of Fame -2
      • Otherwise › var:claim_instigator: … has been defeated by …

• 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 (52 lines of game script)
pam_notify_claim_war_instigator_effect_loss = {
	if = {
		limit = {
			scope:war ?= {
				has_variable = claim_instigator
				var:claim_instigator = {
					is_alive = yes
					save_temporary_scope_as = instigator_temp
				}
				OR = {
					has_variable = claim_joiner
					NOT = {
						any_war_participant = {
							this = scope:instigator_temp
						}
					}
				}
			}
		}
		every_in_list = {
			list = target_titles
			save_scope_as = target
		}
		scope:war = {
			if = {
				limit = {
					has_variable = claim_joiner
				}
				var:claim_joiner = {
					send_interface_message = {
						type = event_generic_bad
						title = pam_instigated_claim_war_lost.t
						left_icon = scope:attacker
						right_icon = scope:defender
						add_prestige_level = -2
					}
				}
			}
			else = {
				var:claim_instigator = {
					send_interface_message = {
						type = event_generic_bad
						title = pam_instigated_claim_war_lost.t
						left_icon = scope:attacker
						right_icon = scope:defender
						custom_tooltip = pam_instigated_claim_war_lost_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_claim_war_instigator_effect_loss.

Casus belli (1)

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?