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

[Trigger] Spell button.

Status
Not open for further replies.
Level 5
Joined
Apr 14, 2006
Messages
140
Hi all! I would like to know if anybody has a way to get the spell that is clicked when a player wants to cast a spell? I mean, spells like summoning, that do not require a target and then aren't channeled or whatever of this kind. The GUI hasn't any kind of 'Event - A spell button is clicked', and, furthermore, I can't know which spell is being launched. I also need to be able to stop the unit.
Anyone can help me?
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
'Begins casting an ability' this is when no mana is taken yet, no effects are made and no damage is done, you can easily order the unit to stop (it should do nothing then)
But if you want to make any custom effects on the spell, like fire at position of the target unit, you should use 'Start the effect of an ability' this way you will know for sure it is not stopped at last moment (spell)
Cause if you use 'Begins casting' you could click 'Order to stop' button at the right time, and the fire effect would still be made

'Begins casting' for whenever you click the button
'Starts the effect of' for when you want to make your own custom effects
 
Status
Not open for further replies.
Top