FANDOM


Forums: Index > Development > Edit module for lua

I'm starting to play with script. I can issue things like lua print(find.player(0)) But, edit.change_gold(find.player(0), 500) complains about edit being nil. Is the edit module already in place? Does the package need to be compiled it? Loaded? I'm not finding a reference for this.

Did you find Lua reference manual?
As noted there, the 'edit' module is (will be) new in 2.4.x, which is still in beta. If you're using an older version (say 2.3), you want an invocation that uses a bare function name, like
/lua change_gold(find.player(0), 500)
(from the server console or the client chatline).
-- JTN (talk) 00:18, December 5, 2012 (UTC)
Community content is available under CC-BY-SA unless otherwise noted.