Mobzy icon indicating copy to clipboard operation
Mobzy copied to clipboard

Conditional PathfinderGoal

Open 0ffz opened this issue 5 years ago • 0 comments

A pathfinder that would take a list of GearyConditions and map of ints to other pathfinders.

If the conditions are met, try to run the pathfinders based on priority as defined by the map.

Syntax goal:

goals:
  1: !<if>
    conditions:
      - !<health>
        within: 0..10
    run:
      1: !<mobzy:behaviour.throw_items> {}
      2: !<anothergoal> {}

Check out geary's ConditionalAction for a really similar example

P.S. if someone has a better name than conditions for the list of conditions, lemme know!

0ffz avatar Mar 12 '21 21:03 0ffz