• 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] Compilation Error

Status
Not open for further replies.
Level 10
Joined
Jan 21, 2007
Messages
576
Alright, i saved my map and JassHelp said i have a compilation error, i have no idea how to fix this and i dont know whats wrong, so here is a screen of the Jass helper. And the trigger its refering to.

  • Waygate 2 Order
    • Events
      • Unit - A unit enters Move 2 <gen>
    • Conditions
      • (((Triggering unit) is A Hero) Equal to False) and (((Entering unit) belongs to an enemy of Player 1 (Red)) Equal to True)
    • Actions
      • Set L = (Position of (Entering unit))
      • Unit Group - Pick every unit in (Units within 500.00 of L matching ((Unit-type of (Matching unit)) Equal to Battle Tower)) and do (Actions)
        • Loop - Actions
          • Unit - Order (Entering unit) to Right-Click (Picked unit)
      • Custom script: call RemoveLocation(udg_L)
 

Attachments

  • Syntax Error.JPG
    Syntax Error.JPG
    82.7 KB · Views: 93
Level 3
Joined
May 4, 2007
Messages
66
I think u took wrong trigger. Line should be in "Waygate 1 Order" trigger where u putted "Call" instead "call". Replace last line of trigger with:
  • Custom script: call RemoveLocation(udg_L)
 
Level 10
Joined
Jan 21, 2007
Messages
576
Haha, i need to learn jass sometime ><, anyways thanks i'l see if that fixes it.
 
Status
Not open for further replies.
Top