Decorators
Change one child
Decorators own a single child and change when it runs, how often it runs, or which status its parent receives.
| Decorator | Use it when |
|---|---|
| Inverter | Success and Failure should be reversed. |
| Repeater | A child should run again a fixed number of times or indefinitely. |
| Cooldown | A child’s final result should be delayed while the decorator remains Running. |
| Until Success / Until Failure | A child should repeat until one specific result occurs. |
| Return Success / Return Failure | A child’s final result should be forced. |
| Conditional Evaluator | A configured Conditional should gate one child. |
| Interrupt / Task Guard | Execution should coordinate with another task or shared resource. |
Avoid stacking Decorators when the resulting status becomes hard to predict. A clearly named custom task or a small Sequence is often easier to debug.
Continue
See Retry with Delay, Attack with Cooldown, and Timeout for practical uses.