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

Storm Bolt Special Cooldown

Status
Not open for further replies.
Level 10
Joined
Nov 5, 2008
Messages
536
I am making a spell based on Storm Bolt. I have lowered the missile speed so it's a slow-moving projectile. I would like the cooldown for the spell to work in this way:

When the Bolt is fired at an enemy unit the spell can not be casted again until the bolt hit's the enemy unit. Hence, there can never be two Storm Bolts in the air at the same time and the cooldown of the spell is nullified when the spell "finds and destroys it's target."

Is this possible to make with triggers or does it require more advanced programs?
 
Level 7
Joined
Jul 20, 2008
Messages
377
What if it misses (if enemy goes invisible)? I suggest using an unit to represent the storm hammer projectile and have it slowly move toward the enemy. That way, if it does hit the enemy but the enemy is invisible, you'll know it "missed." That way, you can reset the cooldown.

Of course, if you don't have any windwalking or such, I advise doing what TheBlooddancer says.
 
Level 10
Joined
Nov 5, 2008
Messages
536
But the distance and time changes when the spell is casted because the target will probably move around. How can the trigger know which time it shall reset the cooldown?
Would a trigger like this be hard to do?
 
Level 7
Joined
Jul 20, 2008
Messages
377
Then you may have to use an unit as a projectile and move it toward the enemy (or even have it use an ability on the enemy that also kills itself). It's not that hard, just use a projectile system. You do know how to make one?
 
Level 10
Joined
Nov 5, 2008
Messages
536
I'm sorry I am not very good at triggering. If you think this is kinda simple to make then I would of course be very glad if you (or someone else) could show me the trigger so I can build it after instructions.
This type of spell is very fundamental on my map, so I would be really glad. Otherwise, I just have to rethink my map a bit.
Anyways, thanks that you took time to answear me.
 
Level 8
Joined
Nov 9, 2008
Messages
502
I think resetting cooldown applies to all abilities which would make it a lot more complicated if you were to trigger a cooldown reset for a single ability when the created unit comes in range. You would have to remove all abilities bar storm bolt, reset, then add them again with there previous levels :S maybe even that doesnt work. IDK though.
 
Status
Not open for further replies.
Top