• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

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