What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Question about return status of behavior trees

jim87

New Member
Joined
Aug 26, 2011
Messages
445
Reaction score
7
Hello!

I'm a little confused about the RunStatus codes. In the --> wiki <-- it is explained that the runstatus is arbitrary to your own logic, but when you write a BotBase or a CustomCombat behavior, what are the meanings of the various runstatus?

i.e. I can imagine that if you return a failure in an action in a sequence, that sequence will interrupt and return the status back to its root, but then, if there is another decorator child of the same parent, what happens? Does the treesharp continue from that decorator (if the condition is ok), or it will return from the root of the behavior?

And about priority selectors, I see, always in that article, that if the bot is moving to the wowpoint, it will return a success return (with ActionAlwaysSucceed) untill the bot is not arrived. But then, what does exactly RunStatus.Running is for?

I'm a little confused about those codes... in my humble opinion RunStatus.Success should mean the action is complete and to move to the next one, RunStatus.Running means the action is still running and to hang there, RunStatus.Failure if the action was not able to complete correctly... is this the meaning? If not, how could I correctly use the return statuses? May you please write me some conceptual examples (i.e. comments for code), just to understand it better without having to dig into more complex codes like advanced CCs using the behavior tree?

Thanks
 
Last edited:
i wouldn't worry about runstatus's you dont need them to write a complex BT Tree.
 
Back
Top