View Full Version : A pretty Newb question...but plz help me
khaotic
09-12-2005, 8:04 AM
Is there a way to get units in every specific intervals or times? I figured out the location thing and which units but I dont know how to set the time. And how can u set and display the countdown timer?
Omegastorm
09-12-2005, 9:26 AM
Yes, there is a way to create units at specific intervals, and the best way to do this is to use the "Wait" action. Here's an example:
Players:
Player 1
(Note: Only select the player who this will apply to or it will happen multiple times at once)
Conditions:
(Your conditions, eg switch is set, player custom score is whatever...)
Actions:
Create 4 Zerg Zerglings for Player 1 at "somelocation". (You can also choose to apply properties such as a certain percent HP or invincible, etc)
Wait for 10000 ms
Preserve trigger
This will create 4 zerglings at the location "somelocation" every 10 seconds, and repeat as long as the conditions are met.
Also, to set the countdown timer, look in actions for "set countdown timer". It will automatically display and begin counting down.
That can be done in several ways but since you want the countdown timer one, here it goes:
Spawning timed trigger
Owner:
- The player you wan to have those reinforcements.
Conditions:
- Countdown timer is at most 0 game seconds.
- Optional. --> Any other conditions you may want be acomplished before setting the trigger.
Actions:
- Modify Countdown timer to: Set duration seconds.
- Create units actions. --> Can be several since you didn't specify if wanted to spawn one unit type or several or if any of'em would have some energy by default.
- Preserve trigger.
There ya go the basic method for making static reinforcements (won't change the unit types) come at every amount of time you wish to be. :)
And also welcome to WB's... where the ppl are 'loony enough' to stick around more often and have interesting debates and/or aiding fellow members. *Glares around with a weird look in eyes* ;)
Yoshi_da_Sniper
09-12-2005, 8:59 PM
Keep in mind, having more than one "wait" trigger happening at once for the same player/force/all players will unsync them.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.