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

Automating Active Spells?

Status
Not open for further replies.
Level 3
Joined
Jun 14, 2007
Messages
56
How does one go about automating skills?

In a tower defense, where you can choose from a number of different skills to add to the tower. I want to automate all these active abilities on the tower that the user chooses.

For example once "Shockwave" has been learnt it automatically will cast it at the point of a unit when there is one within the range of the spell



What i need is the event that fires the trigger

In power towers it is when a unit is attacked by the dummy attack of the tower that fires the trigger. But this can only work when the tower and the ability are synonymous - mine are not, and more than one ability can go on one tower.




Unit entering range events added after tower construction will not work as it does not loop the skill after its Cooldown is finished




Checking every x seconds for a unit within range of each spell becomes far too laggy




Any ideas???!
 
Status
Not open for further replies.
Top