(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Resources > Submissions > "Graveyard"

"Graveyard" Resources which were not approved are moved to this section.

 
 
LinkBack Thread Tools Display Modes
Old 09-09-2007, 01:22 AM   #1 (permalink)
 
Hero12341234's Avatar

────║╣ero────
 
Join Date: Dec 2006
Posts: 75

Hero12341234 has little to show at this moment (2)


Revive Trees

This is a script I made that will revive trees that die for some reason. Whether it be a peasant picking at it or a spell that destroys trees like flame strike.

function RegrowTrees takes nothing returns nothing
    local destructable tree=GetDyingDestructable()
    call TriggerSleepAction(10)
call DestructableRestoreLife( tree, GetDestructableMaxLife(tree), true )
    set tree=null
endfunction

function Trig_Int_Tree_Revival takes nothing returns nothing
    local integer d=GetDestructableTypeId(GetEnumDestructable())
    if d=='ATtr' or d=='BTtw' or d=='KTtw' or d=='YTft' or d=='YTct' or d=='YTwt' or d=='JTwt' or d=='DTsh' or d=='FTtw' or d=='CTtr' or d=='ITtw' or d=='NTtw' or d=='OTtw' or d=='ZTtw' or d=='WTst' or d=='LTlt' or d=='GTsh' or d=='Xtlt' or d=='WTtw' or d=='ATtc' or d=='BTtc' or d=='CTtc' or d=='ITtc' or d=='ZTtc' then
    call TriggerRegisterDeathEvent( gg_trg_Regrow_Trees, GetEnumDestructable() )
    call TriggerAddAction(gg_trg_Regrow_Trees,function RegrowTrees)
endif
endfunction

function Int_Tree_Revive takes nothing returns nothing
    call EnumDestructablesInRect(GetPlayableMapRect(), null, function Trig_Int_Tree_Revival)
endfunction

___________

I will add a test map later
__________________

Last edited by Hero12341234; 10-02-2007 at 10:13 PM..
Hero12341234 is offline  
Old 09-09-2007, 02:22 AM   #2 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

Could you please change the BJs, as well as removing the useless IsDesTree function (just inline it)?

Also, a timer would be preferable.
PurplePoot is offline  
Old 09-11-2007, 02:06 AM   #3 (permalink)

daehtorraP
 
Join Date: Jun 2007
Posts: 695

Parrothead has little to show at this moment (54)


Thats cool, iv been looking for one of these.
Parrothead is offline  
Old 09-30-2007, 06:02 PM   #4 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

Any plans on updating this?
PurplePoot is offline  
Old 10-01-2007, 11:03 PM   #5 (permalink)
 
Hero12341234's Avatar

────║╣ero────
 
Join Date: Dec 2006
Posts: 75

Hero12341234 has little to show at this moment (2)


Quote:
Originally Posted by PurplePoot View Post
Any plans on updating this?
Sorry I've been away from wc3 in a while..

Updating soon..

________

Updated
__________________
Hero12341234 is offline  
Old 10-02-2007, 08:44 PM   #6 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

Very simple, approved though.

It's kinda short to have a full thread, (imo) so if you don't mind I'd rather you post it in this thread.
PurplePoot is offline  
Old 10-02-2007, 10:14 PM   #7 (permalink)
 
Hero12341234's Avatar

────║╣ero────
 
Join Date: Dec 2006
Posts: 75

Hero12341234 has little to show at this moment (2)


Quote:
Originally Posted by PurplePoot View Post
Very simple, approved though.

It's kinda short to have a full thread, (imo) so if you don't mind I'd rather you post it in this thread.
It is now posted there too
__________________
Hero12341234 is offline  
Old 10-02-2007, 11:33 PM   #8 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

Kay, since this is no longer needed, ~Graveyard'd
PurplePoot is offline  
 

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] Need Help With Revive Trigger. lazybone Triggers & Scripts 13 02-20-2008 02:02 PM
revive Dotoriton World Editor Help Zone 4 01-01-2008 11:55 AM
[Trigger] Revive Heroes Help Darkfire554 Triggers & Scripts 2 11-12-2007 03:20 AM
Can u revive maps?? is it possible? The_wand_mirror World Editor Help Zone 33 12-29-2006 03:16 PM
The thing Cenarius used to revive the trees SmurfSlayer Triggers & Scripts 4 01-10-2005 05:39 PM

All times are GMT. The time now is 09:41 AM.






Your link here 
Hotels in Rome | Job Listing | Problem Mortgage | Bankruptcy | Web Advertising
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle