ShadowDestro
New Member
- Reaction score
- 1
Is there an ability in Warcraft 3 that will reduce all physical damage taken by a %?
Is there an ability in Warcraft 3 that will reduce all physical damage taken by a %?
Berzerk
You could try Berserk with a negative field where it says increased damage...it could possible lower it
I've been searching for the solution to this problem for a long time, and I've finally found one.
Normally you'd think you could use the Damage Taken event, and simply add a % of the damage taken back to the unit's life right? But what actually happens is the damage isn't applied to the unit until AFTER triggers with damage taken events are run, really annoying!
I looked through various posts about the subject, and one guy suggested starting a countdown timer that expires in 0 seconds, and apply the necessary healing then, and it works!
First, you need to create a damage taken event trigger. It only works with specific units, but there is a way around that. You can add an event to trigger for any unit taking damage with something like this
Event - Unit enters (Playable map area)
Add to "Damage Trigger" this event "Entering unit - takes damage"
Now, in the "Damage Trigger", have something like this
Set Damage_Real = Event Response - Damage Taken
Set Damage_Unit = Triggering unit
Start Damage_Timer as a 1 shot timer that will expire in 0.00 seconds
Then have another trigger for the timer,
Event - Damage_Timer expires
Set life of Damage_Unit = life of Damage_Unit + (Damage_Real * Shield_Percent)
And the Shield_Percent would be however much you want the damage to be reduced by, a value of 1 would make the damage ignored completely, or a value of 0.5 could make the damage reduced by half.
Hope this helps!
Edit: Oh yea, you said you wanted physical damage reduced by a %, another thing that sucks! While you can cause a unit to damage another unit with a specific damage type in a trigger, you cannot detect the type of damage received in a takes damage event! really annoying!
But if there is a way (without JASS hopefully, I love the GUI) I'd love to know!!!