Change Variable
ID: ChangeVariable | Native inspector · Shared list / GUI · Visual graph · Text action wrapper
Set or modify a variable using set, arithmetic, append or toggle. The operation determines how Value is used.
| Field / stored key | What to enter | Starting value |
|---|---|---|
| Variable name | Choose a game variable name. | Blank |
| Operation operation | Choose: set, add, subtract, multiply, divide, append, toggle. | "set" |
| Value value | A value of the type required by the selected variable, operation or property. | Blank |
In use. Choose score, Add, 5 for a five-point reward. Toggle suits a repeatable switch; Set is safer when an event may run twice. Keep arithmetic numeric and avoid dividing by zero.
Add Score#
ID: AddScore | Shared list / GUI · Visual graph · Text action wrapper · Timeline
Increase the runtime variable named score by the given integer amount.
| Field / stored key | What to enter | Starting value |
|---|---|---|
| Amount amount | Number of points to add to score. | 1 |
In use. Award 5 after collecting a unique key. This action does not remember that the key was already collected. Put it behind the same one-time condition as the reward. In a native inspector, Change Variable / score / Add is the direct equivalent.
