- Joined
- Jul 21, 2015
- Messages
- 143
So I am trying to get an ability (life drain) to halt movement speed to 0 and then reset it back to normal. I created two triggers to do this but they don't seem to work. I altered life drain to mimic aerial shackles. The reason I don't just use that ability is because I am making a maze custom map and if a hero did aerial shackle the units would have to reset their triggers which i don't want to go through the effort of making.
BTW: shackles = my altered ability not Aerial Shackles
First Trigger:
First Trigger
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Shackles
Actions
Set Integer = (Integer((Current movement speed of (Target unit of ability being cast))))
Unit - Set (Target unit of ability being cast) movement speed to 0.00
Trigger - Turn on Second Trigger <gen>
Second Trigger (not initially on):
Second Trigger
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to Shackles
Actions
Unit - Set (Target unit of ability being cast) movement speed to (Real(Integer))
Trigger - Turn off (This trigger)
BTW: shackles = my altered ability not Aerial Shackles
First Trigger:
First Trigger
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Shackles
Actions
Set Integer = (Integer((Current movement speed of (Target unit of ability being cast))))
Unit - Set (Target unit of ability being cast) movement speed to 0.00
Trigger - Turn on Second Trigger <gen>
Second Trigger (not initially on):
Second Trigger
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to Shackles
Actions
Unit - Set (Target unit of ability being cast) movement speed to (Real(Integer))
Trigger - Turn off (This trigger)