• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] help me with fists of fury spell

Status
Not open for further replies.
Fists of fury deals 20 damage every 0.25 sec to units infront of the monk and stuns them. But doesn't work. What is wrong? (btw I tried with facing and facing - 180)

  • fof cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Fists of Fury (Monk)(W)
    • Actions
      • Set FoF_Loc[1] = (Position of (Casting unit))
      • Set FoF_Loc[1] = (FoF_Loc[1] offset by 150.00 towards ((Facing of (Casting unit)) - 180.00) degrees)
      • Set FoF_Gr = (Units within 300.00 of FoF_Loc[2] matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True))
      • Trigger - Turn on fof loop <gen>
      • Countdown Timer - Start Timer_FoF as a One-shot timer that will expire in 4.00 seconds
      • Unit - Set Hero_units[MonkNumber] movement speed to 0.00
  • fof loop
    • Events
      • Time - Every 0.25 seconds of game time
    • Conditions
    • Actions
      • Animation - Play Hero_units[MonkNumber]'s attack animation
      • Unit Group - Pick every unit in FoF_Gr and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 20.00)
          • Unit - Order Caster_2 to Human Mountain King - Storm Bolt (Picked unit)
  • fof expire
    • Events
      • Time - Timer_FoF expires
    • Conditions
    • Actions
      • Trigger - Turn off fof loop <gen>
      • Unit - Set Hero_units[MonkNumber] movement speed to (Default movement speed of Hero_units[MonkNumber])
      • Custom script: call RemoveLocation(udg_FoF_Loc[1])
      • Custom script: call RemoveLocation(udg_FoF_Loc[2])
      • Custom script: call DestroyGroup(udg_FoF_Gr)
 
your mistake :
  • Set FoF_Loc[1] = (FoF_Loc[1] offset by 150.00 towards ((Facing of (Casting unit)) - 180.00) degrees)
it suppose to be
  • Set FoF_Loc[2] = (FoF_Loc[1] offset by 150.00 towards ((Facing of (Casting unit)) - 180.00) degrees)
else the array is overriden.

If that doesn't work, I'll take a closer look at the code.
 
Status
Not open for further replies.
Top