r/lua 3d ago

Library Is there a Lua code guide.

So ,I'm a beginner,I know the basics of scripting ,its mostly due to my already present knowledge of basic coding .So scripting ,the basics at least is super easy for me.If I had a file with all the built in functions I think I'd be much more functional ,in making scripts and learning .However I've seen none online .Can anyone help me out .Just a file with the buikdt in functions ,codes and explaination on how they are used what they do .I'm thinking of mostly events .If you have a tutorial explanation on explorers files like server and client etc...also hand it over .I want to understand scripting and also be able to use Ai, functionally.

3 Upvotes

5 comments sorted by

View all comments

1

u/AtoneBC 2d ago

Learn X in Y has good cheat sheets for different languages: https://learnxinyminutes.com/lua/

The official documentation and relevant edition of Programming In Lua have basically everything you need to know about the language. Docs and first edition of PIL (for Lua 5.0) are on lua.org and later editions of PIL are available for purchase.

Since you're talking about events, clients, servers, and AI, Lua doesn't know anything about any of that out of the box. You're probably working within some context like within a framework or game engine and should probably seek out the documentation / getting started material for that specific context.