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

Conditional PathfinderGoal #57

@0ffz

Description

@0ffz

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions