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

[JASS] Remove Location error

Status
Not open for further replies.
Level 7
Joined
Sep 19, 2012
Messages
204
...Hey guys...i just made a triggered spell, but my editor doesnt like this line:
  • Custom script: call RemoveLocation (udg_LocC)
When i try to save the map it always says "expected name".....

does someone know how to fix this?
 
Level 7
Joined
Sep 19, 2012
Messages
204
Show the full trigger, or post a screenshot of the error. I'm guessing your variable is not named LocC. Either that, or it is a different line that is the problem.

It is definetly this line, as the error says line XYZ and marks the line in another colour. Anyways...here are the triggers:
  • Staff of Lightning
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) has an item of type Staff of Lightning) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to 25
        • Then - Actions
          • Set locC = (Position of (Attacking unit))
          • Unit - Create 1 Dummy for (Owner of (Attacking unit)) at locC facing (Position of (Attacking unit))
          • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
          • Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Attacked unit)
          • Custom script: call RemoveLocation(udg_LocC)
        • Else - Actions
          • Do nothing
and here is the Error:
 
Status
Not open for further replies.
Top