(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > Triggers & Scripts

Triggers & Scripts Discussions regarding GUI triggers & JASS/AI scripts may be found here. Please review the » JASS Tutorials » Trigger Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 11-17-2008, 09:02 PM   #1 (permalink)
 
shadow3's Avatar

User
 
Join Date: Jun 2008
Posts: 120

shadow3 has little to show at this moment (4)


Check Region for Player Owned Units

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 by shadow3; 11-17-2008 at 11:34 PM.. Reason: problem with doom
shadow3 is offline   Reply With Quote
Old 11-17-2008, 09:39 PM   #2 (permalink)
 
Emm-A-'s Avatar

User
 
Join Date: Jul 2008
Posts: 350

Emm-A- has little to show at this moment (33)Emm-A- has little to show at this moment (33)Emm-A- has little to show at this moment (33)Emm-A- has little to show at this moment (33)


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.
__________________
Dont forget to give reputation to people, that helped you :)
Emm-A- is offline   Reply With Quote
Old 11-17-2008, 09:47 PM   #3 (permalink)
 
shadow3's Avatar

User
 
Join Date: Jun 2008
Posts: 120

shadow3 has little to show at this moment (4)


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
__________________

Sometimes you must let go
To keep holding tight

If there was no Darkness
How could we see the Light?


Last edited by shadow3; 11-17-2008 at 10:37 PM..
shadow3 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Trigger] How to remove units owned by a player that never started in the game Systim Triggers & Scripts 14 08-21-2008 06:53 PM
[Solved] Unit Control (issue orders to non-owned units) Alakon World Editor Help Zone 4 07-23-2008 09:46 PM
[Unsolved] Creating a Player-owned Gate (not a Distructible) yujinn World Editor Help Zone 1 07-21-2008 12:09 PM
Trigger Help- All Units in Region:Move instantly to Center of Another Region frankie11 World Editor Help Zone 2 07-19-2007 02:41 AM
Creeps give gold but what about computer owned units VladPopp Map Development 2 11-29-2005 10:08 AM

All times are GMT. The time now is 01:08 PM.






Your link here 
Power Rangers | Free Advertising | Prepaid Credit Cards | Free Credit Score | Debt Consolidation
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle