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

How to Destroy distructibles with only 1 hit?

Status
Not open for further replies.
Level 13
Joined
Sep 11, 2013
Messages
467
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!
 
Level 14
Joined
Jan 10, 2023
Messages
248
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:

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,869
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.
Top