I’ve been having trouble with a trigger the last couple days. Here’s the trigger:
Code:;------------------------------------------ Trigger S_general_joins_army WhenToTest CharacterTurnEnd Condition IsGeneral and CharacterIsLocal and not EndedInSettlement and PercentageUnitAttribute general_unit < 100 and Trait SWithArmy < 1 Affects SWithArmy 2 Chance 100
And here’s the error log entry referencing it.
Code:06:16:33.609 [game.script] [error] Trigger processing error in <S_general_joins_army> : PercentageUnitAttribute needs a living character with an army. when testing <PercentageUnitAttribute> condition
I’m having a problem making sense of this, because the requirements for the PUA condition are that the event exports character_record, which CharacterTurnEnd does. Also, one of the preceding conditions is IsGeneral, so that should supply the “living character with an army”. Any idea what’s going wrong here?





Reply With Quote








