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

Teleport to a specific location Ability ?

Status
Not open for further replies.
Level 3
Joined
May 16, 2010
Messages
61
Hi sorry to bother you guys, but i have been trying to work out an ability, that when clicked starts channeling for a little while, and then teleports the hero to a specific location, been trying to play around with the triggers for a while, but it seems like i just cant get anywhere at all, if anyone can shed some light or i help me out with the ability/trigger i would appreciate it alot.
 
Level 3
Joined
May 16, 2010
Messages
61
event; Unit starts effect of an ability
Condition; ability being caster equal to your ability
Actions: Move your unit to location

pretty simple if you ask me. Or you can base the spell on the blink to skip the triggering part

Does that make it into a channeling ability, imean will silence and stun etc stop the spell for keep casting ?
 
Level 10
Joined
Apr 18, 2009
Messages
601
The problem with basing the channeling period off of cast time is that cast time will only delay the casting of the spell for a certain amount of time and do nothing more. The normal behaviour of a channeled spell in WarCraft III (such as Earthquake or Mass Teleport) is that it removes mana and sets the spell on cooldown as soon as it begins channeling. Cast time does not remove mana or induce cooldown. A spell interrupted during its cast time can be immediately casted again with no setbacks. This is not the case with spells such as the regular Mass Teleport.

Maybe you didn't want the default interruption behaviour, in which case the casting time approach is probably preferred.

In case you did want the default interruption behaviour though, I've made an alternative spell attached in the example map. Right now the code just represents the general concept and is neither leak-free nor MUI (only one instance of this spell can be active at a time). I unfortunately do not have the time to explain the spell right now. If you want me to explain it then just leave a response and I'll explain later. Sorry about the inconvieniance. =)
 

Attachments

  • Teleport Example Map.w3x
    18.3 KB · Views: 47
Status
Not open for further replies.
Top