CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · All Under Heaven files

mandala_war_victory_effects

mandala_war_victory_effects = yes

game/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 1165 (17 lines). No parameters.

mandala_war_victory_effects is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1165 of its file. It takes no parameters: mandala_war_victory_effects = yes. The game's script calls it in 66 places, among them …… Ancestral Claim on … (casus belli), Artifact (casus belli) and Azariqa Rebellion (casus belli). Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.

The comment above it in the file

War Effects

What it does

  • scope:attacker:
    • If

      • has_realm_law_flag = piety_devotion_from_offensive_wars

      Then

      • add_piety = { value = medium_piety_value multiply = scope:defender.primary_title.tier }
  • scope:defender:
    • If

      • has_realm_law_flag = piety_devotion_from_defensive_wars

      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 (17 lines of game script)
mandala_war_victory_effects = {
	scope:attacker = {
		if = {
			limit = { has_realm_law_flag = piety_devotion_from_offensive_wars }
			add_piety = {
				value = medium_piety_value
				multiply = scope:defender.primary_title.tier
			}
		}
	}
	scope:defender = {
		if = {
			limit = { has_realm_law_flag = piety_devotion_from_defensive_wars }
			add_piety_experience = medium_piety_loss
		}
	}	
}

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

Where it is used

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

Source: game/common/scripted_effects/tgp_mandala_scripted_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?