Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net