- Joined
- Jan 16, 2011
- Messages
- 44
Well this is the method I used for spawn. All I want is that the spawn timer will start after all creeps died because this spawn will start immediately when it reaches zero.
the tutorial i followed.
http://www.hiveworkshop.com/forums/...orials-279/multiple-creep-spawn-system-32436/
[WC3]Spawn
Events
Time - RoundWindow expires
Conditions
Actions
Set Lvl_num = (Lvl_num + 1)
For each (Integer A) from 1 to unit_amount[Lvl_num], do (Actions)
Loop - Actions
Set incrementx = 1
Set incrementy = 1
For each (Integer B) from 1 to 4, do (Actions)
Loop - Actions
Unit - Create 1 unit_type[Lvl_num] for Player 12 (Brown) at loc[incrementy] facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To center of map
Unit - Create 1 unit_type[Lvl_num] for Player 12 (Brown) at loc[(incrementy + 1)] facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To center of map Set incrementx = (incrementx + 1)
Set incrementy = (incrementy + 2)
Wait 0.75 seconds
For each (Integer A) from 1 to unit_amount_var_three[Lvl_num], do (Actions)
Loop - Actions
Set incrementx = 1
Set incrementy = 1
For each (Integer B) from 1 to 4, do (Actions)
Loop - Actions
Unit - Create 1 unit_type_var_three[Lvl_num] for Player 12 (Brown) at loc[incrementy] facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To center of map
Unit - Create 1 unit_type_var_three[Lvl_num] for Player 12 (Brown) at loc[(incrementy + 1)] facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To center of map
Set incrementx = (incrementx + 1)
Set incrementy = (incrementy + 2)
Wait 0.75 seconds
For each (Integer A) from 1 to unit_amount_var_two[Lvl_num], do (Actions)
Loop - Actions
Set incrementx = 1
Set incrementy = 1
For each (Integer B) from 1 to 4, do (Actions)
Loop - Actions
Unit - Create 1 unit_type_var_two[Lvl_num] for Player 12 (Brown) at loc[incrementy] facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To center of map
Unit - Create 1 unit_type_var_two[Lvl_num] for Player 12 (Brown) at loc[(incrementy + 1)] facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To center of map
Set incrementx = (incrementx + 1)
Set incrementy = (incrementy + 2)
Wait 0.75 seconds[/WC3]
the tutorial i followed.
http://www.hiveworkshop.com/forums/...orials-279/multiple-creep-spawn-system-32436/
[WC3]Spawn
Events
Time - RoundWindow expires
Conditions
Actions
Set Lvl_num = (Lvl_num + 1)
For each (Integer A) from 1 to unit_amount[Lvl_num], do (Actions)
Loop - Actions
Set incrementx = 1
Set incrementy = 1
For each (Integer B) from 1 to 4, do (Actions)
Loop - Actions
Unit - Create 1 unit_type[Lvl_num] for Player 12 (Brown) at loc[incrementy] facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To center of map
Unit - Create 1 unit_type[Lvl_num] for Player 12 (Brown) at loc[(incrementy + 1)] facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To center of map Set incrementx = (incrementx + 1)
Set incrementy = (incrementy + 2)
Wait 0.75 seconds
For each (Integer A) from 1 to unit_amount_var_three[Lvl_num], do (Actions)
Loop - Actions
Set incrementx = 1
Set incrementy = 1
For each (Integer B) from 1 to 4, do (Actions)
Loop - Actions
Unit - Create 1 unit_type_var_three[Lvl_num] for Player 12 (Brown) at loc[incrementy] facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To center of map
Unit - Create 1 unit_type_var_three[Lvl_num] for Player 12 (Brown) at loc[(incrementy + 1)] facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To center of map
Set incrementx = (incrementx + 1)
Set incrementy = (incrementy + 2)
Wait 0.75 seconds
For each (Integer A) from 1 to unit_amount_var_two[Lvl_num], do (Actions)
Loop - Actions
Set incrementx = 1
Set incrementy = 1
For each (Integer B) from 1 to 4, do (Actions)
Loop - Actions
Unit - Create 1 unit_type_var_two[Lvl_num] for Player 12 (Brown) at loc[incrementy] facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To center of map
Unit - Create 1 unit_type_var_two[Lvl_num] for Player 12 (Brown) at loc[(incrementy + 1)] facing Default building facing degrees
Unit - Order (Last created unit) to Attack-Move To center of map
Set incrementx = (incrementx + 1)
Set incrementy = (incrementy + 2)
Wait 0.75 seconds[/WC3]
Last edited: