Staredit Network > Forums > SC2 Assistance > Topic: [SOLVED] Detecting a Unit's Armor
[SOLVED] Detecting a Unit's Armor
This topic is locked. You can no longer write replies here.
Dec 28 2012, 3:09 am
By: LoveLess  

Dec 28 2012, 3:09 am LoveLess Post #1

Let me show you how to hump without making love.

I want to find out what a unit's armor value is through triggers, how do I do this? I will then be adding, removing and performing various effects depending on the outcome of course, so any and all ways to find it out (not just through triggers) would be great!



None.

Dec 28 2012, 6:13 am Roy Post #2

An artist's depiction of an Extended Unit Death

You just want to check using a condition? That would be as simple as comparing the value. The condition is called "Unit Property" and you can make the comparison like so:
(MY_UNIT Life Armor (Current)) == 1

If you mean firing a trigger when the unit's armor hits a certain value, you'd either have to make a custom event or just have a trigger that periodically checks the value (if the armor can only change through upgrades, having a trigger with an event for an upgrade completing would be an optimal way of approaching this).




Dec 28 2012, 9:33 pm LoveLess Post #3

Let me show you how to hump without making love.

In the end I may not need this, the entire reason for it is gone since I realized that I can just detect each individual scenario that would change armor anyway, most of the time that may even be through data. So I think the problem is resolved.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
Please log in to shout.


Members Online: Roy, Ultraviolet