Hi guys!
As the title says, I have a problem with my custom ability.
It is supposed to work kinda like a normal life drain, but I want it to keep the targeted unit in place and the casting unit can still move freely while keeping the effet of the ability.
Here is what I have managed to brew:
And here is the trigger that is responsible for dealing damage to the target unit:
Now the main problem is, that the "remove unit from unit group function" is not working properly (or at least I believe so),
and so the target unit that is added to a group that is supposed to take damage every second takes damage continously,
because it seems to still be in that unit group.
Also, please do not pay heed to any leaks or so, as I have just only started to learn GUI and I'm just tinkering around and exploring possibilities
(besides, I don't really know how to use custom script function yet
)
Any help is appreciated!
As the title says, I have a problem with my custom ability.
It is supposed to work kinda like a normal life drain, but I want it to keep the targeted unit in place and the casting unit can still move freely while keeping the effet of the ability.
Here is what I have managed to brew:
-
ReaperDeathGrip
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Death Grip
-
-
Actions
-
Unit Group - Add (Target unit of ability being cast) to DeathGripTarget
-
Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using war3mapImported\Stranglehold.mdx
-
Special Effect - Play Special Effect: DeathGripSEffect, Animation: Birth
-
Set DeathGripSEffect = (Last created special effect)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Target unit of ability being cast) is in DeathGripTarget) Equal to True
-
-
Then - Actions
-
Wait 7.50 seconds
-
Special Effect - Destroy DeathGripSEffect
-
Unit Group - Remove (Target unit of ability being cast) from DeathGripTarget
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
DeathGripLifeStealON
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(DeathGripTarget is empty) Equal to True
-
-
Then - Actions
-
Do nothing
-
-
Else - Actions
-
Unit Group - Pick every unit in DeathGripTarget and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 15.00))
-
-
-
-
Now the main problem is, that the "remove unit from unit group function" is not working properly (or at least I believe so),
and so the target unit that is added to a group that is supposed to take damage every second takes damage continously,
because it seems to still be in that unit group.
Also, please do not pay heed to any leaks or so, as I have just only started to learn GUI and I'm just tinkering around and exploring possibilities
(besides, I don't really know how to use custom script function yet
Any help is appreciated!