[Trigger] Integer Loop, need help

Status
Not open for further replies.
Level 7
Joined
Dec 8, 2005
Messages
319
looking to make a trigger that sets an integer to a value in percentage, every 20 seconds or so.

and i need it to go from 1% to 100% and stop at 100%.

i also need to use this integer to set the life of a unit that spawns every 2 seconds.

any ideas on how to make the first loop? I cant really figure it out... and could i not get it in like jass or anything if possible. just the normal code so that i could change it accordingly to what i need. thanks
 
  • Actions
    • Loop from X to Y
      • Actions
        • If/Then/Else
          • If
            • Integer_Variable is lower then 100% (dunno whats your 100%)
          • Then
            • Set Integer_Variable = Integer_Varible + someNumber
            • Wait X seconds
          • Else
            • Skip remaining actions

Its not written really properly but you can get the point.
Just too annoying getting into the WE :P
 
Status
Not open for further replies.
Back
Top