I use a trigger to make the health of created units increase over time. Is there a way to modify their armor? I don't see it in the modify property action.
Hi. You can use Catalog Field Value Set. Below is an example of how to do it.
Catalog - Set value of Units (String((Unit type of (Triggering unit)))) "LifeArmor" for player (Owner of (Triggering unit)) to (String(Armor Of Unit) with 2 decimal places)
(String((Unit type of (Triggering unit)))) - This is Convert Game link to string
I use a trigger to make the health of created units increase over time. Is there a way to modify their armor? I don't see it in the modify property action.
Hi. You can use Catalog Field Value Set. Below is an example of how to do it.
Catalog - Set value of Units (String((Unit type of (Triggering unit)))) "LifeArmor" for player (Owner of (Triggering unit)) to (String(Armor Of Unit) with 2 decimal places)
(String((Unit type of (Triggering unit)))) - This is Convert Game link to string
When Armor of Unit is real number.
http://www.youtube.com/user/RussianMapster
@KorvinGump: Go
Thank you, but I can't find where/how to get the "LifeArmor" field.
Another simpler way is to make an upgrade that increases your unit's armour by 1 point, then set the level of this upgrade via triggers.
The catalog version is cleaner, but if you don't want to learn, then this works too.
LifeArmor it's string of Field Path Catalog Field Value Set. You must enter LifeArmor in value field of Field Path when you press on Field Path .
http://www.youtube.com/user/RussianMapster
Oh! Thank you.