ty, i try this now. Since i had already tried negative values and stuff, and nothing happened i realised i had to use a trigger. i might not have learnt anything now, but on the other hand i suck at triggers and i wouldn't have been able to make this on my own.
you set the minimum movement speed to -1, but you also need a guard with trigger. like :
-
defend on
-
Events
-
Unit - A unit Is issued an order with no target
-
Conditions
-
(String((Issued order))) Equal to defend
-
Actions
-
Unit - Set (Triggering unit) movement speed to 0.00
Ohh, and can this be used by multiple units at the same time?
yes, it a very simple trigger that without "wait" function...
Damn, it wont work. I checked all things a few times now. But how can i know that the trigger utilize the right ensnare?
You din't download my map?? i have done the skill in the map
http://www.hiveworkshop.com/forums/attachments/f98/44225d1230034065-make-unit-stationary-when-using-spell-defend.w3x
if you have check the trigger is prefectly same...
but you have many to check...
1st is the skill -> ensnare: (Copy ensnare from orc skill)
Techtree - Requirement = (Delete all)
Text - Editor Suffix = Custom (don't let u confuse when choosing)
Art - Missile Art = (Delete all)
Stat - Duration - Hero = 0.00 (forever)
Stat - Duration - Unit = 0.00 (forever)
Stat - Buff = (create a new buff in buff editor from any of buff. name it as "
Defend" or other) and
TWO time to the Stat - Buff field...
2nd the BUFF (Defend)->
to completely hide the buff
Close all value in
ART section, except icon, put the icon u like.
3rd the dummy ->
Add the skill you have created, "Ensnare Custom".
Art - animation - Cast Backswing = 0.000
Art - animation - Cast Point = 0.000
Art - Model File = .mdl (write yourself in "Custom")
Art - Shadow Image (unit) = none
Combat - Attack Enabled = None
Combat - Death Type = Can't raise, Does not decay
Movement - Speed Base = 0
Movement - Type = Fly
Stats - Mana Initial Amount = 1000000
Text - Name = Dummy