vJASS how can I use it?

eXirrah

New Member
Reaction score
51
So I downloaded the latest NewGen Pack 1.5d opened the NewGen World Editor
and everything looks fine for now.

I read the manual on using it and tried to test it so I did something like that:

JASS:
struct test
    integer x = 0
endstruct

function testfunc takes nothing returns nothing
    local test t = test.create()
    set t.x = 5
endfunction


I pressed Syntax Check and it spawned like 10-20 errors that say:
Line 1: Syntax error
Line 2-xx: "Statement outside function".

I looked in the manual again to see if I missed something and didn't get any
new info how to fex that.

Can anyone help me with that?
I'm trying to use vJASS on 1.24 do I have to do something so I can do that?
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
Don't use that Syntax check. Save the map instead. Jasshelper will figure out the error.
 

Azlier

Old World Ghost
Reaction score
461
The syntax check button doesn't accept vJass, just to reinforce what kingking said.

Saving the map will run your code through Jasshelper, which compiles it into plain Jass. PJass then checks that normal Jass.
 

eXirrah

New Member
Reaction score
51
Thanks guys. +rep for caring to explain it to me.

Seems like I recently repped you Azlier and can't right now
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top