Variables / Variable
Set Variable
Changes a variable to a new number.
Current editor blockBlock ID 99SetVariable

What it does
Writes the chosen value into a variable. It can also set a few local unit numbers in old code paths.
Inputs
- Variable to change.
- New value.
Try it
Set Variable Stars to 1 when a secret is found.
Tips
- Name variables after what they mean: DoorOpen, BossPhase, Score.
Sources
Legacy pages reviewed: SetVariable
Code checked: MagiCats_UnityProject/Assets/Scripts/Blocks/ContentFonction.cs, MagiCats_UnityProject/Assets/Scripts/Blocks/VariableManager.cs