Re: UnitType examples
What happened to our favorite PUA condition?
Code:
Trigger Verpflegung
WhenToTest CharacterTurnStart
Condition IsGeneral
and CharacterIsLocal
and not EndedInSettlement
and not Trait Verpflegung > 0
and PercentageUnitAttribute baggage > 0
Affects Verpflegung 1 chance 100
In this case baggage (from 1648 - baggage train unit) is a custom EDU attribute. It's unreliable to test for a particular number of this unit within an army as it is percentage based, it can however in this form be used to check for a general presence. It should check bodyguards with a custom attribute as well.
Last edited by Gigantus; December 21, 2016 at 11:18 PM.