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

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