View Full Version : Question about trigger
aunshi12
12-27-2005, 3:14 AM
I am trying to make a scenario where there is a long narrow valley and the Zerg (computer) are trying to get to the terran (player 1) who is at the far end of the valley. The zerg have no base yet there are 3 caves from where they will spawn. I want there to be a countdown timer of 10 minutes and after that unlimited zerg spawn from these three caves. Heres what the trigger looks like (keep in mind this is the first time i have used campaign editor so please just bear with me)
Conditions-
always
Countdown timer is exactly 600 game seconds
Actions-
Create 3 zergling at ZERG SPAWN 1 for player 2
Create 2 hydralisk at ZERG SPAWN 1 for player 2
Create 1 ultralisk at ZERG SPAWN 1 for player 2
preserve trigger
I dont know what I am doing wrong here so please any help would be great
thanks
Well, first of all, never use "exactly" on timer conditions, unless you have hyper triggers.
Secondly, you don't put 'Always' along with other condition lines.
Third issue is that you never actually told the zerg to attack the terran, so they will just stand there.
Here's how the trigger should look like:
Players:
player x (owner of the terran)
Conditions:
Countdown timer is at least 600 game seconds
Actions:
Create 3 zergling at ZERG SPAWN 1 for player y (owner of zerg... '2' in this case)
Create 2 hydralisk at ZERG SPAWN 1 for player 2
Create 1 ultralisk at ZERG SPAWN 1 for player 2
Create 3 zergling at ZERG SPAWN 2 for player 2
Create 2 hydralisk at ZERG SPAWN 2 for player 2
Create 1 ultralisk at ZERG SPAWN 2 for player 2
Create 3 zergling at ZERG SPAWN 3 for player 2
Create 2 hydralisk at ZERG SPAWN 3 for player 2
Create 1 ultralisk at ZERG SPAWN 3 for player 2
Issue order to all men owned by Player 2 at 'ZERG SPAWN 1': Patrol to 'Terran Base Location'.
Issue order to all men owned by Player 2 at 'ZERG SPAWN 2': Patrol to 'Terran Base Location'.
Issue order to all men owned by Player 2 at 'ZERG SPAWN 3': Patrol to 'Terran Base Location'.
Wait for 800-1200 milliseconds.
Preserve Trigger.
Alas, make sure your spawn locations are big, at least 6*6 grids, so that all the units will receive their orders.
Kingscrab
12-27-2005, 11:40 AM
Well, first of all, never use "exactly" on timer conditions, unless you have hyper triggers.
Secondly, you don't put 'Always' along with other condition lines.
Third issue is that you never actually told the zerg to attack the terran, so they will just stand there.
Here's how the trigger should look like:
Players:
player x (owner of the terran)
Conditions:
Countdown timer is at least 600 game seconds
Actions:
Create 3 zergling at ZERG SPAWN 1 for player y (owner of zerg... '2' in this case)
Create 2 hydralisk at ZERG SPAWN 1 for player 2
Create 1 ultralisk at ZERG SPAWN 1 for player 2
Create 3 zergling at ZERG SPAWN 2 for player 2
Create 2 hydralisk at ZERG SPAWN 2 for player 2
Create 1 ultralisk at ZERG SPAWN 2 for player 2
Create 3 zergling at ZERG SPAWN 3 for player 2
Create 2 hydralisk at ZERG SPAWN 3 for player 2
Create 1 ultralisk at ZERG SPAWN 3 for player 2
Issue order to all men owned by Player 2 at 'ZERG SPAWN 1': Patrol to 'Terran Base Location'.
Issue order to all men owned by Player 2 at 'ZERG SPAWN 2': Patrol to 'Terran Base Location'.
Issue order to all men owned by Player 2 at 'ZERG SPAWN 3': Patrol to 'Terran Base Location'.
Wait for 800-1200 milliseconds.
Preserve Trigger.
Alas, make sure your spawn locations are big, at least 6*6 grids, so that all the units will receive their orders. What he said. :)
Personally, i like the "elapsed time" condition better.
ie: ELAPSED TIME is at least 600 seconds... (10 min) start spawning.
FallenLord
12-27-2005, 12:00 PM
A countdown timer gives you the numbers up at the top of the screen that automatically count downward until they reach 0.
Elapsed time counts how long you have been playing (it counts upwards).
If you want to have an actual countdown timer, then you need to set one up to begin with.
Condition:Always.Action:Comment: "This trigger initially sets the timer to 10 minutes."
Modify Countdown Timer: Set to 600 seconds.Condition:Countdown timer is at most 0 game seconds.
Elapsed scenario time is at least 599 game seconds.Actions:Comment: "This trigger activates when the timer reaches 0. The second condition gives redundancy in case anything weird happens."
Create 3 Zergling at SPAWN 1 for Player 2.
Create 2 Hydralisk at SPAWN 1 for Player 2.
Create 1 Ultralisk at SPAWN 1 for Player 2.
Create 3 Zergling at SPAWN 2 for Player 2.
Create 2 Hydralisk at SPAWN 2 for Player 2.
Create 1 Ultralisk at SPAWN 2 for Player 2.
Create 3 Zergling at SPAWN 3 for Player 2.
Create 2 Hydralisk at SPAWN 3 for Player 2.
Create 1 Ultralisk at SPAWN 3 for Player 2.
Issue order to all any unit owned by Player 2 at SPAWN 1: Attack to Base.
Issue order to all any unit owned by Player 2 at SPAWN 2: Attack to Base.
Issue order to all any unit owned by Player 2 at SPAWN 3: Attack to Base.
Preserve trigger.
He shouldn't need any waits unless he uses hyper triggers...
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.