Sure, I also is expirience in C# and C/C++ and didn't know anything about lua scripting... But with help of your code it take about hour to understand main things which are nessesary for scripting, I even don't read any tutorials, except official LoG scripting reference. Just for now your code is easy to read and I don't think that it need optimization... Much more better to add more modules and abilities, thow as for me some functions has many not often using arguments )))JKos wrote:I have many years of php and javascript experience though, so if you are familiar with those then maybe my scripts could be easy to understand for you. I would't say that it's the "best" because there probably is some really stupid solutions.
One more bug - in turn base mode turn is over if you try to go throw enemy or wall.