• 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] What's LUA? I don't know it?

Status
Not open for further replies.
Yes, it is used primarily for object generation. However, that generation can only be run on the map's compilation, not in-game. (sadly)

It can save some people time on making objects (like if you want to mass-create an object with different values), or if you want to make a system more portable. (you can have anyone copy and paste the script into their map, and it will generate the objects for them)

The only problem is it is a bit limited. You can set object fields but you cannot read them. For greater flexibility, there are things such as GMSI (found on wc3c.net). The good thing about Lua, however, is that one only needs to download Jass NewGen to use it. (IMO, Jass NewGen should include GMSI)
 
Well, you can use the Lua framework to write JASS code in order to read those object fields ; ). That's how object ids are ported into global constants in LUA_GET_OBJECT_ID.


You can also use Lua for JASS frameworks. For example, one thing I'm thinking of doing is running a lot of my save/load stuff on Lua rather than having a huge template : ).
 
Status
Not open for further replies.
Top