• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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