• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Get your art tools and paintbrushes ready and enter Hive's 34th Texturing Contest: Void! Click here to enter!

Problems with custom script

Luu

Luu

Level 6
Joined
Feb 11, 2021
Messages
45
I can't insert the custom script. Did I write it wrong? I would like help to solve this.

WhatsApp Image 2024-10-18 at 17.20.51.jpeg
 

Uncle

Warcraft Moderator
Level 74
Joined
Aug 10, 2018
Messages
7,940
I can't insert the custom script. Did I write it wrong? I would like help to solve this.

View attachment 492257
Click JassHelper at the top menu and click "Enable JassHelper".

Also, you should be calling that Custom Script inside of the For Loop, right beneath the Special Effect. You're leaking TempPoint 49 times.

The rule for these leaks:
Set, Use, Remove.

Never Set until you've removed the previous one.
 
Last edited:
Based on the syntax error, you might also have your map's script language set to Lua. You can modify it in Scenario > Map Options.
LuaScriptLanguage.png


If that is the case, you might want to try switching it to JASS (since JASS uses the "call" syntax, whereas Lua omits call/set). Or you can just change your script to Lua by just removing the "call":
  • Custom script: RemoveLocation(udg_TempPoint)
 
Top