how to keep track of the number of times something happened?

DonoVane

New member
Is there a way to keep track of the number of times a certain event happens and use that number to create different outcomes?
I have been looking in the manual for this, but I can't find it yet.
For example, the player enters the same room multiple times and depending on the number of times something different happens, like a different dialogue or different enemies.
 
'Variable' is one of the words that I searched for in the online manual. But I didn't find yet how to make a variable that would count the number of times 'something' happens. I am still very much a beginner with this software.

 
As Steve posted above, you'd need to use script for this purpose.

You declared script which increments a variable's value everytime level is played and store the value in a global variable. This variable is later be acquired by other script or entity to determine what to spawn in the level.
 
Ok. I think I found something now. It's called (global) variants in the manual. Once I get better at making scripts, I guess I can try something like that. Thank you for the replies!
 
Back
Top Bottom