Hello Cybermonkey!
Here is a new version of your example, using the LUA53.PAS unit from the Lua4Lazarus package.
https://github.com/malcome/Lua4Lazarus
http://forum.lazarus.freepascal.org/...c,27268.0.html
The Lua script uses a new feature of Lua 5.3 (euclidian division).
Best regards.
Roland
Bookmarks