Staredit Network

Staredit Network -> UMS Assistance -> Waits + Hyper Triggers
Report, edit, etc...Posted by luisv on 2006-08-25 at 20:20:23
I know Waits mess up Hypers.. but how? I have like 200 triggers that really could use Waits but at the same time need Hyper Triggers.. I know some people use death trigs and other methods to go around the waits, but in this case I simply can't think of an alternative... (and no, I'm not redoing 200 trigs or making 400 trigs for this to work) Just HOW do waits mess up Hypers? helpsmilie.gif
Report, edit, etc...Posted by IsaT on 2006-08-25 at 21:09:28
Waits only mess up hyper triggers if they are for the same player that owns the hyper trigger. BUT if your wait times are too slow, or you have several going at once it can cause an unusually large gap in triggers.
Report, edit, etc...Posted by PCFredZ on 2006-08-25 at 21:43:45
If you have multiple triggers with waits running at the same time -- regardless of hyper triggers, though it includes them too because they use wait actions -- your map will be screwed up anyway.

Just use the increment of death counters + hyper triggers. 12 deaths per second, simple enough.
Report, edit, etc...Posted by luisv on 2006-08-25 at 22:22:35
But I can't use Death Trigs darn it. I said that above. I have the beginning of the trigger then "wait" then the end of it. Spliting the trigger would make it 400 trigs.. that's insane. So if HyperTrigs are set for "force1" and all the others with waits for "AllPlayers" could that work?!
Report, edit, etc...Posted by Vibrator on 2006-08-25 at 22:24:00
Actually it can be as simple as adding 1 trigger 2 deathcounters and a switch (the last two are too every trigger)
Report, edit, etc...Posted by fritfrat(U) on 2006-08-25 at 22:36:21
Well, luisy, waits will work as long as each player is only running 1 trigger with waits at one time, which doesn't have to include hypers. Basically, if 2+ triggers with waits are running, the bottom ones aren't going to fire until the top one is done. However, hypers don't need to fire anything in the first place, so it's okay if you have one trigger with a wait.

If you can figure out a way to have it so only 1 trigger with a wait is running at a time per player, then you don't have to switch to counters of some sort. If you can't, sorry, you'll have to split up the triggers no matter what kind of timing system you do.

EDIT: Missed your second post question. Clicking "All Players" is exactly the same as clicking "Player 1," "Player 2," ... "Player 8." Same applies for forces.
Report, edit, etc...Posted by PCFredZ on 2006-08-25 at 22:50:18
QUOTE(luisv @ Aug 25 2006, 10:22 PM)
But I can't use Death Trigs darn it. I said that above. I have the beginning of the trigger then "wait" then the end of it. Spliting the trigger would make it 400 trigs.. that's insane. So if HyperTrigs are set for "force1" and all the others with waits for "AllPlayers" could that work?!
[right][snapback]550802[/snapback][/right]

Then your triggers really need to be made more efficiently. Post the map or something.
QUOTE(Kupo @ Aug 25 2006, 10:38 PM)
Wait's wont screw you up as long as they dont have preserve triggers.
[right][snapback]550820[/snapback][/right]

That's not true. pinch.gif
Report, edit, etc...Posted by luisv on 2006-08-26 at 00:00:38
QUOTE
Then your triggers really need to be made more efficiently. Post the map or something.


lol.

QUOTE
Well, luisy, waits will work as long as each player is only running 1 trigger with waits at one time, which doesn't have to include hypers. Basically, if 2+ triggers with waits are running, the bottom ones aren't going to fire until the top one is done. However, hypers don't need to fire anything in the first place, so it's okay if you have one trigger with a wait.

If you can figure out a way to have it so only 1 trigger with a wait is running at a time per player, then you don't have to switch to counters of some sort. If you can't, sorry, you'll have to split up the triggers no matter what kind of timing system you do.

EDIT: Missed your second post question. Clicking "All Players" is exactly the same as clicking "Player 1," "Player 2," ... "Player 8." Same applies for forces.


Well, only every 5 min will all the triggers with the waits fire at the same time. They're all exactly the same just display different texts. So basically, the triggers won't fire at the same time but from top to bottom?
Report, edit, etc...Posted by fritfrat(U) on 2006-08-26 at 08:16:04
Lets say we have a situation like this:

Wait 40,000: spawn unit A, preserve
Wait 60,000: Spawn unit B, preserve
Wait 70,000: spawn unit c, preserve

With hyper triggers.

It will wait 40k, spawn unit A. Then, it goes to the wait 60k, and as it starts to wait it checks all other triggers above it to fire, so it has to wait 40k again. Then it finishes waiting the 60k and spawns unit B. Then, for the 70k, it waits the 40k, waits the 40k again because the 60k wait had it check the order again, finishes the rest of the 60k wait, and THEN waits the 70k, THEN spawns unit C.

I THINK that is right. Even if it's not completely accurate, that's the general basis of how wait stacks work.

You said all triggers with waits (are supposed to) fire at same time. Make this one trigger and you're problem is solved tongue.gif
Report, edit, etc...Posted by DT_Battlekruser on 2006-08-26 at 13:08:59
Yes, your triggers definitely need to be more efficiently made. If you have a set of triggers like:

C:
-Always
A:
-Display Text 1
-Wait 15000
-Preserve

C:
-Always
A:
-Display Text 2
-Wait 10000
-Preserve

Then you can either consolidate into one wait trigger like:

C:
-Always
A:
-Display Text 1
-Display Text 2
-Wait 10000
-Display Text 2
-Wait 5000
-Display Text 1
-Wait 5000
-Display Text 2
-Wait 10000
-Preserve

or use death counters. It wouldn't require 400 triggers either way.
Report, edit, etc...Posted by O)Matt_Burch on 2006-08-26 at 17:36:02
k.. if you have waits, add hyper triggers if you need them. if it starts to mess upt he waits. delete all your hyper triggers and remake them in force 1. works every time for when they mess up one of my maps..
Report, edit, etc...Posted by Zeratul_101 on 2006-08-26 at 17:45:10
NEVER create hypers triggers for more than one player. it achieves nothing - its actually counter productive. by creating three hyper triggers for ONE player, you speed up trigger processing for ALL players. in the process, you'll lose the ability to properly use waits for the player with hyper trigs. while you can make hyper trigs for everyone, it's no better than for only one person and everyone'll lose the ability to use waits properly. whereas if one player has hypers, the other seven can still use their waits properly.

the only situation you would use hypers for everyone are when there are no computer players. when there is a comp without waits, always give the hypers to it.

note: everybody in this post refers to anyone with hyper triggers.
Report, edit, etc...Posted by Vibrator on 2006-08-27 at 01:33:10
I think you need to edit that some more.
Report, edit, etc...Posted by Zeratul_101 on 2006-08-27 at 01:35:55
better now vibrator? i think i got what you were talking about.
Next Page (1)