• 🏆 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!

Question in FOR loops

Status
Not open for further replies.
Level 5
Joined
Oct 2, 2013
Messages
95
So if I have two triggers that use the "For loop (Integer A)" action with a "Wait x seconds" inside it ( damage over time, for example ) like this:

  • For each integer A from 1 to 10 do actions:
  • Loop - Actions:
  • Set var = var + 1
And both of them start at the same time period of 10 seconds, will they interrupt each other? I will need to create different loop vars for them both?

Thanks...
 
Level 5
Joined
Jan 27, 2014
Messages
164
> so yes?
Yes and no, I suppose.

There are 3 types of integer loops in GUI.
- Integer A loop
- Integer B loop
- Custom Integer loop

Post#2 was in fact referring to the third type of integer loop.
You'll need to create a separate integer variable for every respective loop. This way, different loop integers will not clash with each other.
 
Status
Not open for further replies.
Top