• 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.

[JASS] Noob question -looping

Status
Not open for further replies.
Level 5
Joined
Aug 14, 2004
Messages
188
Ok really easy noob i needa know how to trigger and wright a looping action, basically when player cats ability i want a looping action of unit-train unit and stuff, i dunno how to do it
 
Level 2
Joined
Oct 5, 2004
Messages
12
o.0 I assume you will want the action to repeat a set number of times?

You use `For Each Integer <variable, could be Integer A or Integer B or your own global variable> from <Start> to <Finish>, do Actions (multiple'.

Then you can use Integer A or Integer B or w/e inside the loop if you want sth different to happen each time.
 
Status
Not open for further replies.
Top