• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Custom scripts syntax error

Level 5
Joined
May 24, 2017
Messages
41
It's been a while since I last played on creating a custom map. I'm now doing a custom melee map (new races stuff) and I realized I forgot about point leaks...

My problem is now when I use the call RemoveLocation() in custom script I get a syntax error.
I think it is because JassHelper is disabled, but I can't remember where to enable it. On the bar in Trigger Editor it is greyed out.
Does anyone know how to enable it? I got an official Blizzard Map and just started working on top of it.
 
In the "Trigger Editor" window, find a menu called "JassHelper" and make sure that both "Enable JassHelper" and "Enable vJass" are checked.
Those two options should be exist if you are on the latest Battle.net patch. For some reason, every maps you opened with World Editor will now have those options being disabled by default.

Edit: Another possible reason is that your map uses LUA instead of JASS. You have to convert it first to JASS so that JassHelper option is enabled.
 
Last edited:
In the "Trigger Editor" window, find a menu called "JassHelper" and make sure that both "Enable JassHelper" and "Enable vJass" are checked.
Those two options should be exist if you are on the latest Battle.net patch. For some reason, every maps you opened with World Editor will now have those options being disabled by default.
The options are greyed out. I can't click them...
Everything is also up to date.
I think it's because the map I used as base is from the season7 maps. All of those have the JassHelper grayed out...
I'll have to export everything to new map, if there isn't a way to activate it... On new maps I can activate it.

Thanks for the help.
 
Ok I got i solved!

The problem was that the Map was saved as LUA instead of JASS. And the custom scripts I was used to were written in JASS...
Since I don't want to learn LUA (I barely know JASS as it is) I needed to change the script language. For that I found the answer here:


For those having a similar problem:
Basically, export your triggers. Delete them all. Save. Close map. Open Map. Go to Scenario > Map Preferences > Options > Script Language > change Lua to JASS. Import your triggers. Save.
All your GUI will change from LUA to JASS (you can also do the opposite, change JASS to LUA). But your custom script will need manual changes.
 
Back
Top