HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Detect a "while channeling" spell

05-25-2007, 01:53 AM#1
Castlemaster
I want to make a spell that triggers a meteor swarm while channeling. The base spell is based off of channel and the meteor effect is triggered with a dummy ability. My question is: how do I tell if a unit is channeling, so that I can make the trigger aspect stop casting should the player interrupt the channel.

Thanks ahead of time.
05-25-2007, 12:39 PM#2
zeroXD
Either you can check what the casters current order string is with every interval (reccomended if you are using GUI) or create a timer for the intervals, then make a trigger to detect stop cast and finish cast, attach the timer to the trigger, then destroy the timer when it's triggered (reccomended if you are using, JASS, requires game cache if you want it to be multi-instanceable)
05-25-2007, 07:01 PM#3
Castlemaster
Is the command of the order equal to the "command ID" line. In this case it would be called "channel" becuase that is the base command ID of the spell that will activate the trigger.

In other words I would do an order comparison for "current order of unit equal to (channel)", but if I wanted to do the same for a spell based off of blizzard, the condition line would say "current order of unit equal to (blizzard)"

It's a bit harder since the "current order" and "issued order" conditions do not have a drop-down menu, just a text.
05-25-2007, 11:23 PM#4
zeroXD
In the object editor there is a field where you set the order id of the ability. Just check what's in that field and input it into your condition.
05-26-2007, 12:04 AM#5
Castlemaster
Cool, thanks.