xplicitjohn
X
xplicitjohn
I want to make it that hero needs to be near a building inorder for the mech spell to work. Im using the druid of claw's bear form spell btw.
I tried something like this :
Also, when the trigger tells the unit to stop. The transformation appears ( The ability to return back to normal). But the hero has not transformed yet.
I tried something like this :
-
Mech
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Mech
-
-

Actions
-


Set MechLocation = (Position of (Casting unit))
-


Set MechGroup = (Units within 400.00 of MechLocation)
-


Unit Group - Pick every unit in MechGroup and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Unit-type of (Picked unit)) Equal to Mech Upgrade Centre
-
-





Then - Actions
-






Do nothing
-
-





Else - Actions
-






Unit - Order (Casting unit) to Stop
-
-
-
-
-


Custom script: call DestroyGroup(udg_MechGroup)
-


Custom script: call RemoveLocation(udg_MechLocation)
-
-
Also, when the trigger tells the unit to stop. The transformation appears ( The ability to return back to normal). But the hero has not transformed yet.





