Scripted effect · All Under Heaven files
mandala_war_defeat_effects
mandala_war_defeat_effects = yesgame/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 1183 (17 lines). No parameters.
mandala_war_defeat_effects is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1183 of its file. It takes no parameters: mandala_war_defeat_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.
What it does
scope:attacker:scope:defender:If
has_realm_law_flag = piety_devotion_from_defensive_wars
Then
add_piety_experience = { value = minor_piety_value multiply = scope:defender.primary_title.tier }
• 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_defeat_effects = {
scope:attacker = {
if = {
limit = { has_realm_law_flag = piety_devotion_from_offensive_wars }
add_piety_experience = medium_piety_loss
}
}
scope:defender = {
if = {
limit = { has_realm_law_flag = piety_devotion_from_defensive_wars }
add_piety_experience = {
value = minor_piety_value
multiply = scope:defender.primary_title.tier
}
}
}
}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_defeat_effects.
Casus belli (66)
- …… Ancestral Claim on …
- Artifact
- Azariqa Rebellion
- Border Raid
- Bring Under Tribute
- Ceremonial Claimant Faction
60 more
- Claim
- Claimant Faction
- Clan Invasion
- County Conquest
- Crusader War for Imperial Claim
- De Jure
- Demand Fealty
- Depose
- Diarch Seizure
- Dismantle Pretender
- Dismantle Pretender
- Dissolution Faction
- Ducal Conquest
- Duchy Conquest
- Excommunication
- Great Holy War
- Great Holy War
- Holy
- Holy Relic Reclamation
- Iberian Reclamation
- Imperial Policy Faction
- Imperial Reconquest
- Independence Faction
- Independence War
- Individual De Jure County
- Individual De Jure Duchy
- Install Loyalist
- Invasion
- Invasion
- Invasion
- Invasion
- Japan refused ritsuryo
- Laudabiliter Conquest
- Legendary Adventure
- Liberty Faction
- Major Holy
- Mediterranean Conquest
- Migrate to Pannonia
- Minor Holy
- Mongol Invasion
- Mongol Realm Invasion
- Nomadic County Quarrel
- Nomadic Duchy Quarrel
- Nomadic Invasion
- Pax Romana
- Peasant War
- Raid for Captives
- Raiktor's "Claim"
- Raiktor's Claim
- Rebellion
- Remove Regent
- Rescue House Members
- Sponsored Conquest
- Struggle Clash
- Subjugation
- Unify The House
- Varangian Adventurer
- Vassalization
- Viking Adventurer
- Zanj Rebellion
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.