Tree Regrowth

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
DarkHacker
Member
Posts: 71
Joined: November 19th, 2007, 1:17 am
Title: Deadly Shadow

Tree Regrowth

Post by DarkHacker »

Yeah, my friend made a Vampirism map, and its trees demolish fast on the last tier workers, What Im asking is, is there a way to regrow trees? Like, regular GUI trigger?
DL.PIGGY
Newcomer
Posts: 15
Joined: May 30th, 2007, 4:19 pm

Re: Tree Regrowth

Post by DL.PIGGY »

You could do it in 2 GUI triggers,

Map initialization
Destructible - Pick every destructible in (Entire map) and do (Actions)
Loop - Actions
Trigger - Add to Regrow Trees <gen> the event (Destructible - (Picked destructible) dies)

Regrow Trees
Events
Conditions
Actions
Custom script: local destructable BADTREE = GetDyingDestructable()
Wait 30.00 seconds
Custom script: call DestructableRestoreLife( BADTREE, GetDestructableMaxLife(BADTREE), true )

Where the wait function is how long it will take for the dead trees to regrow.
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Tree Regrowth

Post by Xantan »

DL.PIGGY wrote:You could do it in 2 GUI triggers,

Map initialization
Destructible - Pick every destructible in (Entire map) and do (Actions)
Loop - Actions
Trigger - Add to Regrow Trees <gen> the event (Destructible - (Picked destructible) dies)

Regrow Trees
Events
Conditions
Actions
Custom script: local destructable BADTREE = GetDyingDestructable()
Wait 30.00 seconds
Custom script: call DestructableRestoreLife( BADTREE, GetDestructableMaxLife(BADTREE), true )

Where the wait function is how long it will take for the dead trees to regrow.
great work, I really appreciate the help you are giving, especially around the gui section.
User avatar
DarkHacker
Member
Posts: 71
Joined: November 19th, 2007, 1:17 am
Title: Deadly Shadow

Re: Tree Regrowth

Post by DarkHacker »

Hmm, I presented this to my friend and me and him had a mis-communication, Could you put it in an AoE spell form?
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Tree Regrowth

Post by Xantan »

event: unit casts as pell

action: create doodad at point of issued spell abilitiy (target area aoe)

lol, or whatever.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Tree Regrowth

Post by Bartimaeus »

Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Animate Dead
Actions
Destructible - Pick every destructible within 300.00 of (Target point of ability being cast) and do (Actions)
Loop - Actions
Destructible - Resurrect (Matching destructible) with 500.00 life and Show birth animation


erm, something like that...lol, not too entirely sure, I don't work with destructible(s).
User avatar
tru_power22
Old Wrinkly Member
Posts: 271
Joined: January 12th, 2008, 4:42 am
Title: Re-R-Re-Re-Remix
Location: Canada EH?

Re: Tree Regrowth

Post by tru_power22 »

Maybe check that for leaks :lol:
Contact me on WC3 Killing_Spree22, I'm at US west!

To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk

I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.