• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Auto Cast Spell Triggers

Status
Not open for further replies.
Level 4
Joined
Apr 25, 2008
Messages
60
Units have limited number of abilities. One of my units have 6 already, but I need 7th. I'm trying to make 7th ability 'Ungrow Tree'. I need something like this:
If unit targets a tree
Wait 2 sec
Kill Destructibile Tree

I tried something like this, but it didn't work out. If anyone have any other idea how to make more then 6 abilities let me know.

Sorry for my English,
MaskGT
 
No need of triggers here, just make a "Stormbolt" ability, then make its base damage to lets say 99999 and make it to target only trees, or simply use the "Eat Tree" ability from the Night Elfs buildings, editing its options into the Object Editor.

If you still prefer the trigger way, heres an quick example:
  • Ungrow
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to <YourAbility>
    • Actions
      • Wait 2.00 seconds
      • Destructible - Kill (Target destructible of ability being cast)
Make any ability that can target trees, and assign it to the trigger.

Umm.. for the 7th ability, make a trigger that detecs when a unit (hero) learns all abilities he has and then add another spell. So the red + which shows your spells will be gone and a new spell will appear at its place.. There you go, now you have one row with 4 spells and another row with 3 spells.
 
Last edited:
Status
Not open for further replies.
Back
Top