• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How to Destroy distructibles with only 1 hit?

Status
Not open for further replies.
Level 15
Joined
Sep 11, 2013
Messages
557
Greetings!
How can i make a unit with low damage (10) to kill trees on the map with only 1 hit/tree if the trees has 100 hp
I don't want to change the unit damage or the tree hp.

Is is possible? with some triggers?
The help will be appreciated!
 
Make an ability based on "Eat Tree" and if you don't want it to be visible, then hide it in a spell-book.
Then use the following trigger:
  • FellTree
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Issued order) Equal to (Order(attack))
      • (Unit-type of (Ordered unit)) Equal to TreeFeller
    • Actions
      • Unit - Order (Ordered unit) to Night Elf Ancients - Eat Tree (Target destructible of issued order)
Do what Chaosium said, I didn't realize the tree attack didn't show on the command card.
I thought it was hidden for workers because the attacks were identical other than target types, or something else beyond my guessing..
 
Last edited:
Make an ability based on "Eat Tree" and if you don't want it to be visible, then hide it in a spell-book.
Then use the following trigger:
  • FellTree
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Issued order) Equal to (Order(attack))
      • (Unit-type of (Ordered unit)) Equal to TreeFeller
    • Actions
      • Unit - Order (Ordered unit) to Night Elf Ancients - Eat Tree (Target destructible of issued order)
Hiding abilities in spellbook is an old technique.

You can hide it via triggers or through the object editor by setting it's Art - Button Position - X/Y to 0, -11.
 
Status
Not open for further replies.
Back
Top