MagiCats
Wiki home
Variables / Variable

Variable Value

A number stored by your level.

Current editor blockBlock ID 98VariableInt
Variable Value code block in the MagiCats editor

What it does

Returns the current saved value of that variable.

Inputs

  • The variable selected from the level variable list.

Try it

If Variable Fish >= 3, Open Door.

Tips

  • Variables are how a level remembers what happened earlier.

Sources

Code checked: MagiCats_UnityProject/Assets/Scripts/Blocks/ContentFonction.cs, MagiCats_UnityProject/Assets/Scripts/Blocks/VariableManager.cs