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:59 pm]
Vrael -- cuz I mean, if some watery bink lobbed a scimitar at me, and I claimed to be a dictator, they'd put me away!
[05:58 pm]
Vrael -- is it the lady of the lake? Is she distributing swords in some kind of an aquatic ceremony as a substitute for a mandate from the masses?
[05:57 pm]
Vrael -- NudeRaider
NudeRaider shouted: Excalibur you owe civility to SEN out of respect for the old lady, not for CAFGs sake.
wait who is the old lady?
[05:57 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael It has a time code. You just need a minute or so to realize that guy is full of bs.
oh ya I did watch actually for like a minute before I realized it was an hour long, I just meant I didnt watch the whole thing
[06:11 am]
NudeRaider -- Vrael
Vrael shouted: oh idk about CAFG's post I clicked the link and noticed it was like an hour long video and just said nooooooooooooope not for me
It has a time code. You just need a minute or so to realize that guy is full of bs.
[06:07 am]
NudeRaider -- Excalibur
Excalibur shouted: No further civility is owed to what was presented.
you owe civility to SEN out of respect for the old lady, not for CAFGs sake.
[01:43 am]
Ultraviolet -- you got a funny way of showing people you like them
[01:15 am]
Excalibur -- Yeah I don't know if it translated but the 'Asshole. Straighten up.' was /because/ it was CAFG, because he is an asshole, because he did post in SD, and because I do enjoy him.
[01:08 am]
Ultraviolet -- CAFG been pissing everyone off lately
[01:07 am]
Ultraviolet -- lmao
Please log in to shout.


Members Online: jun3hong, O)FaRTy1billion[MM]