• 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.

1 armor = -1 damage?

Status
Not open for further replies.
Level 6
Joined
Dec 9, 2007
Messages
208
Did you try to change to constant to 0.00% as Pharaoh_ said?

Edit: Tested and it doesn't work for me neither.
 
Level 9
Joined
Aug 21, 2008
Messages
533
E:
Unit is damaged
C:
/
A:
Heal unit for (its armor value)



thats the basic way. To get the event, you have to register all units in such a event(cause unfortenually, the event only exits in "specific unit events")

Simply do:

E:
A unit enters Playable map
C:
Contidions as you like(maybe some units should not have armor)
A:
Trigger-Add Event "Triggering Unit is damaged" to (your trigger)


the second prob is that there is no way to detect armor. SO you have to safe the armor values somewhere.
Eg in a hashtable.

Some bugs will still occur:

if unit have max life, it want get saved.
could be ignored, tell me if you want to fix this.

If damage is higher than max life, armor wont safe you.
could be solved aswell. but there isnt a real need^^
 
Status
Not open for further replies.
Top