Antoni Posted May 9, 2013 Share Posted May 9, 2013 I am mostly scripting in squirrel, some very basic stuff in pawn. Is Lua easy to learn like squirrel? Link to comment
DiSaMe Posted May 9, 2013 Share Posted May 9, 2013 Lua and Squirrel are quite similar. Like Squirrel, Lua is dynamically typed, and even local variables are defined in the same way (keyword 'local'). Also, I'm not sure, but tables look exactly the same to me. Block syntax is different (Squirrel uses C-like syntax, so it has { and }, while Lua uses words, such as 'then' and 'end'). In addition, Lua doesn't have classes, though you can use metatables to make tables work like classes. So if you know Squirrel, Lua should be easy to learn. As for Pawn, it's harder than Lua since you have to care about data types and some other low-level stuff. Link to comment
Antoni Posted May 9, 2013 Author Share Posted May 9, 2013 Thanks for the help on that. Link to comment
PaiN^ Posted May 9, 2013 Share Posted May 9, 2013 These are some topics that may help you to learn Lua : - viewtopic.php?f=148&t=40809 - viewtopic.php?f=91&t=39678 And don't forget to visit the wiki every time you need help with any function =) . Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now