• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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