Hello!
There is a need to execute a branch of the tree with a certain probability. At the same time, it should interrupt other branches on the right according to the Lower Priority condition, if the probability allows the branch to execute.
The problem is that, in the current setup (as seen in the screenshot), this probability is recalculated constantly, and it may interrupt itself. I had a version where the first Sequence had a Lower Priority setting, and the second one was set to Self. In that case, the probability was calculated only once, and it could work, but in that version, the conditions in the second Sequence were not recalculated if the branch on the right (e.g., Wander) was active.
The instructions state that for the first node with conditions in the form of a sequence, you need to set the interruption mode to Lower Priority or Both; otherwise, it will not recalculate. Alright, but in my case, the probability does not work properly — it continues to be recalculated and may interrupt other tasks on the right (Seek, Start Stop Ability, etc.).
How would it be best to implement the execution of a branch based on a probability in my case?


There is a need to execute a branch of the tree with a certain probability. At the same time, it should interrupt other branches on the right according to the Lower Priority condition, if the probability allows the branch to execute.
The problem is that, in the current setup (as seen in the screenshot), this probability is recalculated constantly, and it may interrupt itself. I had a version where the first Sequence had a Lower Priority setting, and the second one was set to Self. In that case, the probability was calculated only once, and it could work, but in that version, the conditions in the second Sequence were not recalculated if the branch on the right (e.g., Wander) was active.
The instructions state that for the first node with conditions in the form of a sequence, you need to set the interruption mode to Lower Priority or Both; otherwise, it will not recalculate. Alright, but in my case, the probability does not work properly — it continues to be recalculated and may interrupt other tasks on the right (Seek, Start Stop Ability, etc.).
How would it be best to implement the execution of a branch based on a probability in my case?

