• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Check Region for Player Owned Units

Status
Not open for further replies.
Level 6
Joined
Jun 8, 2008
Messages
256
Hey again Hive, I need your help once again! :p


I'm working on a map, and for a certain area that will reset when all players die, I need a trigger that can check when they're dead.
The players will revive at a revival place, so I can't just check if they're all dead, because they most likely won't die all at the same time.
I'm really frustrated with this, I thought I'd seen the command for it, but I guess I was wrong.

I've figured out that that one, need help with the doom spell though.

Also, I just encountered another problem, I want a doom that deals 10% of the targets HP every second, if anyone could help me with that too, it would be awesome ;)

Any help appreciated :)
 
Last edited:
Level 14
Joined
Jul 1, 2008
Messages
1,314
you want to check, if players are dead. You mean, if their heroes are dead?

So you just have to look at the bolean comparisson "Unit is Alive" and insert there the unit variable, in which you saved each players hero.
 
Level 6
Joined
Jun 8, 2008
Messages
256
Yes I ment the heroes, thanks for the quick reply :)
Now to get started with the variables, not my favorite thing to play around with :p

Can't rep you yet, so you'll have to settle with a thanks for now;) Thanks!

EDIT:
The heroes will be ressed almost intantly upon death(outside the region) so I'm not sure this will work. Haven't tested because variables hate newbies.
So, if you have the time, can you tell me if this'll work with a trigger to check if the units are in the region? And possibly point me in the right direction, I do need to learn some things on my own after all.

2ND EDIT:
I think I figured it out :p
 
Last edited:
Status
Not open for further replies.
Top