Closed chrismdp closed 4 years ago
Planner to quit e detailed level could be the fastest way of doing this. Might be able to use predicate.js directly here, or perhaps the conditions bit of the rules engine?
Chop tree > 1) has axe AND next to tree Has axe > pick up axe > next to axe
AND conditions are processed in order that makes sense. OR it just finds the easiest leaf point.
AI should be one planning level higher, and only run for events the player would also fire like “selecting trees to chop”
Have been reading quite a lot about HTN planners and they could be a great fit for our job execution actions. Am going to try that first to see if it works with simple chop tree actions, then move on to plough field.
Notes