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.
[2024-7-20. : 8:28 pm]
Excalibur -- Seth still exists :O
[2024-7-19. : 4:52 am]
Ultraviolet -- dumbducky
dumbducky shouted: I wonder what IP is up to. His kid should in his 20s by now
Spending little if any time thinking about us, I would guess :P
[2024-7-18. : 12:49 pm]
Excalibur -- Hai Ducky
[2024-7-17. : 6:06 pm]
dumbducky -- I wonder what IP is up to. His kid should in his 20s by now
[2024-7-16. : 10:16 pm]
NudeRaider -- dumbducky
dumbducky shouted: NudeRaider It's only 75% off?
it was free only for a day
[2024-7-16. : 5:39 pm]
dumbducky -- NudeRaider
NudeRaider shouted: sounds fun. Free only for a day https://store.steampowered.com/app/1486630/Intravenous/
It's only 75% off?
[2024-7-16. : 5:38 pm]
dumbducky -- Touche
[2024-7-16. : 2:18 pm]
Moose -- dumbducky
dumbducky shouted: I haven't posted in 5 years
no one has
[2024-7-15. : 8:23 pm]
NudeRaider -- sounds fun. Free only for a day https://store.steampowered.com/app/1486630/Intravenous/
[2024-7-15. : 3:18 pm]
dumbducky -- I haven't posted in 5 years
Please log in to shout.


Members Online: Roy