Completely confused, must have overlooked something

Stryke

New Member
Reaction score
6
Trigger:
  • Kage Loop
    • Events
      • Time - Every 0.15 seconds of game time
    • Conditions
    • Actions
      • Set kagePoint = (kagePoint offset by (Real(kageCount)) towards (Angle from kagePoint to (Position of kageTarget)) degrees)
      • Set kageCount = (kageCount + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Distance between kagePoint and (Position of kageTarget)) Less than or equal to 10.00
        • Then - Actions
          • Unit - Pause kageTarget
        • Else - Actions
          • Unit - Create 1 Kage Mane for (Owner of kageCaster) at kagePoint facing (Angle from kagePoint to (Position of kageTarget)) degrees
          • Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • kageCount Greater than 100
        • Then - Actions
          • Unit Group - Pick every unit in (Units owned by (Owner of kageCaster) of type Kage Mane) and do (Actions)
            • Loop - Actions
              • Unit - Remove (Picked unit) from the game
          • Unit - Unpause kageCaster
          • Unit - Unpause kageTarget
          • Trigger - Turn off (This trigger)
        • Else - Actions

So what this spell does is create a line of units that chase an enemy, and when it reaches the opponent, it stuns them.

However, for some reason I probably overlooked the distance between each unit being made per loop gets bigger each time. From here: Set kageCount = (kageCount + 1), it should only increment its distance by 1.

I'm really clueless, and it's probably something stupid but I could really use the help.. thanks!
 

Sirroelivan

Gunnerkrigg Court
Reaction score
95
You're resetting the original KagePoint as well every cycle, besides setting KageCount higher, one of both will suffice for what you're trying to achieve.

So just removing KageCount and setting KagePoint to
"KagePoint ofset by 1 towards..."
should do the trick.
 
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