• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

I need help making a Hero ability

Status
Not open for further replies.

Gojira2000

G

Gojira2000

I need to make a hero ability that grants the caster a 100% chance to critical strike for 6 consecutive attacks

If I need to explain further please ask, and any help will be greatly appreciated!:ogre_hurrhurr:
 
  • Setup
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Roar
    • Actions
      • Unit - Add Critical Strike to (Triggering unit)

  • Remove Ability
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) has buff Roar) Equal to True
    • Actions
      • Set Count_Attack = (Count_Attack + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Count_Attack Equal to 7
        • Then - Actions
          • Unit - Remove Critical Strike from (Attacking unit)
        • Else - Actions

why am i using roar: because we can trace who is attacking the unit, if attacking unit have roar buff start counting the number after 6 it will remove the ability.
why am i using count_Attack Equal to 7?: because if u make equal to 6 by the time it reach 6 the ability already remove, meaning u only have 5 hit.
Suggestion: i prefer u use book of spell and hide book of spell. :ogre_haosis::ogre_haosis:
 
well, this will work only if there is just one unit with that spell, if you want more, you have to attach the attack count to a particular unit (I would use hashtables, if you dont know how, just ask)
 
Status
Not open for further replies.
Back
Top