Scripted Effect
holy_war_plunder_to_treasury_effect
If
Recipientvar:war_target exists
Then
- Loots every occupied enemy location, adding Jihad Plunder Estimated TotalDucats to the Jihād's war-chest and raising its religious zeal by 5 (maximum 100)
- ActorEvery controlled locationwhereOwner: Plunder targetActorLoots Previous for TARGET_LOCATION.GetEstimatedLootIncome|0+=Ducats
- Not shown in the game's tooltip
- ActorThen
- IfDucats > var:hw_plunder_beforeThen
- Set variable
- Name: hw_plunder_gained
- Value
- Value: gold
- Subtract: var:hw_plunder_before
- Lose var:hw_plunder_gained Ducats
- RecipientGain Previousvar:hw_plunder_gained Ducats
- Remove variable: hw_plunder_gained
- Set variable
- Remove variable: hw_plunder_before
- Recipient
- Change variable
- Name: Religious Zeal
- Add: 5
- Clamp variable
- Name: Religious Zeal
- Max: 100
- Min: 0
- Change variable
- Actor
Exact script
Used by 1
Plunder the ConqueredEffect
Scripting 11
Requires 2
Grants 3
Removes 2
References 4
Variables