Variables / Variable
Increment Variable
Adds a number to a variable.
Current editor blockBlock ID 100IncrementVariable

What it does
Reads the old variable value, adds the amount, and saves the result.
Inputs
- Amount to add.
- Variable to change.
Try it
When the player grabs a fish, Increment Variable Fish by 1.
Tips
- Use negative numbers to subtract.
Sources
Legacy pages reviewed: IncrementVariable
Code checked: MagiCats_UnityProject/Assets/Scripts/Blocks/ContentFonction.cs, MagiCats_UnityProject/Assets/Scripts/Blocks/VariableManager.cs