I really recommend <a href="http:&#x2F;&#x2F;www.amazon.com&#x2F;Programming-Example-Wordware-Developers-Library&#x2F;dp&#x2F;1556220782" rel="nofollow">http:&#x2F;&#x2F;www.amazon.com&#x2F;Programming-Example-Wordware-Developer...</a>. I don&#x27;t recall if it contained a segment of Behaviour Trees at this moment, but read up on BTs and replace any section containing FSM with that.