Staredit Network

Staredit Network -> UMS Assistance -> [SOLVED] Map Problem
Report, edit, etc...Posted by DaMiNaToR on 2006-11-30 at 12:04:14
Well, in my latest map, I'm having a big problem with some triggers not working. The result that I want is:

A Dark Templar going to a location will trigger a lot of loaded bunkers to die, but the men inside them live, then mass attack to another location.

My problem is that it's happening so fast that the bunkers die, but the trigger is happening so fast that the units aren't out of the bunkers before the mass attack order is triggered, so it doesn't affect them. I'm using hyper triggers in my map, which I'm assuming is the problem, but I'm not sure how to fix it so that it only pauses for a few seconds between the bunkers dying and the mass attack triggering. I tried putting in a wait, but because of the hyper triggers, the wait turned from 1000ms to around 30 seconds or so, which is too long.

Can anyone possibly help? confused.gif
Report, edit, etc...Posted by CheatEnabled on 2006-11-30 at 13:18:16
Try using a death counter instead of waits. Search the tutorial database for info on it.
Report, edit, etc...Posted by Kenoli on 2006-11-30 at 13:56:57
How to use a death counter as a timer: here.
Report, edit, etc...Posted by spinesheath on 2006-11-30 at 14:16:36
You could also make sure that the HTs are not owned by the player that owns the trigger with the wait and the bunkers-stuff. Then you can set the wait to whatever you want (if there are no other waits happening at the same time for that player).
What you also could do, is to detect if the marines have left the bunker after the bunkers are destroyed (but be warned: a location that covers the middle of the bunker will detect the marines in it as well).
Report, edit, etc...Posted by fritfrat(U) on 2006-11-30 at 16:23:38
Personally, I'd just add this action: Set deaths of (unused unit X) to 1.

Then make these triggers:

If player suffers atleast 1 death and atmost 15 deaths, add 1 death.
Player suffers 15 deaths: order attack. Or patrol, really, but you get it.
Report, edit, etc...Posted by green_meklar on 2006-12-01 at 10:55:00
QUOTE
I'm using hyper triggers in my map, which I'm assuming is the problem

If both the actions are on the same trigger, then as far as I know that shouldn't be a problem (of course, I have essentially no experience with hyper triggers, I just know the basic theory). If a wait doesn't work, then one idea is just to have a constantly running trigger to send the units attacking from the bunkers to wherever. Of course, this only works if there are no other units belonging to the same player standing around who would be affected. Under many circumstances, though, it should work fine (especially if you put the locations over the bunkers only rather than one big location, and specify the unit types).
Report, edit, etc...Posted by DaMiNaToR on 2006-12-03 at 21:04:19
QUOTE(fritfrat(U) @ Nov 30 2006, 04:23 PM)
Personally, I'd just add this action: Set deaths of (unused unit X) to 1.

Then make these triggers:

If player suffers atleast 1 death and atmost 15 deaths, add 1 death.
Player suffers 15 deaths: order attack. Or patrol, really, but you get it.
[right][snapback]597355[/snapback][/right]


I tried that and it works great. Thanks a ton. smile.gif

This can be locked now...
Next Page (1)