• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Casted Spell Counting

Status
Not open for further replies.
Level 16
Joined
May 1, 2008
Messages
1,605
Seas =)

The plan is simple: If a hero cast 5 spells, some action should happen. But I got some problems. Each player can have this hero so I need to store the count for each player. And I need to reset the count after 5 casted spells.

It always get some bugged if I try it, so maybe someone can help me?

~ Thanks =)
 
And this doesn't work according to you?
  • Spell Count
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • Set SpellCount[(Player number of (Owner of (Triggering unit)))] = (SpellCount[(Player number of (Owner of (Triggering unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SpellCount[(Player number of (Owner of (Triggering unit)))] Equal to 5
        • Then - Actions
          • Set SpellCount[(Player number of (Owner of (Triggering unit)))] = 0
          • Do some actions
        • Else - Actions
Can you post your trigger here? ^^
 
Status
Not open for further replies.
Top