🏆 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!
Hey I want to make a trigger in which if a unit has mana shield actived it has a chance of reflecting the damage done to him back to the attacker... Can anyone help me?
Units is attacked
if attacked units had buff = to mana shield
cause attacked units to deal damage to attacked unit and so on
chance huh cant remember atm
You will need damage detection system for that, but i'm not sure how to use it... You will need it because there is no such thing/actions that would detect the damage done (there is damage taken, but it don't works)
Btw, sweet idea =D
This is somthing that i got it works the moment the attacked unit has the buff.
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (7.00 + (3.00 x (Real((Level of Open Wounds for Hero_BloodKnight))))) damage of attack type Normal and damage type Normal
Make a trigger with no events
Events
Conditions
---If Triggering Unit has Mana Shield Buff
Actions
---Cause Triggering Unit to damage (Event Damage Source) by (Damage Done) Attack type of spells etc
When Someone learns Mana Shield
if Level of its mana shield is 1 ( so it will be his first learning)
Add (Triggering Unit) takes damage event to First trigger
Only use for heroes
for units this would leak much
Don't forget that the shielded unit could be on low mana... then it's stupid when the manashield absorbs 6 damage and gives 150 damage back..you should calculate the damage done like this:
damageReturn = min( DamageDone, (Level of Mana Shield for (Damaged Unit) + 1 ) *0,5 * (Mana of Damaged unit) )
(If you are using the standard mana shield MP:HP ratios of 1/1,5/2. Otherwise you should adjust the formula.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.