Monkey Frog Studio Posted August 26, 2018 Share Posted August 26, 2018 Hello. I am (slowly, between projects) learning LUA scripting. Well, I've not done anything yet, but read a portion of the docs. I do have a question, though. So, please forgive me if it is ignorant. When learning LUA scripting in Leadwerks, are there parts of scripting that ONLY work in Leadwerks? In other words, are there LUA keywords (not sure what they correct term is here) that are ONLY used in Leadwerks? And, thus, will the scripts I create ONLY be usable in Leadwerks and not in, say, another engine that also uses LUA scripting? Again, sorry if this is a dumb question, but I was thinking about this. Quote Creating professional 2D and 3D content is my passion! Monkey Frog Studio Link to comment Share on other sites More sharing options...
macklebee Posted August 26, 2018 Share Posted August 26, 2018 The only lua commands that will only work in LE are the LE API commands listed in the API Reference and obviously the Script class that is available for LE scripts. Actual inherent lua commands can be used wherever lua is used (with obvious considerations given to the different versions over the years). Refer to actual lua programming sites for reference: http://pgl.yoyo.org/luai/i/_ http://lua-users.org/wiki/TutorialDirectory http://www.lua.org/pil/contents.html Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Monkey Frog Studio Posted August 26, 2018 Author Share Posted August 26, 2018 That's what I figured, so thanks for confirming this. So, that's what the API is for in the docs, to point out the LUA commands that are not native to LUA itself, but are only for Leadwerks. I suppose this means that, once I am more familiar with working in LUA that I could potentially adapt other (non-Leadwerks) scripts to work in Leadwerks, if I wanted to? Quote Creating professional 2D and 3D content is my passion! Monkey Frog Studio Link to comment Share on other sites More sharing options...
macklebee Posted August 26, 2018 Share Posted August 26, 2018 Yes, the LE API is for LE commands. And yes, potentially (depending on the script and its function) you could adapt other lua scripts into a LE lua script. 2 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.