I'm trying to make my first map, but I can't figure out how to get a units armor for a trigger. I can't figure out how to do it though. If possible, I would like to get it off of the attacked unit, as I really don't want to create a massive array to hold everything's armor as well as triggers for every upgrade. So basically, how do I bring in the armor?
Note: I am asking for an integer, in case that might have caused confusion.
I'm trying to make my first map, but I can't figure out how to get a units armor for a trigger. I can't figure out how to do it though. If possible, I would like to get it off of the attacked unit, as I really don't want to create a massive array to hold everything's armor as well as triggers for every upgrade. So basically, how do I bring in the armor?
Note: I am asking for an integer, in case that might have caused confusion.
Armor is a real not an integer which maybe why you are not finding it. so something like...
Var: Armor (Real)
Actions: Set Variable (Armor), Unit Get Property Fixed (Event Unit), Unit Prop Life Armor, Unit Prop Current
This should be what you are looking for you just need to fill in the other details IE event, conditions, other actions.
Fixed and Real are the same thing. just FYI