- Joined
- Jan 12, 2011
- Messages
- 110
Hello guys,
I'd like to ask you to help me with one trigger.
Let's look how does it look like at first:
What does it do?
First, whenever unit dies (Poison Trap) it saves its position and all enemy units in 250 area of the dying trap into variables. Then it creates 15 dummy units (i've got a bug, name of that dummies really isn't Cenarius, but Trap Dummy).
Then it gives them Shadow Strike abillity, strikes up to 15 enemies in area by spell ShSt (which is the same level as the dying Poison Trap - up to 10 levels), and then removes those units after 1s.
Well, it works pretty well for me, but I'm afraid of some leaks and glitches etc., so, I'd be pleased, if you could help me to shorten it, or tell me, how to improve it's current standing.
PS: I tried for hours to make loop to create all those units unsuccessfully, no unit was created (I used: For each Integer A, which should be from 1 to 15, but it created no unit.
Also, trying to add them into unit group failed (add last created unit into XXX unit group).
Thank you very much,
Donach
I'd like to ask you to help me with one trigger.
Let's look how does it look like at first:
What does it do?
First, whenever unit dies (Poison Trap) it saves its position and all enemy units in 250 area of the dying trap into variables. Then it creates 15 dummy units (i've got a bug, name of that dummies really isn't Cenarius, but Trap Dummy).
Then it gives them Shadow Strike abillity, strikes up to 15 enemies in area by spell ShSt (which is the same level as the dying Poison Trap - up to 10 levels), and then removes those units after 1s.
Well, it works pretty well for me, but I'm afraid of some leaks and glitches etc., so, I'd be pleased, if you could help me to shorten it, or tell me, how to improve it's current standing.
PS: I tried for hours to make loop to create all those units unsuccessfully, no unit was created (I used: For each Integer A, which should be from 1 to 15, but it created no unit.
Also, trying to add them into unit group failed (add last created unit into XXX unit group).
Thank you very much,
Donach