• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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,265
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