Replies: 1 comment 1 reply
-
Great suggestion. I really like this idea and these nodes could be very useful for a lot of folks. One challenge here is to define, what qualifies as "generic enough" to be added as a node. I fear that once we start adding predefined actions and conditions, more and more people want other custom nodes. Eventually, we could end up with dozens or even hundreds of nodes that are very helpful each but only to some people. Ideally, this addon should be kept as generic and simple as possible. Agreeing on a set of rules first might be the difficult part here. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When working with behavior trees I have to quite often check if blackboard has some key, or set it to some predefined value (like 0 or INF) or compare some values. It would be nice if there was a bunch of predefined nodes for blackboard operations. My idea is to add 4 nodes:
BlackboardSetAction
, which would take aString
representing a key and and aString
representing anExpression
, which would be parsed and saved into said keyBlackboardEraseAction
, which would erase the specified key from the blackboardBlackboardHasCondition
, which would simply returnSUCCESS
if blackboard has a specified key, otherwise FAILUREBlackboardCompareCondition
, which would take two Strings representingExpression
s and an enum representing a comparison operator; when ticked it would evaluate both expressions and compare their values returning eitherSUCCESS
orFAILURE
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions