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

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
 
Level 19
Joined
Feb 25, 2009
Messages
2,004
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.
Top