• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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