I gave a Hero the Eat Tree spell but when accidentally click a tree the spell is used

darkholy

New Member
Reaction score
6
whenever i accidentally clicked on a tree when moving around, the Hero will move to the tree and use Eat Tree on it

i only want the spell to be used when clicked on the button, instead of accidentally clicking on a tree and use it automatically

how can i change this?
 

elmstfreddie

The Finglonger
Reaction score
203
You can't, but you could make a damage ability like thunder bolt (the mountain king stun + damage), then set targets allowed to only destructables.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
You should be able to trigger it.

Code:
Event:
    A unit is issued an order targeting an object
Conditions:
    Unit-type of (Triggering unit) equal to <your Hero type>
    (Issued order) equal to Order(smart)
    Or - Multiple
        Destructible type of (Target destructible of issued order) equal to <tree type>
        Destructible type of (Target destructible of issued order) equal to <other tree type>
        Destructible type of (Target destructible of issued order) equal to <whatever tree type>
Actions:
    Set Point = Position of (Target destructible of issued order)
    Unit - Order (Triggering unit) to attack-move to Point
    Custom script: call RemoveLocation( udg_Point )

This should replace the "eat tree" order with "attack-move"... unverified.
 

waaaks!

Zinctified
Reaction score
256
yeah when your unit has eat tree, and when you right-clicked a tree, it automatically eat it...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top