Circling Around Hero by Trigger

romanandre

New Member
Reaction score
2
I'm trying to make this Water Shield to act like Lightning Shield and float around the hero but the orbs keeps increasing distance between the Hero and it goes up and down sometimes!! Please help!

Trigger:
  • Water Shield
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Water Shield
    • Actions
      • Set WaterShieldCaster = (Triggering unit)
      • Set WaterShieldCenter = (Position of (Triggering unit))
      • Set WaterShieldDistance = ((Position of WaterShieldCaster) offset by 150.00 towards WaterShieldReal degrees)
      • Unit - Create 1 Thrall Dummy Unit for (Owner of WaterShieldCaster) at WaterShieldDistance facing Default building facing degrees
      • Set WaterShieldUnit = (Last created unit)
      • Trigger - Turn on Water Shield Circle Around <gen>


Trigger:
  • Water Shield Circle Around
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Set WaterShieldReal = (WaterShieldReal + 6.00)
      • Unit - Move WaterShieldUnit instantly to ((Position of WaterShieldCaster) offset by (Distance between (Position of WaterShieldCaster) and (Position of WaterShieldUnit)) towards WaterShieldReal degrees)
 

Mythes

Member
Reaction score
7
Set WaterShieldDistance = ((Position of WaterShieldCaster) offset by 150.00 towards WaterShieldReal degrees)


You didn't specify what is WaterShieldReal before you call it in the trigger.
That is,
if you want to use a Real Variable in the trigger, you must specify it's value before using it in the trigger. You only specify the value of WaterShieldReal in the second trigger, which is activated in the end of the first trigger, whereas you have already "used" WaterShieldReal in a line.
Try specifying WaterShieldReal first in the first trigger.


Myt.
 

Dirac

22710180
Reaction score
147
I don't think that's the problem, i mean, thats A problem, but not THE problem.

this is causing your issues
offset by (Distance between (Position of WaterShieldCaster) and (Position of WaterShieldUnit))

set it to 150. instead
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Instead of triggering the whole thing, why not edit Orb of Slow to be the color/texture.
Check out my Feral Druid in my map, WoW3.
 

romanandre

New Member
Reaction score
2
Its working , thanks to mythes dirac you helped me to fix the trigger and thanks to wolfieeiflow I might use this idea later.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top