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

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 =)
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
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