# Decorators - Blackboard Based Condition (this is confusing)...

**URL:** <https://forums.unrealengine.com/t/decorators-blackboard-based-condition-this-is-confusing/788133>\
**Category:** AI\
**Tags:** Behavior-Tree, decorator, unreal-engine, question\
**Created:** [March 10, 2023, 8:00pm UTC](https://forums.unrealengine.com/t/decorators-blackboard-based-condition-this-is-confusing/788133 "2023-03-10T20:00:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VagrantProfile](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VagrantProfile](https://forums.unrealengine.com/u/VagrantProfile)\
**Post date:** [March 10, 2023, 8:00pm UTC](https://forums.unrealengine.com/t/decorators-blackboard-based-condition-this-is-confusing/788133/1 "2023-03-10T20:00:15Z")

</div>

Help me understand this.

I’ve got this simple Behavior Tree set up. When I approach an NPC and press the interact button, it’s suppose to initiate a conversation (which it does). I want to, however, be able to ABORT the conversation at any time by placing a Decorator node at the very top of the tree that checks to see the value of an Int variable I’m setting.

 ![BT_Decorator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/0/e20a710c24b8c476c93b5a5e5e0b63a15a829727.png)

What I do NOT understand here at all, is that EVEN when I change my condition to 0, the tree does NOT fail! I don’t get this!!! The way I’ve got this set up, if my INT variable is equal to 1 the conversation set up in the BT should continue (and it does). HOWEVER, once I press a key to toggle that Blackboard Based Condition (Int variable gets set to 0) it STILL continues! The tree does NOT abort!

WHY?!?! What am I NOT understanding here?!?!

BTW…am I the only one that finds scripting these kinds of encounters easier in an event graph than a BT? I find BT’s have WAY too many moving parts to be practical. I want to like them…I just can’t.

---

<div class="post-metadata">

**Author:** ![CupKake](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CupKake](https://forums.unrealengine.com/u/CupKake)\
**Post date:** [March 10, 2023, 10:01pm UTC](https://forums.unrealengine.com/t/decorators-blackboard-based-condition-this-is-confusing/788133/2 "2023-03-10T22:01:43Z")

</div>

I’m more used to using a “Selector” after the root, instead of a sequence.

But after the sequence is aborted, what should the AI switch too? doesn’t seen like there is another action for it to begin taking.

---

<div class="post-metadata">

**Author:** ![VagrantProfile](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VagrantProfile](https://forums.unrealengine.com/u/VagrantProfile)\
**Post date:** [March 10, 2023, 10:15pm UTC](https://forums.unrealengine.com/t/decorators-blackboard-based-condition-this-is-confusing/788133/3 "2023-03-10T22:15:49Z")

</div>

Ah! Somehow it’s all working now. Not sure what really changed. But it’s all working as intended now.

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [March 10, 2023, 11:13pm UTC](https://forums.unrealengine.com/t/decorators-blackboard-based-condition-this-is-confusing/788133/4 "2023-03-10T23:13:12Z")

</div>

Hey @VagrantProfile, did you by chance change the “Observer Aborts” drop down to include all lower branches? That was going to be my suggestion 😛
