Okay so i have a trigger that spawns 4 Invulnerable/Unselectable (annoying, hit you) units in a region every 15 seconds (Periodic Event)
With a condition of "the players kill count (Titled Unit Dies B1)" is <= 0 (Zero in this case just for testing sake)
The Desired effect is
once the player kills the "boss" (making the "Unit Dies" variable == 1) i want to kill all the units created by the trigger. (And yes i give it a condition of "Unit Dies" >= 1)
With the help of Nash|347 i figured out how to go about this... by creating a unit group and picking each unit as its added to said group and then killing all picked units with a condition of "Unit Dies B1 >= 1".
The problem I've come across is
The only problem is when i create a global variable (unit group) and add each unit to that group, as they are created, instead of a local variable (unit group) and then make a separate trigger that kills them automatically instead of every 15 seconds, it doesn't work at all they just stay alive.
Neither method works (global or local variable unit group) in getting them killed.
Any help would be appreciated. Sorry if its something stupid and simple but I'm not a trigger man at all xD
the spine crawlers are not killed by the player at all, the spine crawlers are just part of the fight as in they attack you at slow rates while your fighting the boss and spawn in random locations in the boss fight area every 15 seconds. i have it checking if unit dies b1 is >= 1 to know when to kill the spine crawlers, the unit dies b1 >= 1 is notification that the boss has died.
i still dont fully understand the workings of the trigger, i understand that one does not equal the other but i thought it was checking the condition of the variable. At any rate your solution worked out like a charm :D thanks alot.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Okay so i have a trigger that spawns 4 Invulnerable/Unselectable (annoying, hit you) units in a region every 15 seconds (Periodic Event)
With a condition of "the players kill count (Titled Unit Dies B1)" is <= 0 (Zero in this case just for testing sake)
The Desired effect is
once the player kills the "boss" (making the "Unit Dies" variable == 1) i want to kill all the units created by the trigger. (And yes i give it a condition of "Unit Dies" >= 1)
With the help of Nash|347 i figured out how to go about this... by creating a unit group and picking each unit as its added to said group and then killing all picked units with a condition of "Unit Dies B1 >= 1".
The problem I've come across is
The only problem is when i create a global variable (unit group) and add each unit to that group, as they are created, instead of a local variable (unit group) and then make a separate trigger that kills them automatically instead of every 15 seconds, it doesn't work at all they just stay alive.
Neither method works (global or local variable unit group) in getting them killed.
Any help would be appreciated. Sorry if its something stupid and simple but I'm not a trigger man at all xD
Thanks in advance.
sorry but i dont understand this.
First you let the trigger go if Unit Dies B1 <= 0 then you check if its actually Unit Dies B1 >= 1
Its seems like player have <1sec window to cause boss's death to kill spine crawlers
You know you could do like
Any unit dies,
con: unit type of boss's unit
pick all spine crawlers in region
kill picked
the spine crawlers are not killed by the player at all, the spine crawlers are just part of the fight as in they attack you at slow rates while your fighting the boss and spawn in random locations in the boss fight area every 15 seconds. i have it checking if unit dies b1 is >= 1 to know when to kill the spine crawlers, the unit dies b1 >= 1 is notification that the boss has died.
What i mean (if you didn't understand) Unit Dies B1 <= 0 is not Unit Dies B1 >= 1
@Nerfpl: Go
i still dont fully understand the workings of the trigger, i understand that one does not equal the other but i thought it was checking the condition of the variable. At any rate your solution worked out like a charm :D thanks alot.