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

[Trigger] Integer limit per trig?

Status
Not open for further replies.
Level 12
Joined
Mar 17, 2007
Messages
412
I create a new trigger by right-clicking & then creating new trigger

Thus

Event: Map intialization

Conditions: None

Action: Integer Loop (My Integer 1) 1-100

Question: Is there a set cap limit to the loop PER TRIGGER created? I'm aware of the cap limit for integers is 8191 but I don't nearly breach 300 for each integer created, I feel that having multiple integer loops in the same trigger eventually stops after 1000 for some reason, because it eventually pauses or completely stops & doesn't finish the rest below it.
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
this is called in here as hitting the OP limit. This is implemented by blizzard to prevent users creating infinite loops. The only way around it is to spawn another "virtual machine instance"(on this site called thread) by either executing new trigger or some more advanced stuff.

The more filled the body of the loop is, the less times it can run before the game will kill that running thread, resulting in nothing after that point in the trigger running(another trigger will run, if any are waiting to run)
 
Level 12
Joined
Mar 17, 2007
Messages
412
this is called in here as hitting the OP limit. This is implemented by blizzard to prevent users creating infinite loops. The only way around it is to spawn another "virtual machine instance"(on this site called thread) by either executing new trigger or some more advanced stuff.

The more filled the body of the loop is, the less times it can run before the game will kill that running thread, resulting in nothing after that point in the trigger running(another trigger will run, if any are waiting to run)

Ahhhh I see thanks it worked.

- Executed new trigger (did it), advanced conditions already implemented
 
Status
Not open for further replies.
Top