Got problems with Dummy spells

zero9x

Active Member
Reaction score
1
Hey guys, i have soooo many problems with spells using dummy to cast it, for example like this:

When you attack, you has 17% chance to move attacked unit to you and slow it.
Trigger:
  • Events
    • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) belongs to an enemy of (Owner of (Attacked unit))) Equal to (==) True
      • (Level of Hook Strike for (Attacking unit)) Greater than (>) 0
    • Actions
      • Set AALoc1 = (Position of (Attacking unit))
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Random percentage) Less than or equal to (<=) (((Real((Level of Hook Strike for (Attacking unit)))) x 0.00) + 17.00)
          • Then - Actions
            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • ((Attacked unit) is A structure) Equal to (==) True
              • Then - Actions
                • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (30.00 + (10.00 x (Real((Level of Hook Strike for (Attacking unit)))))) damage of attack type Hero and damage type Normal
              • Else - Actions
                • Unit - Create 1 Craggy Exterior Dummy for (Owner of (Attacking unit)) at AALoc1 facing Default building facing (270.0) degrees
                • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
                • Unit - Add Hook Strike Slow to (Last created unit)
                • Unit - Order (Last created unit) to Human Sorceress - Slow (Attacked unit)
                • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (30.00 + (10.00 x (Real((Level of Hook Strike for (Attacking unit)))))) damage of attack type Hero and damage type Normal
                • Unit - Move (Attacked unit) instantly to AALoc1
          • Else - Actions
      • Custom script: call RemoveLocation(udg_AALoc1)


Like this, but now, it can only slow or move attacked unit, not both of them. Can anyone answer me, how to fix it :((
 

Juggernaut

I don't know what to change it to
Reaction score
33
First of all change all "Attacked unit" to "triggering unit."
Leave "Attacking unit" as is.
And then change this: "(Random percentage) Less than or equal to (<=) (((Real((Level of Hook Strike for (Attacking unit)))) x 0.00) + 17.00)"
with : " (Random percentage) Less than or equal to <%chance>" Remove the other part, since you multiply it by 0 and it returns 0. So just make it Random percentage less than or equal to 17 Also set for dummy "Art animation Blend time, cast point and cast backswing" to 0 so that the dummy can cast the spell faster.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top