Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Conditional PathfinderGoal #57

Open
0ffz opened this issue Mar 12, 2021 · 0 comments
Open

Conditional PathfinderGoal #57

0ffz opened this issue Mar 12, 2021 · 0 comments

Comments

@0ffz
Copy link
Member

0ffz commented Mar 12, 2021

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant