Integer A: Problems with looping

Dregonx

TH.net Regular
Reaction score
21
This is just in general really, it's not a specific issue, more of a question really.

Sometimes in whatever map I'm in, using my usual
Code:
For each integer A from X to Y do actions

Problem is, it doesn't always do the X to Y, and instead does a random number

So if say it's 0 to 4, sometimes it'll do 4, sometimes 2, sometimes none

I just want to know, what are the problems that could be causing this, or are integer loops just naturally like this? Or must I set a variable first or what lol
 

Dregonx

TH.net Regular
Reaction score
21
The usual reason is using a "wait" in the loop actions, and some other "Integer A" loop runs in a different trigger while the first one is waiting.

So, it gets confused if several integer A actions are going on from different triggers that both use waits? If so, is there a way to prevent it with any kind of variables or anything?
 

Dregonx

TH.net Regular
Reaction score
21
Well, there is "For each Integer B", and, if all else fails, "For each <my own integer variable, one per trigger>".

But B would only work for one other trigger though right? I could look into using my own variables. +Rep btw.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top