im working on a defence map in which you are a terran unit which utilizer old protoss structures to help defend against the zerg rush.
so my current triggers for the zerg waves are:
-----
event; every 10 seconds of game time
action: Variable - Set level zerg = (level zerg + 1)
----
the next few are similar
---
basic zergling
Events
Timer - Every 10.0 seconds of Game Time
Local Variables
Conditions
1 <= level zerg <= 10
Actions
Unit - Create 2 Zergling for player 13 at zergwaves ralley facing zergwaves point1 (No Options)
Unit - Order (Last created unit) to ( Attack targeting central zergwaevs) (Replace Existing Orders)
the number of zerglings and type of zerg change each round and the conditon changes too so rounf 2 =
=---------------------------------
zerhgling2
Events
Timer - Every 10.0 seconds of Game Time
Local Variables
Conditions
2 <= level zerg <= 10
Actions
Unit - Create 3 Zergling for player 13 at zergwaves ralley facing zergwaves point1 (No Options)
Unit - Order (Last created unit) to ( Attack targeting central zergwaevs) (Replace Existing Orders)
-------------------------------
and changed each round
-------------
so what i am trying to do is each round having more and more zerg attack the terran base
HOWEVER in reality
the zerg spawn and then only a few out of the many that spawn actually go anywherwe and a few of those just turn round and go back to where they spawned!
Unit - Create 2 Zergling for player 13 at zergwaves ralley facing zergwaves point1 (No Options)
Unit - Order (Last created unit) to ( Attack targeting central zergwaevs) (Replace Existing Orders)
Unit - Create 3 Zergling for player 13 at zergwaves ralley facing zergwaves point1 (No Options)
Unit - Order (Last created unit) to ( Attack targeting central zergwaevs) (Replace Existing Orders)
This is the problem. Last Created Unit refers to a single unit, not all of the units you last created with one line. Are you trying to slowly increase the amount of zergling that spawn at a constant rate?
In the mean time, here's fixes for your triggers:
Quote:
Events
Timer - Every 10.0 seconds of Game Time
Local Variables
Conditions
1 <= level zerg <= 10
Actions
General - Pick each integer from 1 to 2, and do (Actions)
Actions
Unit - Create 1 Zergling for player 1 at zergwaves rally facing zergwaves point1 (No Options)
Unit - Order (Last created unit) to ( Attack targeting central zergwaves) (Replace Existing Orders)
Quote:
Events
Timer - Every 10.0 seconds of Game Time
Local Variables
Conditions
2 <= level zerg <= 10
Actions
General - Pick each integer from 1 to 3, and do (Actions)
Actions
Unit - Create 1 Zergling for player 1 at zergwaves rally facing zergwaves point1 (No Options)
Unit - Order (Last created unit) to ( Attack targeting central zergwaves) (Replace Existing Orders)
If you're making the number increase in a formulaic way, I would suggest a single trigger that using the 'level zerg' variable. For example, if you wanted increase the number of zergling spawning per level by 3, and increase the amount it increases by 1, I would do:
hi fuzz here
im working on a defence map in which you are a terran unit which utilizer old protoss structures to help defend against the zerg rush.
so my current triggers for the zerg waves are:
-----
event; every 10 seconds of game time
action: Variable - Set level zerg = (level zerg + 1)
----
the next few are similar
---
basic zergling
Events
Timer - Every 10.0 seconds of Game Time
Local Variables
Conditions
1 <= level zerg <= 10
Actions
Unit - Create 2 Zergling for player 13 at zergwaves ralley facing zergwaves point1 (No Options)
Unit - Order (Last created unit) to ( Attack targeting central zergwaevs) (Replace Existing Orders)
---------------------------------------------------
the number of zerglings and type of zerg change each round and the conditon changes too so rounf 2 =
=---------------------------------
zerhgling2
Events
Timer - Every 10.0 seconds of Game Time
Local Variables
Conditions
2 <= level zerg <= 10
Actions
Unit - Create 3 Zergling for player 13 at zergwaves ralley facing zergwaves point1 (No Options)
Unit - Order (Last created unit) to ( Attack targeting central zergwaevs) (Replace Existing Orders)
-------------------------------
and changed each round
-------------
so what i am trying to do is each round having more and more zerg attack the terran base
HOWEVER in reality
the zerg spawn and then only a few out of the many that spawn actually go anywherwe and a few of those just turn round and go back to where they spawned!
please help!
fuzz
This is the problem. Last Created Unit refers to a single unit, not all of the units you last created with one line. Are you trying to slowly increase the amount of zergling that spawn at a constant rate?
In the mean time, here's fixes for your triggers:
If you're making the number increase in a formulaic way, I would suggest a single trigger that using the 'level zerg' variable. For example, if you wanted increase the number of zergling spawning per level by 3, and increase the amount it increases by 1, I would do:
Ok, wtf is wrong with BBCode? It's extending the code tag for some reason... The quote tag is also not working correctly, I had to make two of them XD