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!
can you give a jass variable a lua variable value? say you are generating a bunch of destructables and you want to assign their rawcodes to a jass variable
It's infact the only possibility besides transforming your script by another language. Jass is interpreted only by the game and has no compile-time functions that would allow you to read files or run other programs. vJass on the other side provides directives like //! import and //! external. Latter is very slow though and you have to consider that //! import is handled before //! external, so you cannot effectively generate jass scripts by an external lua program and import it within the same save call. Your lua program could however modify your .j file itself or run jasshelper anew.
I do it the way that I have redirected the save function of JNGP starting my own executable instead of jasshelper. Then I run various tools that alternate my .j and other files and merge it with data outside of the map file. And finally parsers like jasshelper get called to verify the outcome.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.