View Full Version : trigger problem
The setting: tunnels with the space platform tiles made with high platform and platform.
The problem: I'm trying to make 1 zergling appear every 2 seconds at a certain spot and then patrol to another spot. I currently have 2 such locations on the map, one of which works fine. But the 'lings coming from the other location only appear every 6 seconds or so, in spite of the fact that I've set the trigger to repeat every 2 seconds.
The trigger I use
----------------
condition: Elapsed scenario time is at least 0 game seconds
actions: Create 1 zerg zergling at 'right middle entry' for player 2
Issue order to all zerg zergling owned by player 2 at 'right middle entry'. Patrol to 'me goes here'.
Wait for 2000 milliseconds
Preserve trigger.
I can't figure out what I'm doing wrong. Can anyone help me with this?
how many other triggers with preserved wait times do you have?
one more so far. As I wrote I have 2 locations from which they emerge, each with its own location to which they patrol. In a previous attempt I had 5 locations for them to patrol from and 5 others to which they would patrol and in that attempt only 2 patrol routes worked the way I wanted them to. Could it be that multiple patrol routes with the trigger I've specified confuses the program?
It probably is related to using "wait" in more than one trigger and preserving it.
grover1311
03-17-2007, 6:39 PM
try making the elapsed time exactly 0 seconds, or just replace it with always.
SilverCrusader
03-17-2007, 9:13 PM
Ok, I see the problem.
You see, preserve triggers don't execute at the speed you want them to. This is what some people nicknamed "Trigger Lag." Just try putting Wait 0 milliseconds after the preserve triggers, than it should execute fast enough.
Thanks for the advice folks. I'll give them a try.
Hans, could there be a chance that you set up the locations wrong (especially if you made all those patrolling triggers after copying the initial one several times)? :confused:
And welcome on board as well. Feel free to set your (browsing) 'vessel' into the other parts of 'our' forum in an exploration voyage to find more stuff you'd like. ;)
Setting the time to 0 milliseconds did the trick. The fact that all patrol routes work in the first such mission I made makes me believe that you're right about copying, Basan. If so I'm gonna try to make each patrol trigger from scratch and see what happens.
SilverCrusader
03-18-2007, 9:08 AM
Copying saves alot of time, but you have to be good at it, and don't mess up doing all the location changing.
I may have the answer. I believe that giving a single opponent multiple patrol routes confuses the program. In the first mission with multiple patrol routes I've made I have one route per enemy and they work fine. I'm gonna try this with another mission in my series.
That's how to do it. Now that warboards is accessible again I can confirm that one can't have multiple patrol routes for a single computer player going off at the same time. One route per opponent, that's the key.
But if you want to make it still look like the same player you can always get an advanced editor at the Resource Guide thread and colour'em equal. I suggest SCMDraft 2, though. And if you want further details on it, we'll be around to help... As usual. ;)
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.