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!
This lets you do a bunch of actions over and over, without copying and pasting all those actions again. From 1 to X means how many times it will be run.
okay here's a more detailed approach, this usually used for array variables or when you have to do the same thing over again.
lets say you want to create 5 footman (yes i know this can be done with one action)
for each integer from 1-5 do actions
-creat 1 footman at ------
or lets say you have five different unit type variables, and want to use them
for each interger from 1-5 do actions
-create 1 variable unit type (for loop interger A)
for loop interger A is the number, that the loop is on, so if it's done it once, and it's on the second the number is 2. Open up a good non-JASS spell or map, and you should see this it is rather common
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.