wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > General Development
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 05-28-2006, 01:11 AM   #1
harshateja
User
 
Join Date: Sep 2003
Posts: 352

harshateja is on a distinguished road (12)

Default Targetting Trees

I'm trying to make a spell that targets only trees.

I based it off of channel with allowed targets: alive, dead, tree. However, I can't actually target trees. Whenever i try to click on a tree, it says "Must Target a Tree".

I ended up using Force of Nature with a short radius but it looks weird with the circle instead of the crosshair...

Any way to make a tree targetable spell?

Last edited by harshateja : 05-28-2006 at 01:14 AM.
harshateja is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 05-28-2006, 01:23 AM   #2
Bulletcatcher
User
 
Join Date: Oct 2002
Posts: 232

Bulletcatcher has little to show at this moment (1)

Default

You could try looking at 'eat tree', the night elf building ability. That one targets only trees.
__________________
Signature currently out of order.
Bulletcatcher is offline   Reply With Quote
Old 05-28-2006, 01:30 AM   #3
MasterDinadan
User
 
Join Date: May 2006
Posts: 17

MasterDinadan has little to show at this moment (1)

Default

That is correct, Eat Tree does not have "Alive" and "Dead" in it's targets allowed field, so I'm assuming they aren't necessary. In fact, they are likely the cause of the problem (even though the error message generated is a little misleading)
MasterDinadan is offline   Reply With Quote
Old 05-28-2006, 09:15 AM   #4
Panto
LASER DRAGONS IS RELEASED
 
Panto's Avatar


Development Moderator
User Project: Panto
 
Join Date: Mar 2003
Posts: 3,167

Submissions (2)

Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)

Approved Map: Call to Arms

Default

Some of the more exotic targeting options aren't even options, really. You may find that any of the tree-targeting abilities are hardcoded and that attempting to set things one way or another simply causes confusion, not results.

However, if you wanted a dummy spell that targets a single tree, might I recommend the Huntress' Sentry Owl ability?
Panto is offline   Reply With Quote
Old 05-28-2006, 11:28 AM   #5
Jacek
Banned
 
Join Date: Dec 2004
Posts: 1,095

Submissions (1)

Jacek is a jewel in the rough (164)Jacek is a jewel in the rough (164)

Send a message via MSN to Jacek
Default

or Eat Tree or the one MG has....
Jacek is offline   Reply With Quote
Old 05-28-2006, 04:13 PM   #6
Elven Ronin
User
 
Elven Ronin's Avatar
 
Join Date: Jul 2005
Posts: 457

Elven Ronin will become famous soon enough (29)

Default

Quote:
Originally Posted by Jacek
or Eat Tree or the one MG has....

Of course, both of those would result in the destruction of the tree, which may not be desirable.
__________________
The damned return...
Elven Ronin is offline   Reply With Quote
Old 05-28-2006, 08:47 PM   #7
The)TideHunter(
SpeakerGames.com
 
The)TideHunter('s Avatar
 
Join Date: Mar 2006
Posts: 1,328

Submissions (1)

The)TideHunter( is a jewel in the rough (160)The)TideHunter( is a jewel in the rough (160)

Send a message via MSN to The)TideHunter(
Default

Quote:
Originally Posted by Elven Ronin
Of course, both of those would result in the destruction of the tree, which may not be desirable.

Correct, you could just use the event "A unit begins using a spell"
This can be took advantage of, but i would say its the only way around this problem, the Own that the huntress has will always create a unit.
So if this spell is used 500 times, thats alot of units.

They're might be another spell that targets a tree, but i doubt you will get a blank target tree ability
__________________
Big plans...
The)TideHunter( is offline   Reply With Quote
Old 05-29-2006, 05:57 AM   #8
MasterDinadan
User
 
Join Date: May 2006
Posts: 17

MasterDinadan has little to show at this moment (1)

Default

It's a simple matter to just revive the tree that was consumed if you dont wish for it to be removed :)
MasterDinadan is offline   Reply With Quote
Old 05-29-2006, 09:25 AM   #9
Panto
LASER DRAGONS IS RELEASED
 
Panto's Avatar


Development Moderator
User Project: Panto
 
Join Date: Mar 2003
Posts: 3,167

Submissions (2)

Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)Panto is a jewel in the rough (247)

Approved Map: Call to Arms

Default

A simpler matter to set the duration of the Owl to 0.01 seconds, and I think it's actually a buff, not a unit.

More importantly, using a trigger that fires off of a unit "beginning" to cast a spell is a flawed system, as a player can start the spell and cancel it after the triggered effect, before the mana has been paid or the cooldown started.
Panto is offline   Reply With Quote
Old 05-29-2006, 05:34 PM   #10
harshateja
User
 
Join Date: Sep 2003
Posts: 352

harshateja is on a distinguished road (12)

Default

Thx to all the replies. I eventually ended up usuing Panto's suggestion but rep to all for helping...
harshateja is offline   Reply With Quote
Old 05-29-2006, 08:45 PM   #11
The)TideHunter(
SpeakerGames.com
 
The)TideHunter('s Avatar
 
Join Date: Mar 2006
Posts: 1,328

Submissions (1)

The)TideHunter( is a jewel in the rough (160)The)TideHunter( is a jewel in the rough (160)

Send a message via MSN to The)TideHunter(
Default

Quote:
Originally Posted by Panto
A simpler matter to set the duration of the Owl to 0.01 seconds, and I think it's actually a buff, not a unit.

I dident know you could set the duration of the owl, i must look into this.

Quote:
Originally Posted by Panto
More importantly, using a trigger that fires off of a unit "beginning" to cast a spell is a flawed system, as a player can start the spell and cancel it after the triggered effect, before the mana has been paid or the cooldown started.

I said about the this, it can be took advantage of.
Thats the only was i could see around it at the time, MasterDinadan had a good idea of ressurecting the tree, that would be common sense.
A trigger would look something like this:

Trigger:
Revive Tree
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to 'Your Ability'
Collapse Actions
Destructible - Resurrect (Target destructible of ability being cast) with (Max life of (Target destructible of ability being cast)) life and Hide birth animation
-------- Other Actions --------
__________________
Big plans...

Last edited by The)TideHunter( : 05-29-2006 at 08:46 PM.
The)TideHunter( is offline   Reply With Quote
Old 05-30-2006, 03:13 PM   #12
MercyfulJester
User
 
Join Date: Feb 2005
Posts: 231

MercyfulJester is on a distinguished road (20)

Default

You could also try by changing the "Art - Selectable in Game" on the tree destructibles to "True".
MercyfulJester is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 02:39 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services