• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Targeted Over-time Spell Not Working

Status
Not open for further replies.
Level 10
Joined
Jun 10, 2007
Messages
557
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
 
Status
Not open for further replies.
Top