• 🏆 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!

Defend Hero Ability

Status
Not open for further replies.
Level 5
Joined
Dec 22, 2007
Messages
103
Is there any way I can get Defend to reduce all damage types? Only Piercing and magic are reduced. I also want to add a shield bash passive to the hero
when active; however, I'm unsure as to how I can trigger that differently per level of the Defend ability. No condition I'm aware of checks the level of an
ability when that ability is cast, thus my dilemma.
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
Is there any way I can get Defend to reduce all damage types? Only Piercing and magic are reduced. I also want to add a shield bash passive to the hero
when active; however, I'm unsure as to how I can trigger that differently per level of the Defend ability. No condition I'm aware of checks the level of an
ability when that ability is cast, thus my dilemma.

as for giving shield bash passive and condition that checks the level of ability.. here it is ..

  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Level of (Ability being cast) for (Triggering unit)) Equal to 1
      • (Ability being cast) Equal to Defend
    • Actions
      • Unit - Add Shield Bash to (Triggering unit)
you can find the condition on "Integer comparison"

NOTE : if you want to add passive abilities to a unit, you should put it in a spellbook then add the spellbook to the unit and disable the spellbook or else you would lost 1 abilities slot for that abilities

about reducing all type damages, i'm not really sure ...
 
Last edited:
Level 5
Joined
Dec 22, 2007
Messages
103
Thanks for the help, I'm still having issues though... I tried triggering the adding of abilities; however, no changes I make seem to have any effect. I
believe the [Event - Unit starts the effect of an ability] is not being triggered when I use the defend ability. Here's the trigger I made.
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Shield Guard
    • (Triggering unit) Equal to Darium
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Level of Shield Guard for (Triggering unit)) Equal to 1
    • Then - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ShieldGuardOn Equal to False
        • Then - Actions
          • Set ShieldGuardOn = True
          • Unit - Set level of Shield Bash for (Triggering unit) to 2
          • Unit - Set level of Shield Deflection for (Triggering unit) to 2
        • Else - Actions
          • Set ShieldGuardOn = False
          • Unit - Set level of Shield Bash for (Triggering unit) to 1
          • Unit - Set level of Shield Deflection for (Triggering unit) to 1
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Level of Shield Guard for (Triggering unit)) Equal to 2
    • Then - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ShieldGuardOn Equal to False
        • Then - Actions
          • Set ShieldGuardOn = True
          • Unit - Set level of Shield Bash for (Triggering unit) to 3
          • Unit - Set level of Shield Deflection for (Triggering unit) to 3
        • Else - Actions
          • Set ShieldGuardOn = False
          • Unit - Set level of Shield Bash for (Triggering unit) to 1
          • Unit - Set level of Shield Deflection for (Triggering unit) to 1
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Level of Shield Guard for (Triggering unit)) Equal to 3
    • Then - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ShieldGuardOn Equal to False
        • Then - Actions
          • Set ShieldGuardOn = True
          • Unit - Set level of Shield Bash for (Triggering unit) to 4
          • Unit - Set level of Shield Deflection for (Triggering unit) to 4
        • Else - Actions
          • Set ShieldGuardOn = False
          • Unit - Set level of Shield Bash for (Triggering unit) to 1
          • Unit - Set level of Shield Deflection for (Triggering unit) to 1
    • Else - Actions
I originally tried putting the 2 passives in Spell books and disabling it, but due to the trigger not running, I thought I might not have been able to Level up
abilities in the spell book. I ended up adding an additional level to each of the passives and making their level 1 have no effect. That's where I am currently in this dilemma.
 
Status
Not open for further replies.
Top