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_win

pam_notify_claim_war_instigator_effect_win = yes

game/common/scripted_effects/pam_effects.txt, line 10890 (47 lines). No parameters.

pam_notify_claim_war_instigator_effect_win is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 10890 of its file. It takes no parameters: pam_notify_claim_war_instigator_effect_win = 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 › var:claim_instigator:
      • If played by a person: Gain … Prestige
      • … has taken …

• 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 (47 lines of game script)
pam_notify_claim_war_instigator_effect_win = {
	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 = {
			var:claim_instigator = {
				send_interface_message = {
					type = event_generic_good
					title = pam_instigated_claim_war_won.t
					left_icon = scope:attacker
					right_icon = scope:defender
					if = {
						limit = {
							is_ai = no
						}
						add_prestige = pam_holy_war_inciter_prestige_value
					}
					else = {
						hidden_effect = {
							add_prestige = pam_holy_war_inciter_prestige_value
						}
					}
					custom_tooltip = pam_instigated_claim_war_won_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_win.

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?