On Variable Change
What it does
On Variable Change changes a linked task when the named value changes. It can watch numeric values, text values, and player values. You can react to any change or require an exact value.
Required item compatibility
Add it through an item that offers the Tasks panel. Use the exact same label as the effect or script that updates the value.
Setup
- Add On Variable Change and choose the task transition.
- Enter the value label to watch.
- Optionally enter the exact required value.
- Update the value in an earlier state and test the resulting transition.
Settings
| Setting | What it means |
|---|---|
| With A Value Label Of | Exact value label to watch. |
| If equals to | Optional exact value. Leave blank to react to any change. |
Tiny example
Updating door-code to open changes Door Code from Active to Completed
and reveals the exit.
Test and troubleshoot
- Labels and exact values are case-sensitive in practice; copy them rather than retyping when possible.
- Use Value Updated for a numeric greater-than, less-than, or equal-to comparison.
- Test the empty comparison first when you only need to confirm the value is changing.
