• 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] Every third cast AOE Damage.

Status
Not open for further replies.
Level 8
Joined
Jul 10, 2018
Messages
383
How do i make whenever a hero cast any ability 3 times or cast his abilities 3 times he will deal aoe damage near him.

I know some few basic stuff about damage detection but i can't figure this out.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,886
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Set VariableSet SpellCount = (SpellCount + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SpellCount Equal to 3
        • Then - Actions
          • Set VariableSet SpellCount = 0
          • Set VariableSet Point = (Position of (Triggering unit))
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units within 512.00 of Point.) and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked unit) belongs to an enemy of (Triggering player).) Equal to True
                • Then - Actions
                  • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
                • Else - Actions
          • Custom script: call RemoveLocation (udg_Point)
        • Else - Actions
 
Level 8
Joined
Jul 10, 2018
Messages
383
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Set VariableSet SpellCount = (SpellCount + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SpellCount Equal to 3
        • Then - Actions
          • Set VariableSet SpellCount = 0
          • Set VariableSet Point = (Position of (Triggering unit))
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units within 512.00 of Point.) and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked unit) belongs to an enemy of (Triggering player).) Equal to True
                • Then - Actions
                  • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
                • Else - Actions
          • Custom script: call RemoveLocation (udg_Point)
        • Else - Actions
wtf not even damage detection.. are you a magician?!?!?!
 
Status
Not open for further replies.
Top