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:47 pm]
Ultraviolet -- zsnakezz
zsnakezz shouted: ultra you have any thought or notes on undead invasion?
I still haven't gotten a chance to play it yet unfortunately. I just downloaded, but today I'm working on a project with a deadline so won't be able to play it today
[04:59 am]
zsnakezz -- >:)
[04:59 am]
zsnakezz -- :)
[04:58 am]
zsnakezz -- somebody gets it
[04:58 am]
zsnakezz -- and its not all just numbers in my file screen
[04:57 am]
zsnakezz -- thank you for your comment though, good to know some people out there tried my map out
[04:57 am]
zsnakezz -- just kidding
[04:57 am]
zsnakezz -- ultra you have any thought or notes on undead invasion?
[2024-5-31. : 2:36 pm]
Wing Zero -- Bop em
[2024-5-31. : 2:36 pm]
Wing Zero -- Mods
Please log in to shout.


Members Online: Roy