• 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.

[JASS] giving jass variables lua variable values?

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,097
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.
 
Status
Not open for further replies.
Top