ive made a skill which lays down a mine n explode upon contact, stunning a target (regains conscienceness if attacked).
heres the trigger
Lay Trap
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Stun Trap
Actions
Unit - Create 1 Dummy for (Triggering player) at (Position of (Triggering unit)) facing Default building facing degrees
Set Bomb[1] = (Last created unit)
Unit - Add Concusive to Bomb[1]
Unit - Order Bomb[1] to Undead Dreadlord - Sleep (Random unit from (Units within 200.00 of (Position of Bomb[1]) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
Wait 2.00 seconds
Unit - Remove Bomb[1] from the game
the problem is how do i remove the limit of 1 bomb at a time cause the variable is fix to only 1 unit at a time. theres probably a custom script out there (not an expert in that so much help is needed)
heres the trigger
Lay Trap
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Stun Trap
Actions
Unit - Create 1 Dummy for (Triggering player) at (Position of (Triggering unit)) facing Default building facing degrees
Set Bomb[1] = (Last created unit)
Unit - Add Concusive to Bomb[1]
Unit - Order Bomb[1] to Undead Dreadlord - Sleep (Random unit from (Units within 200.00 of (Position of Bomb[1]) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
Wait 2.00 seconds
Unit - Remove Bomb[1] from the game
the problem is how do i remove the limit of 1 bomb at a time cause the variable is fix to only 1 unit at a time. theres probably a custom script out there (not an expert in that so much help is needed)