This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dragengine:modules:dragonscript:behaviortrees [2025/06/12 16:11] – [sequence] dragonlord | dragengine:modules:dragonscript:behaviortrees [2025/06/12 17:01] (current) – [File Format (*.debt)] dragonlord | ||
---|---|---|---|
Line 88: | Line 88: | ||
====== File Format (*.debt) ====== | ====== File Format (*.debt) ====== | ||
- | The behavior tree file format is recognized by the LoadBehaviorTree script class. The file is an XML file with a simple structure to define a behavior tree using XML. | + | The behavior tree file format is recognized by the LoadBehaviorTree script class. The file is an XML file with a simple structure to define a behavior tree using XML. See [[https:// |
<uml> | <uml> | ||
Line 168: | Line 168: | ||
} | } | ||
behaviorTree --> yield | behaviorTree --> yield | ||
+ | |||
+ | object " | ||
+ | <# | ||
+ | |condition| | ||
+ | |conditionMode| | ||
+ | } | ||
+ | behaviorTree --> subtree | ||
@enduml | @enduml | ||
Line 242: | Line 249: | ||
^Attribute^Description^Occurance^Default^ | ^Attribute^Description^Occurance^Default^ | ||
|loop|Loop choice.|Optional|'' | |loop|Loop choice.|Optional|'' | ||
+ | |id|Rule identifier. Used to support persistance. If identifier starts with '' | ||
|doNotFail|If choice fails return '' | |doNotFail|If choice fails return '' | ||
Line 299: | Line 307: | ||
Adds a running rule. | Adds a running rule. | ||
+ | |||
+ | ^Attribute^Description^Occurance^Default^ | ||
+ | |id|Rule identifier. Required to support persistance. If identifier starts with '' | ||
^Tag^Description^Occurance^Default^ | ^Tag^Description^Occurance^Default^ | ||
Line 315: | Line 326: | ||
Adds a yield rule. | Adds a yield rule. | ||
+ | |||
+ | ^Attribute^Description^Occurance^Default^ | ||
+ | |id|Rule identifier. Required to support persistance. If identifier starts with '' | ||
^Tag^Description^Occurance^Default^ | ^Tag^Description^Occurance^Default^ |