• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[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