• 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.

[Spell] Double Attack Autocast

Status
Not open for further replies.
Level 4
Joined
Apr 23, 2011
Messages
88
So, I'm trying to make this ability but I'm stuck and I've been trying for a few hours.

How the ability should work:

1. The hero turns on autocast of Second Strike (a modified searing arrow)
2. The hero melee attacks
2. A very brief attack cooldown period
3. The hero melee attacks again (the second strike)
4. A normal attack cooldown period
5. The hero melee attacks
6. A very brief attack cooldown period
7. The hero melee attacks again (the second strike)
8. A normal attack cooldown period
9. The hero melee attacks
ETC.......

(Each of these attacks costs 1 mana (through the searing arrow ability))

I need to know how to:

A. Make the second strike actually happened right after the first melee attack

and

B.Make the attack the second attack occur after a normal cooldown period

Thanks for your help!!
 
Level 4
Joined
Apr 23, 2011
Messages
88
Yeah, I tried doing this by adding endurance aura on the first damage done to a unit by the Hero, then removing endurance aura and the buff on next damage done to a unit by the Hero. But it didn't work (first it wouldn't ever stop the fast attacking until i turned the autocast spell of; then, when I tweaked something, it would never start fast attacking).

I tried trigger with damage detection system because using Event: Unit Is Attacked didn't seem to work. I'll try this again, though and edit this post with the results.

EDIT: yeah, didn't work. here is the trigger i'm using:

1. Second Strike On
  • Events
    • Unit - A unit Is issued an order with no target
  • Conditions
    • (Issued order) Equal to (Order(flamingarrows))
  • Actions
    • Set OrcAssasincounter[0] = 0.00
    • Trigger - Turn on Second Strike <gen>
    • Trigger - Turn on Second Strike Off <gen>
    • Set u_OrcAssassin_wu[0] = (Ordered unit)
    • Trigger - Turn off (This trigger)
2. Second Strike Off
  • Events
    • Unit - A unit Is issued an order with no target
  • Conditions
    • (Issued order) Equal to (Order(unflamingarrows))
  • Actions
    • Trigger - Turn off Second Strike <gen>
    • Trigger - Turn on Second Strike On <gen>
    • Trigger - Turn off (This trigger)
3. Second Strike
  • Events
    • Unit - A unit Is attacked
  • Conditions
    • (Attacking unit) Equal to u_OrcAssassin_wu[0]
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • OrcAssasincounter[0] Equal to 0.00
      • Then - Actions
        • Unit - Add Second Strike Attack Speed Boost to u_OrcAssassin_wu[0]
        • Unit - Set level of Second Strike Attack Speed Boost for u_OrcAssassin_wu[0] to (Level of Second Strike Attack Speed Boost for u_OrcAssassin_wu[0])
        • Set OrcAssasincounter[0] = 1.00
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • OrcAssasincounter[0] Equal to 1.00
      • Then - Actions
        • Unit - Remove Second Strike Attack Speed Boost from u_OrcAssassin_wu[0]
        • Unit - Remove Endurance Aura buff from u_OrcAssassin_wu[0]
        • Set OrcAssasincounter[0] = 0.00
      • Else - Actions
 
Last edited by a moderator:
Level 4
Joined
Apr 23, 2011
Messages
88
thanks for that info. changed.

also, i think i had a slight trigger logic problem that i figured out now. thx much!

congrats on winning that thing, btw; you really are helpful :)
 
Level 2
Joined
Jan 19, 2011
Messages
19
To post triggers in a nicer way, write [TRIGGER[ (with the second wrap thing in the other way) before the trigger, and [/TRIGGER[ after the second.
 
Status
Not open for further replies.
Top