• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
  • 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.
Top