• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] "Pick Every Unit > Damage Picked Unit" dealing damage to only one unit.

Status
Not open for further replies.
Level 1
Joined
Oct 18, 2021
Messages
2
I'm trying to create an ability that links multiple units together, sharing the damage a unit takes with all the other linked units.

However, when I test it, only one unit takes damage.
I'm using Bribe's Damage Engine 3A.0.0.0, and the damage tags/numbers show up above all the units, but no damage is being dealt to them.
  • Cursed Damage Share
    • Events
      • Game - DamageEvent becomes Equal to 1.00
    • Conditions
      • IsDamageSpell Equal to False
      • (DamageEventTarget has buff Curse) Equal to True
    • Actions
      • Set Curse_Group = (Units in (Playable map area))
      • Set Curse_Target = DamageEventTarget
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in Curse_Group and do (Actions)
        • Loop - Actions
          • Set TempUnit = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • TempUnit Not equal to Curse_Target
              • (TempUnit has buff Curse) Equal to True
            • Then - Actions
              • Unit - Cause DamageEventSource to damage TempUnit, dealing DamageEventAmount damage of attack type Spells and damage type Universal
            • Else - Actions

Any help appreciated.
 
Level 21
Joined
Mar 29, 2020
Messages
1,237
sounds very similar to an ability in a map of mine.

check out the ability "carried" for the hero "team killer" :


it's unprotected so you can just copy the ability from there and change it as you wish (and if you end up using it just give me credit :mwahaha::mwahaha::mwahaha:).
 
Level 1
Joined
Oct 18, 2021
Messages
2
sounds very similar to an ability in a map of mine.

check out the ability "carried" for the hero "team killer" :


it's unprotected so you can just copy the ability from there and change it as you wish (and if you end up using it just give me credit :mwahaha::mwahaha::mwahaha:).
I'm unable to load your map. "Level Info data missing or invalid."

I'm running 1.31 PTR version if that's a problem.
 
Status
Not open for further replies.
Top