User Tools

Site Tools


dragengine:modules:dragonscript:behavior_parametertable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dragengine:modules:dragonscript:behavior_parametertable [2025/05/01 17:52] dragonlorddragengine:modules:dragonscript:behavior_parametertable [2025/05/05 22:25] (current) – [parameterTree.check] dragonlord
Line 57: Line 57:
 |value.less|integer|Value of parameter is less than integer value. If parameter is absent 0 is used as current value| |value.less|integer|Value of parameter is less than integer value. If parameter is absent 0 is used as current value|
 |value.greater|integer|Value of parameter is greater than integer value. If parameter is absent 0 is used as current value| |value.greater|integer|Value of parameter is greater than integer value. If parameter is absent 0 is used as current value|
 +|wait| |If present action returns BTResult.running instead of BTResult.failed to wait until the checks are all fulfilled|
  
 This is an example of using this action: This is an example of using this action:
Line 89: Line 90:
   <parameter name='parameterTree.name'>counter</parameter>   <parameter name='parameterTree.name'>counter</parameter>
   <parameter name='parameterTree.value.less'>3</parameter>   <parameter name='parameterTree.value.less'>3</parameter>
 +  <condition>parameterTree.check</condition>
 </action> </action>
 </code> </code>
 +
 +====== State Machine Actions ======
 +
 +Same as [[#behavior_tree_actions|Behavior Tree Actions]].
 +
 +====== State Machine Conditions ======
 +
 +Same as [[#behavior_tree_conditions|Behavior Tree Conditions]].
 +
 +====== State Machine Events ======
 +
 +This behavior sends no state machine events.
  
 ====== Required Behaviors ====== ====== Required Behaviors ======
Line 98: Line 112:
 ====== Optional Behaviors ====== ====== Optional Behaviors ======
  
-This behavior does not support optional behaviors.+  * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: Add actions and conditions for behavior trees to use. 
 +  * [[behavior_statemachine|ECBehaviorStateMachine]]: Add actions and conditions for state machine to use and events to send to the state machine.
  
 ====== Persistency ====== ====== Persistency ======
Line 134: Line 149:
 <elementClass name='MyClass' class='GenericBehaviorElement'> <elementClass name='MyClass' class='GenericBehaviorElement'>
   <behavior type='ECBehaviorParameterTable'>   <behavior type='ECBehaviorParameterTable'>
 +    <!-- optional: use behavior tree with id instead of empty string -->
 +    <string name='behaviorTree'>second</string>
 +    
 +    <!-- optional: use state machine with id instead of empty string -->
 +    <string name='stateMachine'>second</string>
 +    
     <!-- set element properties. omit property prefix if used inside behavior tag -->     <!-- set element properties. omit property prefix if used inside behavior tag -->
     <string name='.name'>value</string>     <string name='.name'>value</string>
dragengine/modules/dragonscript/behavior_parametertable.1746121953.txt.gz · Last modified: 2025/05/01 17:52 by dragonlord