• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Help with Tree Cutting Item

Status
Not open for further replies.
Level 6
Joined
Feb 12, 2008
Messages
207
hi guys, i need to know how to make that when a unit weilds an item, its available to attack trees. I think i can make it with triggers, but i wonder if i can do it by just using a custom ability like orb effect or something.

thanks in advance
 
Level 8
Joined
Mar 23, 2007
Messages
302
As it is able to make Melee Heroes to attack Flying unit, it is able to attack make them attack trees as well. Just study a bit with the Standart orbs around, replace flying units with trees and make the range shorter...
 
Level 13
Joined
Jul 3, 2008
Messages
1,098
or just make trigger
event:
unit has picked up an item
condition:
item being picked up equal to your item
action:
add abbility to picking unit

(that abbility is abbility that has got night elf moonglaiver just remove its requipments)

event:
unit drops item
condition:
droped item equal to your item
action:
remove abbility from triggering unit
 
Level 6
Joined
Feb 12, 2008
Messages
207
ok equal: i've tried that later, but my orb effect with "trees" as allowed target, isnt working. thanx

and numerion... i think i can make that trigger, but i know that it could be done with just a custom ability... i know there is some way to. I've seen it on Troll Tribes series.
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
  • Attack trees
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Destructible-type of (Target destructible of issued order)) Equal to Ashenvale Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Ashenvale Canopy Tree
              • (Destructible-type of (Target destructible of issued order)) Equal to Barrens Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Barrens Canopy Tree
              • (Destructible-type of (Target destructible of issued order)) Equal to Black Citadel Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Cityscape Fall Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Cityscape Snowy Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Cityscape Summer Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Cityscape Winter Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Dalaran Ruins Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Dungeon Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Felwood Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Felwood Canopy Tree
              • (Destructible-type of (Target destructible of issued order)) Equal to Icecrown Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Icecrown Canopy Tree
              • (Destructible-type of (Target destructible of issued order)) Equal to Northrend Canopy Tree
              • (Destructible-type of (Target destructible of issued order)) Equal to Fall Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Summer Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Snowy Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Winter Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Northrend Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Outland Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Ruins Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Ruins Canopy Tree
              • (Destructible-type of (Target destructible of issued order)) Equal to Underground Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Village Tree Wall
              • (Destructible-type of (Target destructible of issued order)) Equal to Fall Tree Wall
          • Or - Any (Conditions) are true
            • Conditions
              • <YOUR ITEM> Equal to (Item carried by (Triggering unit) in slot 1)
              • <YOUR ITEM> Equal to (Item carried by (Triggering unit) in slot 2)
              • <YOUR ITEM> Equal to (Item carried by (Triggering unit) in slot 3)
              • <YOUR ITEM> Equal to (Item carried by (Triggering unit) in slot 4)
              • <YOUR ITEM> Equal to (Item carried by (Triggering unit) in slot 5)
              • <YOUR ITEM> Equal to (Item carried by (Triggering unit) in slot 6)
    • Actions
      • Unit - Order (Triggering unit) to Attack (Target destructible of issued order)
This should do it. If you create any other trees that you want to be able to attack, just add a copy of
  • (Destructible-type of (Target destructible of issued order)) Equal to Ashenvale Tree Wall
at thesame point, changeing the Ashenvale Tree Wall to the tree you created.
 
Level 6
Joined
Feb 12, 2008
Messages
207
sorry mate, that wont fix my problem... i cant TARGET trees.. what i only need is to make the unit able to target trees. And if its possible by using a single custom ability... there is a way to. but i dont know how though.

anyway... thanks a lot
 
Level 13
Joined
Jan 18, 2008
Messages
956
Add a trigger in which when an unit picks up that item, the trigger adds the ability "Harvest wood" to the triggering unit and viceversa for when the unit drops it.
 
Level 13
Joined
Jan 18, 2008
Messages
956
Not the same ability. And if I recall correctly, the Huntress' ability can't attack trees.
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
It's not a Huntress ability. He means the Vorpal Blades ability used by Glaive Throwers.

As the description of Vorpal Blades sais:
Permits the glaives launched by the Glaive Thrower to strike through initial ground targets and damage those behind. Also allows the Glaive Thrower to attack trees.

