Hi, I am trying to make a small system, where if you run, you turn invisible, but if you stop moving, you can be spotted.
I have made a spell based on immolation since you can turn that on off quickly.
I use these 3 triggers for it:
Vampiric Speed Cast
My hero has a speed base of 270, 0min 0max.
And every 2 seconds when I'm supposed to get a message telling me what speed my unit has, even if I'm standing still, it fetches me the message 270.000
and if I turn on the Vampiric Speed spell, it says that his speed is 400.000 and then it turns on the invisibility.
Need help
I have made a spell based on immolation since you can turn that on off quickly.
I use these 3 triggers for it:
Vampiric Speed Cast
-
Vampiric Speed Cast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Vampiric Speed
-
-
Actions
-
Unit Group - Add (Casting unit) to VampiricSpeed
-
Unit - Set (Casting unit) movement speed to 500.00
-
Wait 1.00 seconds
-
Wait until (((Casting unit) has buff Vampiric Speed) Equal to False), checking every 1.00 seconds
-
Unit - Remove Permanent Invisibility from (Casting unit)
-
Unit - Set (Casting unit) movement speed to 270.00
-
Unit Group - Remove (Casting unit) from VampiricSpeed
-
-
-
Vampiric Speed Invisibility
-
Events
-
Time - Every 0.50 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in VampiricSpeed and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Current movement speed of (Picked unit)) Greater than or equal to 400.00
-
-
Then - Actions
-
Unit - Add Permanent Invisibility to (Picked unit)
-
Game - Display to (All players) the text: Adding invis.
-
-
Else - Actions
-
Unit - Remove Permanent Invisibility from (Picked unit)
-
Game - Display to (All players) the text: Removing invis.
-
-
-
-
-
-
-
Speed check
-
Events
-
Time - Every 2.00 seconds of game time
-
-
Conditions
-
Actions
-
Game - Display to (All players) the text: (String((Current movement speed of Vampire 0000 <gen>)))
-
-
My hero has a speed base of 270, 0min 0max.
And every 2 seconds when I'm supposed to get a message telling me what speed my unit has, even if I'm standing still, it fetches me the message 270.000
and if I turn on the Vampiric Speed spell, it says that his speed is 400.000 and then it turns on the invisibility.
Need help
