Easy, I'll show you how.
What you've described is a perfect If Statement
{}?{}:{}
And if Statement can be sumarized in english pretty well
{Scene.my.variable == 5}?{scene.my.example = 6}:{scene.my.example = 0}
If scene.my.variable is equal to 5 then make scene.my.example equal 6 otherwise scene.my.example = 0
So lets say the number you want to reach is 10
{scene.my. Variable == 5}
And what you want to happen is for a block to spawn.
?{Scene.addbox({size := [1,2]; pos := e.pos; color := [0,0,0,1]})}
Otherwise Do nothing :{}
All up you get
- Code: Select all
{Scene.my.variable == 5}?{Scene.addbox({size := [1,2]; pos := e.pos; color := [0,0,0,1]})}:{}
I trust you understand creating and using variable.