Tree Regrowth
Moderator: Cheaters
-
- Member
- Posts: 71
- Joined: November 19th, 2007, 1:17 am
- Title: Deadly Shadow
Tree Regrowth
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?
http://forum.wc3edit.net/post26721.html#p26721
Kids, a smart person knows when to.... RUN LIKE A LIL BITCH!!!!!!!
Click ME!!!!!
Click here to feed me!Get your own at Pokeplushies!
Kids, a smart person knows when to.... RUN LIKE A LIL BITCH!!!!!!!
Click ME!!!!!
Click here to feed me!Get your own at Pokeplushies!
-
- Newcomer
- Posts: 15
- Joined: May 30th, 2007, 4:19 pm
Re: Tree Regrowth
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.
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.
-
- Honorary wc3edit.net Traitor
- Posts: 2507
- Joined: February 1st, 2007, 4:11 pm
- Location: NEVADA
Re: Tree Regrowth
great work, I really appreciate the help you are giving, especially around the gui section.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.
-
- Member
- Posts: 71
- Joined: November 19th, 2007, 1:17 am
- Title: Deadly Shadow
Re: Tree Regrowth
Hmm, I presented this to my friend and me and him had a mis-communication, Could you put it in an AoE spell form?
http://forum.wc3edit.net/post26721.html#p26721
Kids, a smart person knows when to.... RUN LIKE A LIL BITCH!!!!!!!
Click ME!!!!!
Click here to feed me!Get your own at Pokeplushies!
Kids, a smart person knows when to.... RUN LIKE A LIL BITCH!!!!!!!
Click ME!!!!!
Click here to feed me!Get your own at Pokeplushies!
-
- Honorary wc3edit.net Traitor
- Posts: 2507
- Joined: February 1st, 2007, 4:11 pm
- Location: NEVADA
Re: Tree Regrowth
event: unit casts as pell
action: create doodad at point of issued spell abilitiy (target area aoe)
lol, or whatever.
action: create doodad at point of issued spell abilitiy (target area aoe)
lol, or whatever.
-
- Tyrannical Drama Queen
- Posts: 4430
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Tree Regrowth
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).
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).
-
- Old Wrinkly Member
- Posts: 271
- Joined: January 12th, 2008, 4:42 am
- Title: Re-R-Re-Re-Remix
- Location: Canada EH?
Re: Tree Regrowth
Maybe check that for leaks
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.
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.