(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Reply
 
LinkBack Thread Tools Display Modes
Old 11-30-2008, 09:13 PM   #1 (permalink)
 
Lord_JiangWei's Avatar

User
 
Join Date: Jul 2008
Posts: 20

Lord_JiangWei has little to show at this moment (2)


Need help with my ressurect trigger

Hey this is what I need. I'm completely baffled on how to go about it. I need it

so when your hero dies it resurrects at the 'nearest' friendly town hall.

Note Town halls can be captured so there isn't always a

designated friendly town hall, players choose teams at start so you don't always

know whos on your team.
Lord_JiangWei is offline   Reply With Quote
Old 11-30-2008, 09:57 PM   #2 (permalink)
 
DarkAngelAzazel's Avatar

Envoy of the Apocalypse
 
Join Date: Sep 2008
Posts: 412

DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)


Mh I think best way is jass but I can try to do it in gui...

Event: Unit dies
condition
Action: For integer Counter 1-10000
Pick every unit within 10 x Counter range of triggering unit
If picked unit = town hall
Owner of picked unit is ally of owner of triggering unit = true
Then: Set Counter = 10000
Resecure hero


That COULD work
__________________
"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe"

Quote from Albert Einstein
DarkAngelAzazel is offline   Reply With Quote
Old 12-02-2008, 09:53 PM   #3 (permalink)
 
Vegavak's Avatar

¹²³ ¹²³ ¹²³ ¹²³
 
Join Date: Mar 2006
Posts: 666

Vegavak is on a distinguished road (65)Vegavak is on a distinguished road (65)


Hopefully you understand my explanation.

Unit group, all units that match <town hall> allied to player, set total1 = total1 +1;

Unit group, all units that match <town hall> allied to player, set distance1 = distance from hero to <picked unit> if distance1 > distance2, set distance2 = distance1, total1 = total1 - 1, if total1 <= 0: if distance1 < distance2, spawn hero at distance2, else spawn hero at distance1.

That's what I would do.

Last edited by Vegavak; 12-02-2008 at 10:44 PM.. Reason: replaced if with else. I hate editing.
Vegavak is offline   Reply With Quote
Old 12-02-2008, 10:06 PM   #4 (permalink)
 
DarkAngelAzazel's Avatar

Envoy of the Apocalypse
 
Join Date: Sep 2008
Posts: 412

DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)


Yeah Vegavak I got that idea too (sadly after posting my first idea)
I think it's better because the big loop would cause lag...

But next time I would add some breaks in your explenatin..
__________________
"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe"

Quote from Albert Einstein
DarkAngelAzazel is offline   Reply With Quote
Old 12-02-2008, 10:44 PM   #5 (permalink)
 
Vegavak's Avatar

¹²³ ¹²³ ¹²³ ¹²³
 
Join Date: Mar 2006
Posts: 666

Vegavak is on a distinguished road (65)Vegavak is on a distinguished road (65)


It won't cause lag. Do you even know what you're talking about?
Vegavak is offline   Reply With Quote
Old 12-02-2008, 10:52 PM   #6 (permalink)
 
DarkAngelAzazel's Avatar

Envoy of the Apocalypse
 
Join Date: Sep 2008
Posts: 412

DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)


-.- that was not nice...

Mh in my post I used a loop with 1-10000... And I always thought that would cause lags...

I am sorry if I was wrong. But no reason to get unfriendly.
__________________
"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe"

Quote from Albert Einstein
DarkAngelAzazel 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
Ressurect e.x trees OlloX3 Triggers & Scripts 3 03-28-2008 11:26 AM
[Solved] Tree ressurect dennis-pol World Editor Help Zone 4 02-10-2008 07:21 AM
Trigger Spells - The Elusive Any Unit Takes Damage Trigger NazT Triggers & Scripts 9 03-22-2006 12:13 AM
Trigger Question (COMPLEX) Need Master Trigger Experts ONLY! The Prophet of Bread Map Development 5 01-18-2005 11:01 PM
Pro trigger makers needed: urgent help for hard trigger imported_Bort Map Development 11 10-06-2004 02:42 AM

All times are GMT. The time now is 05:44 AM.






Your link here 
Credit Cards | Debt Consolidation | Credit Cards | Problem Mortgage | Mobile Phone
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle