ActiveGoal

ActiveGoals are continually evaluated to determine if they complete. Every ActiveGoal has a GoalDefinition that describes its completion criteria and the actions that occur when the ActiveGoal completes.

ActiveGoals should only be used if they must compete on behalf of an actor independent of that actor’s direct narrative interactions. For example, Cooper may have a goal that makes him king as soon as all other competitors are dead. Once the game sends an “ActorDies” event, Cooper will immediately become king. Because ActiveGoals are continually evaluated, as soon as the narrative state aligns with the ActiveGoal’s completion criteria, the goal will complete.

Performance Considerations

ActiveGoals can be computationally expensive to process because they are continually evaluated. Only use ActiveGoals where it makes sense, and be particularly careful about using external criteria ActiveGoals that are owned by specific actors.

Also see GoalDefinition for details