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

[Spell] Adding autocasting Quil Spray spell on a Tower (TD)

Status
Not open for further replies.
Level 1
Joined
May 20, 2009
Messages
6
Hi.

My problem: I want to add an autocasting Quil Spray spell on my Razormane siege tower, the player may not be able to press the button but he should be able to hover over the button to read what it does.

I've created the spell out of Fan of Knives and added it on my tower, but it's not auto casting it :< how do I make it to work?
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Does this Quil Spray activates once per attack ?
I mean, does this tower normal attack, is that Quil Spray ?
Or does this Quil Spray is secondary effect of this tower ?
Normal Attack + Quil Spray ?
OR
Normal Attack (Quil Spray) ?

Btw, does it have cooldown ?
 
Level 1
Joined
May 20, 2009
Messages
6
Hi thanks for reply :)

The tower is having a normal attack as well, I want the Quil Spray to be an auto casting spell on the tower. So yes, Normal attack + Quil Spray. The spray has 0.65 sec cooldown.

If I can get this to working and I understand how to create similar spells for towers, I will surely contribute my stuff to hive later on :>
 
You can order the tower to cast it... but you can not disable the player from using it...

but you can do a workaround... add a passive skill to the tower with the quill spray tooltip...

then for every razormane tower, create a dummy caster at its location... now you can create a periodic trigger which makes the dummy casters use the quill spray every x seconds...
 
Level 1
Joined
May 20, 2009
Messages
6
Thanks for suggestion.

I've created the dummy caster, but most troubleing part is the trigger to spawn it on a tower, I simply can't do it :( I have no good examples to look at, I've gone through some tutorials but they are not helping much they seem more for advanced users.

If someone could teach me their way of making dummy caster triggers (and variables for them?) I would be most thankful.
 
Level 1
Joined
May 20, 2009
Messages
6
That is not helping me much. I need a visual idea of the triggers to do so, thanks anyway for trying.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
A test map is attached

Mechanics:
1. When Guard Tower is constructed, a dummy unit is placed (no collision with the tower, therefore, it is located in the middle of the tower)
2. When the tower attack, it triggers the Fan of Knives of the dummy
3. Picks up only small range of AOE (100) around the tower (to make Tower A make Dummy A cast Fan of Knive)
4. If the tower is die, it picks up dummy unit and kill it
5. So, Tower A dies, Dummy A dies respectively
6. Cooldown of the knives is as you requested, 0.65 second.
 

Attachments

  • Tower Fan of Knives.w3x
    15.7 KB · Views: 52
Status
Not open for further replies.
Top