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

Simple Spell Help

Status
Not open for further replies.
Level 8
Joined
Apr 13, 2006
Messages
174
I want to make a spell that when cast, will stun the target for 2 seconds. I have a dummy unit and a firebolt item that must be given to the dummy to cast the bolt. Can someone tell me what's wrong with my trigger?

Edit: SOLVED!

  • Draining Blow
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Draining Blow
    • Actions
      • Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
      • Hero - Create Stun (2 sec - item) and give it to (Last created unit)
      • Hero - Order (Last created unit) to use (Picked item) on (Target unit of ability being cast)
      • Unit - Remove (Last created unit) from the game
 
Last edited:
Level 2
Joined
Jul 28, 2009
Messages
14
I'm glad you solved it but may I suggest that next time you use a Dummy Ability, meaning you edit the Firebolt spell to only have a 2 second stun and you'd do:

  • Example
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (Your Spell)
    • Actions
      • Unit - Create 1 Dummy for (Owner of (Castin unit)) at (Position of (Casting unit)) facing Default building facing degrees
      • Unit - Add Firebolt (Neutral Hostile) to (Last created unit)
      • Unit - Order (Last created unit) to Neutral - Firebolt (Target unit of ability being cast)
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
 
Status
Not open for further replies.
Top