HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Targetting Trees

05-28-2006, 12:11 AM#1
harshateja
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?
05-28-2006, 12:23 AM#2
Bulletcatcher
You could try looking at 'eat tree', the night elf building ability. That one targets only trees.
05-28-2006, 12:30 AM#3
MasterDinadan
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)
05-28-2006, 08:15 AM#4
Panto
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?
05-28-2006, 10:28 AM#5
Jacek
or Eat Tree or the one MG has....
05-28-2006, 03:13 PM#6
Elven Ronin
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.
05-28-2006, 07:47 PM#7
The)TideHunter(
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
05-29-2006, 04:57 AM#8
MasterDinadan
It's a simple matter to just revive the tree that was consumed if you dont wish for it to be removed :)
05-29-2006, 08:25 AM#9
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.

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.
05-29-2006, 04:34 PM#10
harshateja
Thx to all the replies. I eventually ended up usuing Panto's suggestion but rep to all for helping...
05-29-2006, 07:45 PM#11
The)TideHunter(
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 --------
05-30-2006, 02:13 PM#12
MercyfulJester
You could also try by changing the "Art - Selectable in Game" on the tree destructibles to "True".