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/02 21:50] – [Optional Behaviors] dragonlorddragengine:modules:dragonscript:behavior_parametertable [2026/10/11 18:09] (current) – [parameterTree.set] dragonlord
Line 36: Line 36:
 |name|string|Name of parameter to manipulate| |name|string|Name of parameter to manipulate|
 |value|integer|Assign value to parameter| |value|integer|Assign value to parameter|
-|value.increment|integer|Increment parameter by integer value. If parameter is not set 0 is used as current value| +|value.increment|integer|Increment parameter by integer value. If parameter is not set 0 is used as current value.| 
-|value.decrement|integer|Decrement parameter by integer value. If parameter is not set 0 is used as current value|+|value.increment.parameter|string|Increment parameter by value of another parameter. If parameter is not set 0 is used as current value.| 
 +|value.decrement|integer|Decrement parameter by integer value. If parameter is not set 0 is used as current value. Applied after ''increment''.| 
 +|value.decrement.parameter|string|Decrement parameter by value of another parameter. If parameter is not set 0 is used as current value. Applied after ''increment''.| 
 +|value.multiply|integer|Multiply parameter by integer value. If parameter is not set 0 is used as current value. Applied after ''decrement''.| 
 +|value.multiply.parameter|string|Multiply parameter by value of another parameter. If parameter is not set 0 is used as current value. Applied after ''decrement''.| 
 +|value.divide|integer|Divide parameter by integer value. If parameter is not set 0 is used as current value. Applied after ''multiply''.| 
 +|value.divide.parameter|string|Divide parameter by value of another parameter. If parameter is not set 0 is used as current value. Applied after ''multiply''.| 
 +|value.minimum|value|Set parameter to minimum of current value and integer value. If parameter is not set 0 is used as current value. Applied after ''divide''.| 
 +|value.minimum.parameter|value|Set parameter to minimum of current value and value of another parameter. If parameter is not set 0 is used as current value. Applied after ''divide''.| 
 +|value.maximum|value|Set parameter to maximum of current value and integer value. If parameter is not set 0 is used as current value. Applied after ''minimum''.| 
 +|value.maximum.parameter|value|Set parameter to maximum of current value and value of another parameter. If parameter is not set 0 is used as current value. Applied after ''minimum''.| 
 +|value.swap|string|Swap parameter value with value of another parameter. If parameter is not set 0 is used as current value. Applied after ''maximum''.|
  
 This is an example of using this action: This is an example of using this action:
Line 54: Line 65:
 |name|string|Name of parameter to test| |name|string|Name of parameter to test|
 |value|integer|Value of parameter is integer value. If parameter is absent 0 is used as current value| |value|integer|Value of parameter is integer value. If parameter is absent 0 is used as current value|
 +|value.parameter|string|Value of parameter is value of another parameter. If parameter is absent 0 is used as current value|
 |value.not|integer|Value of parameter is not integer value. If parameter is absent 0 is used as current value| |value.not|integer|Value of parameter is not integer value. If parameter is absent 0 is used as current value|
 +|value.not.parameter|string|Value of parameter is not value of another parameter. 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.less|integer|Value of parameter is less than integer value. If parameter is absent 0 is used as current value|
 +|value.less.parameter|string|Value of parameter is less than value of another parameter. If parameter is absent 0 is used as current value|
 +|value.lessOrEqual|integer|Value of parameter is less than or equal to integer value. If parameter is absent 0 is used as current value|
 +|value.lessOrEqual.parameter|string|Value of parameter is less than or equal to value of another parameter. 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|
 +|value.greater.parameter|string|Value of parameter is greater than to value of another parameter. If parameter is absent 0 is used as current value|
 +|value.greaterOrEqual|integer|Value of parameter is greater than or equal to integer value. If parameter is absent 0 is used as current value|
 +|value.greaterOrEqual.parameter|string|Value of parameter is greater than to or equal to value of another parameter. 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 80: Line 100:
 |parameterTree.name|string|Name of parameter to test| |parameterTree.name|string|Name of parameter to test|
 |parameterTree.value|integer|Value of parameter is integer value. If parameter is absent 0 is used as current value| |parameterTree.value|integer|Value of parameter is integer value. If parameter is absent 0 is used as current value|
 +|parameterTree.value.parameter|string|Value of parameter is value of another parameter. If parameter is absent 0 is used as current value|
 |parameterTree.value.not|integer|Value of parameter is not integer value. If parameter is absent 0 is used as current value| |parameterTree.value.not|integer|Value of parameter is not integer value. If parameter is absent 0 is used as current value|
 +|parameterTree.value.not.parameter|string|Value of parameter is not value of another parameter. If parameter is absent 0 is used as current value|
 |parameterTree.value.less|integer|Value of parameter is less than integer value. If parameter is absent 0 is used as current value| |parameterTree.value.less|integer|Value of parameter is less than integer value. If parameter is absent 0 is used as current value|
 +|parameterTree.value.less.parameter|string|Value of parameter is less than value of another parameter. If parameter is absent 0 is used as current value|
 +|parameterTree.value.lessOrEqual|integer|Value of parameter is less than or equal to integer value. If parameter is absent 0 is used as current value|
 +|parameterTree.value.lessOrEqual.parameter|string|Value of parameter is less than or equal to value of another parameter. If parameter is absent 0 is used as current value|
 |parameterTree.value.greater|integer|Value of parameter is greater than integer value. If parameter is absent 0 is used as current value| |parameterTree.value.greater|integer|Value of parameter is greater than integer value. If parameter is absent 0 is used as current value|
 +|parameterTree.value.greater.parameter|string|Value of parameter is greater than to value of another parameter. If parameter is absent 0 is used as current value|
 +|parameterTree.value.greaterOrEqual|integer|Value of parameter is greater than or equal to integer value. If parameter is absent 0 is used as current value|
 +|parameterTree.value.greaterOrEqual.parameter|string|Value of parameter is greater than to or equal to value of another parameter. If parameter is absent 0 is used as current value|
  
 This is an example of using this condition: This is an example of using this condition:
Line 89: Line 117:
   <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 ======
dragengine/modules/dragonscript/behavior_parametertable.1746222611.txt.gz · Last modified: by dragonlord