Inner Scorer for a scorer

  • July 27, 2018 at 18:41 #23563

    Hi, I’m considering using utility AI for one of my project. After reading the documentation, I don’t see how I can resolve a simple use case for my game using the built in stuff.

    Here’s an example of the concept in a hockey game.

    So I have Selector for different actions( Shoot, Pass, Lob, etc) (Highest score wins)

    the Qualifier for shoot would be based on different scorers. For example, DistanceToEnemyGoal, DangerOfInterception. The thing is at this point I’d like my DangerOfInterception to generate a score based on sampled positions in the enemy goal themselves based on other scorers like DistanceToGuardian and ProximityOfEnemyToShootLine.

    I don’t see how to easily do that in the framework. Am I missing something? I would need something like a scorer with inner scorers.

    Tell me if anything is not clear.

    Thank you,


    July 30, 2018 at 10:18 #23576

    Hi Roachy,

    Thanks for posting.

    You can have inner scorers within a scorer, just expose it with e.g.

    Alternatively, what we often do is compute certain values and store them in the context (e.g. DistanceToGuardian) and then these values can be queried afterwards by other scorers and actions.

    July 30, 2018 at 22:56 #23583

    cool!, thank you!

The forum ‘Apex Utility AI’ is closed to new topics and replies.