• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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)
 
Level 31
Joined
Jul 10, 2007
Messages
6,306
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