1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  4. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  5. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  6. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  7. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  8. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

is "for each integer 1 to a" bugged?

Discussion in 'World Editor Help Zone' started by Paulus, Oct 2, 2014.

  1. Paulus

    Paulus

    Joined:
    Jan 17, 2014
    Messages:
    155
    Resources:
    0
    Resources:
    0
    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: Oct 2, 2014
  2. nedio95

    nedio95

    Joined:
    Mar 24, 2011
    Messages:
    1,055
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Post triggers in trigger tags !!

    And yes, sometimes "for each integer A" bugs but only if used simultaneously with another one...
     
  3. Veritas 117

    Veritas 117

    Joined:
    Nov 17, 2010
    Messages:
    1,163
    Resources:
    0
    Resources:
    0
    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.
     
  4. deathismyfriend

    deathismyfriend

    Joined:
    Oct 24, 2012
    Messages:
    6,532
    Resources:
    14
    Spells:
    12
    Tutorials:
    2
    Resources:
    14
    Never use the GUI actions for each integer a / b. (These never big when done correctly )
    Create a custom it variable for all your looping.
    It is more efficient and faster to create your own integer.

    The main problem is that you probably misuse waits inside the loops.