• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Problems with custom script

Status
Not open for further replies.

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
 
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)
 
Status
Not open for further replies.
Back
Top