- Joined
- Dec 3, 2020
- Messages
- 969
So I know people have made this thread many times but I tried copying from others' solutions and nothing seems to work...
I already have a working custom Entangling Roots ability working with dummy units, using Faerie Fire as a base spell.
For the Mass Polymorph spell I am using Dispel Magic as a base spell and it it used inside a Spell Book (non heroic spell; not item).
And yes, the dummy unit is set up correctly, since it works for my other ability (entangling roots)
And yes, the Polymorph ability that the dummy uses does not require the upgrade and the dummy has enough mana and cast range and vision.
PS: the units seem to turn into sheep for a milisecond? At least the sheep sound is made when Mass Polymorph is being cast and the little cloud that appears when a unit is being transformed appears.
The duration for heroes and non heroes is 20 seconds of the Polymorph...
My trigger:
I already have a working custom Entangling Roots ability working with dummy units, using Faerie Fire as a base spell.
For the Mass Polymorph spell I am using Dispel Magic as a base spell and it it used inside a Spell Book (non heroic spell; not item).
And yes, the dummy unit is set up correctly, since it works for my other ability (entangling roots)
And yes, the Polymorph ability that the dummy uses does not require the upgrade and the dummy has enough mana and cast range and vision.
PS: the units seem to turn into sheep for a milisecond? At least the sheep sound is made when Mass Polymorph is being cast and the little cloud that appears when a unit is being transformed appears.
The duration for heroes and non heroes is 20 seconds of the Polymorph...
My trigger:
-
Events
-
Unit - A unit Starts the effect of an ability
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Mass Polymorph
-
-
Actions
-
if (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
if - Conditions
-
Then - Actions
-
Set MassPolymorphPoint = (Target point of ability being cast)
-
Set MassPolymorphGroup = (Units within 150.00 of MassPolymorphPoint matching (((Matching unit is A ground unit) Equal to True))
-
Unit Group - Pick every unit MassPolymorphGroup and do (Actions)
-
Loop - Actions
-
Unit - Create 1 Dummy Unit for Player 2 (Blue) at MassPolymorphPoint facing Default building facing degrees
-
Unit - Add Polymorph to Last created unit
-
Unit - Order (Last created unit) to Human Sorceress - Polymorph (Picked unit)
-
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
-
-
-
Custom script: call RemoveLocation (udg_MassPolymorphPoint)
-
Custom script: call DestroyGroup (udg_MassPolymorphGroup)
-
-
Else- Actions
-
Do nothing
-
-
-
Last edited: