• 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.

Item use on trees and units

Status
Not open for further replies.
Level 8
Joined
Jan 8, 2013
Messages
348
heloooouu i have a problem :D and didint know hwo to make it work >.<

everyone knows the axe from dota that is usable on trees and creeps. of course i wantet to make it too but for some reason it works on nothing.

the basic item i got is the normal wc3 claws +3 damage with the ability.
with chainlightning as spell which should be usable on trees and units.

it says, trees are not able to select. same with units, so i cna use the item spell on nothing

allowed targets: tree,decoration,enemies,alive,nonhero

i just think chain lightning is not a good solution theres something better. can someone tell me which abbility it is exactly? >.<
 
Level 8
Joined
Jan 8, 2013
Messages
348
but thats bad for using on units... its dealing attack damage from the hero
 
Level 8
Joined
Jan 8, 2013
Messages
348
okay i try it with channel ability, theni have to trigger ti again, if target is a tree destry it blabla if unit deals damage blabla :D
 
Hm weird. It works for me.
The Channel has targets: Debris, Decoration, Ground
And target type: Unit or Point.

Trigger:
  • Untitled Trigger 005
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Kill
    • Actions
      • Unit - Kill (Target unit of ability being cast)
      • Destructible - Kill (Target destructible of ability being cast)
If a unit is targeted it is killed.
If a destructible (like a tree) is targeted it is killed.
 
Level 8
Joined
Jan 8, 2013
Messages
348
oh i had other targets..... wait im trying what you did :)
well thats not good. i dont want to make it groundable
i want that its a TREE or a UNIT .
with this you can even use it on ground and then he checks if he hits a tree or a unit. if theres nothing, it will do nothing...


edit: i used eat tree now as spell, i can now chop down trees but i cant use it on units,

allowed targets fo eat tree are: tree,enemies
 
Ah ye. That's true.
Then you will need to trigger that the caster get's mana back if there is no target.
Create a unit and a destructible variable.


Events - A unit starts the effect of an ability
Conditions - Ability being cast Equal to Your Ability
Actions-
Set Real_Var = Mana of triggering unit
Set Unit_Var = Target unit of ability being cast
Set Destructible_Var = Target destructible of ability being cast
If -
Or-

Unit_var Equal to No unit
Destructible_Var Equal to No destructible
Then -
Set Mana of triggering unit to Real_Var
Else -
Do what you want

Null the unit and destructible variables in the end of the trigger.
 
Level 2
Joined
Jan 2, 2013
Messages
16
The link you have put there it has 1 activation: cut a tree(with chance) and 2 pasives, 1 that increases the damage done by range and 1 for melee.

Use eat tree spell to cut the tree. If you want to have a chance use Channel that can target Trees and trigger it.
Like this:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Channel
      • (Destructible-type of (Target destructible of ability being cast)) Equal to Summer Tree Wall
    • Actions
      • Destructible - Kill (Target destructible of ability being cast)
      • (Destructible-type of (Target destructible of ability being cast)) Equal to Summer Tree Wall
    • Actions
      • Destructible - Kill (Target destructible of ability being cast)
For the passives use a trigger. Here is an exemple:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Triggering unit) is A Hero) Equal to False
      • ((Attacking unit) has an item of type Claws of Attack +15) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Attacking unit) is A ranged attacker) Equal to True
        • Then - Actions
          • Unit - Cause (Attacking unit) to damage (Triggering unit), dealing ((Damage taken) x 0.12) damage of attack type Hero and damage type Normal
        • Else - Actions
          • Unit - Cause (Attacking unit) to damage (Triggering unit), dealing ((Damage taken) x 0.32) damage of attack type Hero and damage type Normal
I sugest you to use an Damage Detector System to change the event so that the item can't be abused.

And now what I don't understand... You want the item to be used on tree to cut it and use it on a unit to damage it? Or just like that item in the link?
 
Level 8
Joined
Jan 8, 2013
Messages
348
dudes. you dont have to send me triggers.. i can trigegr it by myself! i just have to make the ITEM be USABLE on UNITS and TREES! thats my ONLY PROBLEM!

sorry but cant you read my postst? i told you that i already triggered the passives.

and the item can be used to CHOP DOWN TREES OR CAN BE USED TO DEAL DAMAGE TO UNITS.

this item throws a axe on a tree(if you select a tree) or a unit(if you select a unit) and chop the tree down(if you select the tree) or deal damage on the unit(if you select the unit)

i dont need triggers from you becasue i can trigger it by myself. i have a full map with more complicated things then triggers like this.... im not a noob....

i just need help that i can use the spell on units AND trees. and i cant get it to work.
only object editor. NO TRIGGERS!

atm i can ONLY select TREES OR UNITS.. but i need BOTH to work!

sry but i used caplocks that you understand it a little bit better


EDIT: sooo im using eat tree as spell and if i add tree as targets i can only use it on trees, doesnt matter what i also picked there. and if i remove tree as target then i cna use it on units, dafuq is this shit? cant i use it on both? -.-
 
Last edited:
Level 2
Joined
Jan 2, 2013
Messages
16
Yes Sentinel with enemies,ground,nonhero,tree,vulnerable is what you need. I tested it, it's working only on tree and enemy non-hero units
 
Level 8
Joined
Jan 8, 2013
Messages
348
realy?? oh goooooood im gonna try it !! hope it works.. >.<
gonna edit this post if its working!!
 
As for Eat Tree, just check when the unit is issued a smart order and if the target unit of issued order is not equal to No unit, order the triggering unit to attack the target. This is how you deal with the automatic right-click for units. For trees just order it to move to the destructible's location. Both Eat Tree and Sentinel work.
 
Level 8
Joined
Jan 8, 2013
Messages
348
Sentinel. I can't think of another ability really.

Eat Tree works fine for both units and trees. I just use its default value which is Tree and then select Organic, Non-Hero, Enemy and Ground (depends on your needs of course). But right-clicking causes automatic cast. I think you can trigger it not to though.

Anyway, Sentinel works.

the Eat tree with your targets works for me fine :D
no need for sentry spell!

im very very happy now :D thank you very much pharaoh! you helped me alot the last week! and you other guys too! im very proud of you! keep up the good help xD :thumbs_up: ps: you all got +rep
 
Status
Not open for further replies.
Top