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

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