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

is "for each integer 1 to a" bugged?

Status
Not open for further replies.
Level 6
Joined
Jan 17, 2014
Messages
166
SOLVED is "for each integer 1 to a" bugged?

hey hive.

i use a loth of spells triggerd with a loop. I use the for each integer 1 to a trigger to get this loop.
Now if i test the loops, they sometims skip a number and add numbers.
Example: for each integer 1 to 10

then the loop does: 1 3 5 7 8 9 2 4 5 6 9 10 1 2

and sometimes only: 1 3 4 6 7 8 10

there is no consistancy. Is this because i use multiple for each integer trigger @ a time or is there something else happening in my map.

BTW, if i test a for each integer trigger in a map without other triggers it works just like it should.

thx

Edit: I solved it. Now using for each integer (custom variable) to have loops for each seperate spell/ event.
 
Last edited:
Level 14
Joined
Nov 17, 2010
Messages
1,266
You would be better off using - For each integer variable

This way you can set an integer variable for each one and you won't have the problem of more than one instance of integer A firing.
 
Status
Not open for further replies.
Top