This new update is the first effort in a push to expand the depth of experiences creators are able to bring to life in Build Island. Introducing: User Variables.
[ Note: this is an upcoming update which is currently only available for testing here: Build Island Dev Server - Roblox ]
User Variables are a new feature that can be used with the wiring system to create custom events and conditions in your world. There are four parts to this update:
- Variable Condition Gate
This new gate accepts a wiring input and a wiring output. To configure the gate, you set a variable name, a comparison type, and a comparison value. The gate will only allow wiring signal to pass through when the desired condition is met (myvar = 4, score > 30, cond != 0, etc.) and the gate automatically re-evaluates the condition whenever the variable is changed.
- Variable Modifier
Accepts a wiring input and is configured with a variable name, desired operation, and value. Whenever it receives an input signal, it preforms the desired operation on the value. Supported operations are Set, Increment, Multiply, Divide and BoolToggle.
- set/ Admin Command
New admin command which can be used to set user variables directly. For example, set/myvar/5
- Text Screens
Can now be used to display user variables. Will populate tags of the form <%variable> with their corresponding values and will automatically update when the variables update. For example, to display two variables you can set the text of a display to “myvar = <%myvar>, b = <%b>”