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

Making autocast abilities (defend)

Status
Not open for further replies.
It is possible to make autocast abilities from those without autocast?

For example I would make my units using defend ability like computer controlled ones. If it is not possible to convert to autocast ability , can it be done with triggers (unit will defend when it is attacked by piercing and magic attacks and stop defend about 5 seconds after the last attack on it)?
 
Well... basically you are having a problem here. Because some autocasts (like Searing Arrows and actually, other arrow abilities) cannot really be detected when they are cast, and check at the same time if they are autocast. You will need an event for each unit that learns the ability, each unit that switches the spell to autocast, and then have a trigger for it. Once the unit uncasts it, you have to make the trigger not affect the units. My conclusion? JASS!

~Daelin
 
Status
Not open for further replies.
Back
Top