There are some awesome tutorials about that on this forum, try to find them for variables are needed in nearly every trigger you're going to make, as well as this one. If you'd take a look at the triggers I've posted below you'll notice that the timer itself is actualy a variable as well.Hi i dono anything about vairibles so plz dont try 2 teach me that
just tell me how to make a timer step by step ty be sure to make it retard friendly cause well i am 1 !
Variables is not a difficult concept to learn. When you do, your Map making experience will get 100x better. :thup:
A variable is a representation of something. X = 10. X is the variable. It represents 10. Is that hard to learn? It's the same in the trigger editor. You set a variable to represent something. In this case, you use one to represent a Timer.
math... but u explained it very well its like algibra exept instead of a number it could be anything right?
Exactly. You can set a variable to almost anything in the game. Examples:
Trigger:
- Set Alex = (Triggering unit)
^ variable that represents a unit, we call the variable Alex
Trigger:
- Set Alex_Life = (Life of (Alex))
^ Integer variable that represents the current hit points of the unit "alex".
So now you have 2 variables: Alex, which represents a unit, and Alex_Life, which represents that unit's current hit points.
Now just use a "Timer" variable for your Timer. :thup:
Exactly. You can set a variable to almost anything in the game. Examples:
Trigger:
- Set Alex = (Triggering unit)
^ variable that represents a unit, we call the variable Alex
Trigger:
- Set Alex_Life = (Life of (Alex))
^ Integer variable that represents the current hit points of the unit "alex".
So now you have 2 variables: Alex, which represents a unit, and Alex_Life, which represents that unit's current hit points.
Now just use a "Timer" variable for your Timer. :thup: