How to setup different data for AI use behavior tree

Hello , picture shows a simple Behavior Tree . If monster A use HP<50%, but another B use HP<40% decorator , do i need to copy a new behavior tree and change the data to 40%? Is there a better way to setup the decorator data such as use Datatable if i have much monsters share the behavior tree and
just use different data. Github behaviac can export behavior tree as xml and also can load from xml, so it can batch modify the data in xml.

Hi, you could make the HP percentage an input into your decorator. Then add a blackboard variable for it and then set the blackboard variable to 50% for A and 40% for B.

:smile:thanks, a good solution