Ok, so I'm making a plugin to use accelerator to keybind some stuff, and I read http://www.gammon.com.au/forum/?id=4960, but I'm having trouble getting it to save my state. Where do I put all that code? What is the name of the accelerator table? I will have to change all occurances of "what" with that name right? Thanks in advance.
Edit: I am getting the following error:
Compile error
Plugin: Accelerator (called from world: ansalon)
Immediate execution
[string "Plugin"]:181: ')' expected (to close '(' at line 180) near ','
Error context in script:
177 :
178 : lua_reserved_words = {}
179 :
180 : for _, v in (
181*: "and", "break", "do", "else", "elseif", "end", "false",
182 : "for", "function", "if", "in", "local", "nil", "not", "or",
183 : "repeat", "return", "then", "true", "until", "while"
184 : ) do lua_reserved_words [v] = true end
185 :
[WARNING] \\QUADS\worlds\plugins\Accelerator.xml
Line 54: Error parsing script (Cannot load) |