This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dragengine:modules:dragonscript:behavior_parametertable [2025/05/01 17:55] – [Optional Behaviors] dragonlord | dragengine: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 '' | ||
| + | |value.decrement.parameter|string|Decrement parameter by value of another parameter. If parameter is not set 0 is used as current value. Applied after '' | ||
| + | |value.multiply|integer|Multiply parameter by integer value. If parameter is not set 0 is used as current value. Applied after '' | ||
| + | |value.multiply.parameter|string|Multiply parameter by value of another parameter. If parameter is not set 0 is used as current value. Applied after '' | ||
| + | |value.divide|integer|Divide parameter by integer value. If parameter is not set 0 is used as current value. Applied after '' | ||
| + | |value.divide.parameter|string|Divide parameter by value of another parameter. If parameter is not set 0 is used as current value. Applied after '' | ||
| + | |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 '' | ||
| + | |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 '' | ||
| + | |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 '' | ||
| + | |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 '' | ||
| + | |value.swap|string|Swap parameter value with value of another parameter. If parameter is not set 0 is used as current value. Applied after '' | ||
| 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: | ||
| < | < | ||
| < | < | ||
| + | < | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | ====== State Machine Actions ====== | ||
| + | |||
| + | Same as [[# | ||
| + | |||
| + | ====== State Machine Conditions ====== | ||
| + | |||
| + | Same as [[# | ||
| + | |||
| + | ====== State Machine Events ====== | ||
| + | |||
| + | This behavior sends no state machine events. | ||
| ====== Required Behaviors ====== | ====== Required Behaviors ====== | ||
| Line 99: | Line 140: | ||
| * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | * [[behavior_behaviortree|ECBehaviorBehaviorTree]]: | ||
| + | * [[behavior_statemachine|ECBehaviorStateMachine]]: | ||
| ====== Persistency ====== | ====== Persistency ====== | ||
| Line 134: | Line 176: | ||
| < | < | ||
| < | < | ||
| + | <!-- optional: use behavior tree with id instead of empty string --> | ||
| + | <string name=' | ||
| + | | ||
| + | <!-- optional: use state machine with id instead of empty string --> | ||
| + | <string name=' | ||
| + | | ||
| <!-- set element properties. omit property prefix if used inside behavior tag --> | <!-- set element properties. omit property prefix if used inside behavior tag --> | ||
| <string name=' | <string name=' | ||