charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Mon Aug 29, 2011 3:48 am
[Feature Request]%lua function |
As I work more and more with Lua and seemingly less with zscript, the one thing I find lacking is the ability to directly reference something in Lua through zscript.
Enter %lua.
The main use of this would probably be reference a variable created in lua without having to change it over to a zscript variable. For instance, instead of having to do:
Code: |
#LUA {zs.var.varname = foobar}
#PRINT @varname |
I'd be able to do:
Code: |
#PRINT %lua(foobar) |
This saves an extra step and tidies up code quite a bit. However, it can be used for other things, in which case we can change the syntax like this:
Code: |
#PRINT %lua("var",foobar)
#PRINT %lua("func",url.escape(foobar)) |
and so on.
This would truly make things easier, in my opinion. |
|