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.
[12:51 am]
Ultraviolet -- RIVE
RIVE shouted: Beta 4 lyfe, ya kno
feels like a lower commitment. like if someone bitches about something, I can say it's in beta phase whatchu expect? :P
[06:46 am]
RIVE -- Beta 4 lyfe, ya kno
[2023-9-28. : 5:26 am]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider I suppose that's one justification for pushing it to 1.00. I'm still messing with some novel concepts, I completely revamped the Shadowcraft hero in v0.18 and there's some kinks to work out with some of the other changes I made, but I suppose that doesn't mean I can't call the currently version 1.XX
indeed
[2023-9-28. : 1:13 am]
Ultraviolet -- NudeRaider
NudeRaider shouted: Ultraviolet prediction: It will. ;)
:massimo:
[2023-9-28. : 1:13 am]
Ultraviolet -- NudeRaider
NudeRaider shouted: Ultraviolet Oh, then your versioning is maybe a bit misleading. I didn't have much trust in a v0.2
I suppose that's one justification for pushing it to 1.00. I'm still messing with some novel concepts, I completely revamped the Shadowcraft hero in v0.18 and there's some kinks to work out with some of the other changes I made, but I suppose that doesn't mean I can't call the currently version 1.XX
[2023-9-28. : 1:12 am]
Ultraviolet -- NudeRaider
NudeRaider shouted: Ultraviolet :lol: did you really just commit another shout just to add a bracket? :D
Damn straight! :P
[2023-9-27. : 7:22 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: Imp UV3 is actually in the works with some major changes, but it's been slow going. I'd like to have a version of Imp UV for every tileset at one point.. hopefully it doesn't take until 2030 :P
prediction: It will. ;)
[2023-9-27. : 7:21 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider Oh definitely fully playable. I used the first map as the shell, so it was basically complete from the first release. I've made some tweaks and improvements here and there based on nuances between the maps, like UV2 has more air units so certain ground-focused heroes like Psycho and Shadowcraft have needed some buffing. Other improvements have been little bug fixes or ways of stopping cheese strategies (like the bosses now spawn in a random location instead of at their lair so players can't just camp them with nukes. UV2 is definitely harder despite only being 4 levels + boss fight instead of 5. I'd say it's definitely worth a go, there's some unique mechanics that make each of the levels have kind of their own interesting spin
Oh, then your versioning is maybe a bit misleading. I didn't have much trust in a v0.2
[2023-9-27. : 7:21 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: nukes).* lol
:lol: did you really just commit another shout just to add a bracket? :D
[2023-9-27. : 4:22 pm]
ubtrueblue -- hello
Please log in to shout.


Members Online: Nekron