hi guys im trying to create an ability called spider mine from the terran vulture but it doesnt work XD surely has many errors in it:
but i cant figure out what
Code:
Untitled Trigger 005
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Spidermine
Actions
Unit - Create 1 spider mine for (Owner of (Triggering unit)) at (Position of (Casting unit)) facing Default building facing degrees
Set PointSpiderMine = ((Position of (Casting unit)) offset by (0.00, 0.00))
Set Spidermine[1] = (Last created unit)
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is in (Units within 500.00 of PointSpiderMine)) Equal to True
Then - Actions
Unit - Add Crow Form to Spidermine[1]
Unit - Add Kaboom! (Goblin Sapper) to Spidermine[1]
Unit - Order Spidermine[1] to Neutral - Kaboom! (Picked unit)
but i cant figure out what