376
Scripting Chat / Re: New to scripting
« on: December 12, 2012, 06:35:41 PM »
http://www.lua.org/docs.html
For specifics to oEUO:
http://www.easyuo.com/openeuo/wiki/index.php/Main_Page
GUI are done with Delphi. TObjects basically, and it's hard to find documentation for it because it is a bastardized version in oEUO than the full Delphi object set. It was designed to be enough for scripts. However- the objects.dll file that Cheffe has provided has some bugs in it, so right now, they aren't completely stable.
http://www.easyuo.com/forum/viewtopic.php?f=37&t=49071
You should check out that link.. lot of good information in it for menus.
----
What is your background language?
I programmed in C++ and found lua to be a nice comparison, relative to euox scripting.
functions instead of subs, local variables (except in lua we have upvalues that would not be allowed in C++), metatables- remind me of structs, but with some work to the index you can sort of turn them into an OO class. There are no vectors, but there are dynamically allocated tables. Even more interesting is that you can have all sorts of keys.
[snippet]
local t = { [1] = 'One', [2] = 'Two', [3] = 'Trees', ['Potato'] = 'Vegetable'}
[/snippet]
Granted, it makes it more annoying to iterate the table :p
For specifics to oEUO:
http://www.easyuo.com/openeuo/wiki/index.php/Main_Page
GUI are done with Delphi. TObjects basically, and it's hard to find documentation for it because it is a bastardized version in oEUO than the full Delphi object set. It was designed to be enough for scripts. However- the objects.dll file that Cheffe has provided has some bugs in it, so right now, they aren't completely stable.
http://www.easyuo.com/forum/viewtopic.php?f=37&t=49071
You should check out that link.. lot of good information in it for menus.
----
What is your background language?
I programmed in C++ and found lua to be a nice comparison, relative to euox scripting.
functions instead of subs, local variables (except in lua we have upvalues that would not be allowed in C++), metatables- remind me of structs, but with some work to the index you can sort of turn them into an OO class. There are no vectors, but there are dynamically allocated tables. Even more interesting is that you can have all sorts of keys.
[snippet]
local t = { [1] = 'One', [2] = 'Two', [3] = 'Trees', ['Potato'] = 'Vegetable'}
[/snippet]
Granted, it makes it more annoying to iterate the table :p