You do however need to edit that it only allows to attack trees. And since there is nothing in the Object Editor or Vorpal Blades that can edit that, and there's no sign that shows it's possible to attack trees through a part in the Object Editor, I think you can only add trees to possible targets of a unit by using a JASS code. It's probably just 1 line, but I've never used JASS before and know absolutely nothing about it, so I think you should ask someone to make that JASS code for you.
 
Level 6
Joined
Jun 14, 2008
Messages
176
It's not a Huntress ability. He means the Vorpal Blades ability used by Glaive Throwers.

As the description of Vorpal Blades sais:
Permits the glaives launched by the Glaive Thrower to strike through initial ground targets and damage those behind. Also allows the Glaive Thrower to attack trees.

You do however need to edit that it only allows to attack trees. And since there is nothing in the Object Editor or Vorpal Blades that can edit that, and there's no sign that shows it's possible to attack trees through a part in the Object Editor, I think you can only add trees to possible targets of a unit by using a JASS code. It's probably just 1 line, but I've never used JASS before and know absolutely nothing about it, so I think you should ask someone to make that JASS code for you.

The Vorpal Blades ability does nothing(it's just an icon for reference), the upgrade works by simply changing the attack from "Attack 1" which doesn't target trees, to "Attack 2" which targets trees too. It also adds spill range distance(the upgrade).

So, if you "Attack 2" is free to use, you can simply just make the item based off of Orb of Fire or something.

Make it "enable Attack 2 Index", Attack 2 should be identical to Attack 1 EXCEPT, attack 2 should include "Trees" as a target.

Problem with this is, if you want to use Attack 2 for something else(like the range attacks against air for melee heroes), you won't be able to do this.

Otherwise, I think this is the easiest way.
 
Level 6
Joined
Feb 12, 2008
Messages
207
cool, i will try that mate. Its the best idea for now. im going to try it today and i'll tell u how it goes.
 
Level 8
Joined
Mar 23, 2007
Messages
302
I dont get it?
this is exactly what i said he should try....
So, if you "Attack 2" is free to use, you can simply just make the item based off of Orb of Fire or something.

As it is able to make Melee Heroes to attack Flying unit, it is able to attack make them attack trees as well. Just study a bit with the Standart orbs around, replace flying units with trees and make the range shorter...
 
Level 6
Joined
Feb 12, 2008
Messages
207
ok its been a long time i've been away.
This time im going to try this once more. If anyone has some help to give about this "troll tribes" skill thing, post it.
 
Level 6
Joined
Feb 12, 2008
Messages
207
ok i'll quote myself, i think this post got away from the target.

KaiserG said:
hi guys, i need to know how to make that when a unit weilds an item, its available to attack trees. I think i can make it with triggers, but i wonder if i can do it by just using a custom ability like orb effect or something.

thanks in advance

i need to know what to do so by using NO TRIGGERS (i know how to do it with triggers/JASS) i could be able to make a "woodcuting axe" that once weilded, the wielder can ATTACK trees, dont gather.
i've been trying with orb effects but couldnt get anything.
 
Level 6
Joined
Sep 13, 2008
Messages
261
Set the units second attack only able to attack trees and ground. set damage and sounds how you want it. set the attack 2 to disabled.

When you pick up an orb it automatically enables attack two. When you drop the orb it should disable it.

Example attached.
 
Last edited:
Level 6
Joined
Feb 12, 2008
Messages
207
Finished Thread

I'm really grateful howl2000! You really understood me and gave me the exact help i needed! +rep and many thanks! (maybe ill put you on credits :))
 
Level 6
Joined
Feb 12, 2008
Messages
207
sorry numerion, you and some more tried to help me, but i think i got to recognize im a dumb person. I was trying over and over but getting nothing :S (i have bad luck with Object Editor) howl2000 attached the example where i could see what i was doing wrong... i didnt say u didnt helped me... im sorry if i was misunderstood. All of you helped me, thanks. just that howl gave me the info i was missing.
 
Status
Not open for further replies.
Top