So let's say i wanna make a thing that keeps track of a certain number. And whenever the player activates a switch somewhere it increases that number, and after a certain ammount has being reached something happens, how would i do this?
Again, i am absolutely sorry if this sounds like a retarded questions i tried playing around with variables with the info i have an i still have no damn clue how this shit works.
EDIT: I tried a bit of a code but it doesn't seem to work, can't figure why:
Code: Select all
int WaterPumplevel = 0;
script 6 (void)
{
WaterPumplevel++
if (WaterPumplevel == [3])
{
print(s:"You should be able to swim across the gap now!");
}
else
if (WaterPumplevel == 2)
{
print(s:"One more should suffice!");
}
else
if (WaterPumplevel == 1)
{
print(s:"Its going up, still too low to get across though...");
}
}