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

Area Damage Buff

Status
Not open for further replies.
Level 2
Joined
Aug 19, 2014
Messages
6
Hey guys!

Im stuck again with my map because of a spell i cant get to work. In the map i have got 2 buffs. The unit with buff 1 should damage all units in range X with buff 2 and reverse. Of coure only the ones with this specific other buff. Im not sure if this is possible at all..

Greets, Fl3tsch3r
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
Hey guys!

Im stuck again with my map because of a spell i cant get to work. In the map i have got 2 buffs. The unit with buff 1 should damage all units in range X with buff 2 and reverse. Of coure only the ones with this specific other buff. Im not sure if this is possible at all..

Greets, Fl3tsch3r

do you tryed deal damage with trigger (unit)

sorry this got leak but i show this only like example, if this is what do u mean?
  • Untitled Trigger 001
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to *AOE SKILL*
      • ((Casting unit) has buff *BUFF1*) Equal to True
    • Actions
      • Unit Group - Pick every unit in (Units within 512.00 of (Position of (Triggering unit))) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) has buff *BUFF2*) 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
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
So you got a passive ability of an item or a normal ability ... That's easy to do it via triggers.
Look at these triggers :
  • Add Buff1 units
  • Events
    • Unit - A Unit learns a skill
  • Conditions
    • (Learned ability) Equal To (Buff 1 Ability) == ( I am not sure if this exists, otherwise use another event ==
  • Actions
    • Unit - Add (Triggering Unit) to Buff1_Group
  • Add Buff1 units
  • Events
    • Unit - A Unit learns a skill
  • Conditions
    • (Learned ability) Equal To (Buff 2 Ability) == (Again I don't know if there is Learned Ability otherwise use any event to detect passive abilities)
  • Actions
    • Unit - Add (Triggering Unit) to Buff2_Group
  • Damaging Trigger
  • Events
    • Time - Every 1 seconds of game time (Depends on how much time between each damage , if there you just use damage one time only then you can use actions in your spell trigger but here is a periodic trigger , it may cause lag if there are many buff1 and buff2 users but don't worry I just guess)
  • Conditions
  • Actions
    • Unit Group - Pick Every Unit in Buff1_Group and do actions
      • Loop - Actions
        • If/Then/Else do multiple actions
          • Conditions
            • (Picked Unit) has buff of type (Buff1) Equal to True
          • Actions
            • Set Buff1_Owner = (Picked Unit)
            • Unit Group - Pick Every Unit in Buff2_Group and do actions
              • Loop - Actions
                • If/Then/Else do multiple actions
                  • Conditions
                    • (Picked Unit) has buff of type (Buff2) Equal to True
                  • Actions
                    • Unit - Cause Buff1_Owner to damage (Picked Unit) ... complete it
 
Status
Not open for further replies.
Top