• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Trigger] Targeted Over-time Spell Not Working

Not open for further replies.
Level 10
Jun 10, 2007
So, I'm making a spell for a map called Firestorm which calls down a meteor in a random position around the target point every 0.25 seconds after the casting. It isn't working, and I can't figure out why. When I cast it, nothing at all happens. Um... can somebody tell me what's going on? Of course, +rep will be involved.

  • Fire Storm
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Firestorm
    • Actions
      • Custom script: local location udg_Location
      • Custom script: local unit udg_Unit
      • Set Location = (Target point of ability being cast)
      • Set Unit = (Triggering unit)
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set Location2 = (Location offset by (Random real number between 1.00 and 400.00) towards (Random real number between 1.00 and 360.00) degrees)
          • Unit - Create 1 Dummy for (Owner of Unit) at Location facing Default building facing degrees
          • Set Unit2 = (Last created unit)
          • Unit - Add Firestorm Meteor to Unit2
          • Unit - Order Unit2 to Undead Dreadlord - Inferno Location2
          • Custom script: set udg_Unit2 = null
          • Custom script: call RemoveLocation (udg_Location2)
          • Wait 0.25 seconds
      • Custom script: call RemoveLocation (udg_Location)
      • Custom script: set udg_Unit = null
Not open for further replies.