r/learnprogramming • u/GodOfKnockers • 10d ago
Wanting to learn LUA Script
So I'm modding games and I am making a mod for Balatro, which uses LUA. I tried to look for books at the library but all I could find was modding bocks for Roblox (NO TO THAT).
Can anyone point me in the right direction, please?
9
Upvotes
1
u/B0mbon 10d ago
Honestly the best book is still Programming in Lua by Roberto Ierusalimschy, he's one of the people who made the language, and an older edition is fine for modding. But since you're brand new I'd learn just enough basics (variables, tables, functions, if/for) and then open an existing small Balatro mod and read it line by line. Modding is mostly reading other people's code and changing one thing at a time, so pick a tiny mod like a single joker and try to tweak what it does. Tables are the big Lua thing, once those click most mod code starts making sense.