Jump to content

Using LUA Scripts Outside of Leadwerks?


Monkey Frog Studio
 Share

Recommended Posts

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.

Creating professional 2D and 3D content is my passion!
Monkey Frog Studio

Link to comment
Share on other sites

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

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

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? 

Creating professional 2D and 3D content is my passion!
Monkey Frog Studio

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...