Snippet How To: Avoid Infinite Loops in GUI

Status
Not open for further replies.

Vicboy

Ultra Cool Member
Reaction score
44
Trigger:
  • Order Loop
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit Group - Order (Units in (Playable map area)) to Move To (Center of (Playable map area))
      • Trigger - Turn on (This trigger)


That's it.
 

GetTriggerUnit-

DogEntrepreneur
Reaction score
129
It's intelligent but really, it misses explantion and documentation.:rolleyes:

Oh and there's several other types of loop...
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Wow, that's really simple. Why didn't I think of that? :)

Does it really work? No MUI-related problems if a legitimate event happens while that's executing?

@wraithseeker: maybe, but (assuming it really works) it's one of those little useful tidbits to know...
 

T.s.e

Wish I was old and a little sentimental
Reaction score
133
This isn't a snippet, it's far from being a tutorial, and it's sure as hell not a system.

Graveyard please.
 

wraithseeker

Tired.
Reaction score
122
Trigger:
  • Unit Group - Order (Units in (Playable map area)) to Move To (Center of (Playable map area))


This would already work weird for maps..
 

Tom Jones

N/A
Reaction score
437
How to: Avoid infinite loops in GUI or any other programming you'll ever do:
Common sense.
 

Igor_Z

You can change this now in User CP.
Reaction score
61
This is a very good snippet. That is also very useful when u deal damage to a unit many times and can be overwriten if there are no Turn off and Turn on trigger actions... But this snippet could use some more information. Something like this:

1) What does it do
2) Where can it be used
3) Why is this useful
4) Add some examples where it is useful and many more
 

WolfieeifloW

WEHZ Helper
Reaction score
372
This is the worst thing ever :nuts: .
Here's my "How To: Avoid Infinite Loops In GUI" 'snippet':
Trigger:
  • UnitLoop
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit - Order (Triggering unit) to Human Priest - Inner Fire (Triggering unit)
      • Trigger - Turn on (This trigger)

Trigger:
  • PointLoop
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit - Order (Triggering unit) to Move To (Center of (Playable map area))
      • Trigger - Turn on (This trigger)

Trigger:
  • NoLoop
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit - Order (Triggering unit) to Stop
      • Trigger - Turn on (This trigger)

That's it.
Already mine is better.
I think I'll post it :rolleyes: ...
 

gameman

It's been a long, long time.
Reaction score
96
How To avoid Avoid Infinite Loops in GUI

Trigger:
  • Order Loop
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit Group - Order (Units in (Playable map area)) to Move To (Center of (Playable map area))
      • Trigger - Turn on (This trigger)

[use] Common sense.

That's it.

Mockery is one of my favorite things to do.
 
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top