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^^