• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Spell] Little help

Status
Not open for further replies.
Level 5
Joined
Jan 12, 2010
Messages
132
Any1 know why this trigger dont fire? Debufff message is not show and nothing happens.Skill is based on Black Arrow ability.What I`m trying to do is:When a unit is damaged with psyhical damage while black arrow activated to apply a custom debuff.
  • Open wounds
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
      • (GDD_DamagedUnit has buff Black Arrow) Equal to True
    • Actions
      • Unit - Remove Black Arrow buff from GDD_DamagedUnit
      • Game - Display to (All players) the text: aaa
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of GDD_DamageSource) Equal to Warewolf
          • (Random integer number between 1 and 100) Less than or equal to 25
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (GDD_DamagedUnit is in Wounds_gr) Equal to False
            • Then - Actions
              • Set Hash_unit = GDD_DamagedUnit
              • Custom script: set udg_Hash_key = GetHandleId(udg_Hash_unit)
              • Hashtable - Save 5.00 as 1 of Hash_key in Wounds_hash
              • Hashtable - Save Handle OfGDD_DamageSource as 2 of Hash_key in Wounds_hash
              • Unit Group - Add Hash_unit to Wounds_gr
            • Else - Actions
              • Set Hash_unit = GDD_DamagedUnit
              • Custom script: set udg_Hash_key = GetHandleId(udg_Hash_unit)
              • Hashtable - Save 5.00 as 1 of Hash_key in Wounds_hash
              • Hashtable - Save Handle OfGDD_DamageSource as 2 of Hash_key in Wounds_hash
        • Else - Actions
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Also note that the ability counts as an orb ability and you can't have more that one of those on a unit at a time, the others won't work.

Orb abilities are the abilities that Orb items have, items like Orb of Corruption, Orb of Frost, Orb of Fire etc.

The abilities are name usually Item Attack -some- Bonus.
 
Status
Not open for further replies.
Top