• 🏆 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!

[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