H
HBtheOnly
Guest
Okay I'm basically trying to make an ability based off windwalk, which when used will create a dummy unit to use faerie fire on a random unit in radius of 2000 but the dummy unit never seems to use the move on a random unit at all. Here's the trigger.
Also I'm still stuck on another problem if this were to work because I want it so that if you cancel/break out of windwalk, the faerie fired unit loses their faerie fire as well, how would I go about doing this? Would be really grateful for any help possible including problems with my trigger. Also I'm thinking I should use Last created unit instead of setting the dummy to a variable.
Code:
Stalk
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Stalk
Actions
Set StalkCasterP[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))
Unit - Create 1 Stalk Dummy for (Owner of (Triggering unit)) at StalkCasterP[(Player number of (Owner of (Triggering unit)))] facing Default building facing degrees
Set StalkerUnit[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Unit - Add a 4.00 second Generic expiration timer to StalkerUnit[(Player number of (Owner of (Triggering unit)))]
Unit - Order StalkerUnit[(Player number of (Owner of (Triggering unit)))] to Night Elf Druid Of The Talon - Faerie Fire (Random unit from (Units within 2000.00 of (Position of StalkerUnit[(Player number of (Owner of (Triggering unit)))])))
Custom script: call RemoveLocation(udg_StalkCasterP[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
Also I'm still stuck on another problem if this were to work because I want it so that if you cancel/break out of windwalk, the faerie fired unit loses their faerie fire as well, how would I go about doing this? Would be really grateful for any help possible including problems with my trigger. Also I'm thinking I should use Last created unit instead of setting the dummy to a variable.