HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Loop actions?

12-28-2005, 10:28 PM#1
Ignitedstar
Wasn't there a trigger that allowed you to loop actions? Becuase, I can't seem to find it. I don't want to post the same stuff in a trigger 3 times... noneoftheless 6 times.
12-28-2005, 10:30 PM#2
MaD[Lion]
you can use
For each integer A/B then do multiple action
12-28-2005, 10:37 PM#3
Ignitedstar
Oh really?

How exact do you use it?

For each [Integer A] from 1 to 10, do [Actions]
- Loop Actions


To be more exact, what does the "1 to 10" mean?
12-28-2005, 10:42 PM#4
MaD[Lion]
it means the counter will start from 1 then count to 10, this will perform the actions inside the loop 10 times, and you can change the numbers to your own variable which will be usefull in some situation. But stay with the numbers now
12-28-2005, 10:47 PM#5
Ignitedstar
Ahhh... I remember asking a long time ago what the integer A/B did, but no one seemed to be explained it. Thanks! This'll help me a lot.
12-29-2005, 07:15 AM#6
Anitarf
The most useful thing about forA loops is that each time the loop repeats the actions in it, Integer A will be different, so you can repeat the same thing differently. Very useful for doing the same thing for every player (just loop from 1 to 12 and use Integer A as the player number), and extremely useful in combination with variable arrays.