• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

shields that block damage?

Status
Not open for further replies.
Level 4
Joined
Mar 27, 2009
Messages
66
how can you make a shield block an amount of damage a certain percent of the time, similar to dota?

example: how the vanguard item blocks 40 damage 70% of the time
 
Last edited:
Level 4
Joined
Aug 9, 2005
Messages
76
  • Shield Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (your Ability)
      • (Target unit ability being cast) is in SomeUnitGroup Equal to False
    • Actions
      • Set Test_DummyUnit = (Target unit of ability being cast)
      • Trigger - Add to Shield Heal <gen> the event (Unit - Test_DummyUnit Takes damage)
      • Unit Group - Add Test_DummyUnit to SomeUnitGroup
  • Shield Heal
    • Events
    • Conditions
      • ((Triggering unit) has buff (your Ability) Equal to True
    • Actions
      • Game - Display to (All players) the text: (String((Damage taken)))
      • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (Damage taken))
This is for a single target spell, perhaps you apply it to items.
 
Level 4
Joined
Mar 27, 2009
Messages
66
thank god, i was hoping there was a way without triggers...thank you.

+rep to both, well i can't give you +rep again cookie...gotta share the love according to that error message.
 
Status
Not open for further replies.
Top