medibot.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. - type: htnCompound
  2. id: MedibotCompound
  3. branches:
  4. - tasks:
  5. - !type:HTNCompoundTask
  6. task: InjectNearbyCompound
  7. - tasks:
  8. - !type:HTNCompoundTask
  9. task: IdleCompound
  10. - type: htnCompound
  11. id: InjectNearbyCompound
  12. branches:
  13. - tasks:
  14. # TODO: Kill this shit
  15. - !type:HTNPrimitiveTask
  16. operator: !type:PickNearbyInjectableOperator
  17. targetKey: InjectTarget
  18. targetMoveKey: TargetCoordinates
  19. - !type:HTNPrimitiveTask
  20. operator: !type:SpeakOperator
  21. speech: medibot-start-inject
  22. hidden: true
  23. - !type:HTNPrimitiveTask
  24. operator: !type:MoveToOperator
  25. pathfindInPlanning: false
  26. - !type:HTNPrimitiveTask
  27. operator: !type:SetFloatOperator
  28. targetKey: IdleTime
  29. amount: 3
  30. - !type:HTNPrimitiveTask
  31. operator: !type:WaitOperator
  32. key: IdleTime
  33. preconditions:
  34. - !type:KeyExistsPrecondition
  35. key: IdleTime
  36. # TODO: Kill this
  37. - !type:HTNPrimitiveTask
  38. operator: !type:MedibotInjectOperator
  39. targetKey: InjectTarget