The Formula tab of the Behavior Editor dialog box allows you to manipulate an object's value (a whole number), which can be used in trigger and reset operations.
Use the Formula tab of the Behavior Editor to manipulate an object's value.
|The initial object value||This read-only field displays the object's current value, set via the Object Editor|
|Apply to this object when triggered||Select this checkbox, then use the drop-down box to the left, to enter a new value to be applied, via the formula, to the assigned object(s).|
|Get value from another object||Use the right-hand drop-down box to select the object to get the value from, then use the left-hand drop-down box to select the formula's operation.|
|Send result to another object||Sends the value of the current object to another object. Use the right-hand drop- down box to select the object receiving the new value, then use the left-hand drop-down box to select the formula's operation.|
|OK||Click to accept the current settings and exit the dialog box.|
|Cancel||Click to cancel the operation and close the dialog box.|
|Help||Click to open a context-sensitive help topic.|
In the drop-down boxes, you can choose between the following:
Replace -- replaces the current value with the new value.
Add -- adds the new value to the current value.
Subtract -- subtracts the new value from the current value.
Multiply -- multiplies the new value with the current value.
Divide -- divides the current value by the new value. The new value must not be zero. Fractions are disregarded.
The current value is the value stored in the object, while the new value is the new value calculated by applying the formula.