{"id":246,"date":"2010-12-19T19:35:48","date_gmt":"2010-12-19T19:35:48","guid":{"rendered":"http:\/\/www.knightsgame.org.uk\/blog\/?p=246"},"modified":"2010-12-19T19:35:48","modified_gmt":"2010-12-19T19:35:48","slug":"lua-scripting","status":"publish","type":"post","link":"https:\/\/www.knightsgame.org.uk\/blog\/2010\/12\/19\/lua-scripting\/","title":{"rendered":"Lua Scripting"},"content":{"rendered":"<p>I&#8217;ve been busy adding Lua scripting to Knights. This has involved quite a few changes to the code (and plenty of debugging!) but I think it&#8217;s been worth it. Most of the in-game scripts (such as switch effects, gnome book puzzles etc) are now using Lua instead of my old text file based configuration system. Although the new Lua scripts don&#8217;t really let you do anything <em>new<\/em> yet (they basically replicate what the old system could do), the general framework is now in place; all that remains now is to add a few new functions and things that can be called from the Lua side. This should allow plenty of possibilities for mods.<\/p>\n<p>The next thing I need to do is to write some documentation of how the Lua scripting works. I might use the Trac &#8220;wiki&#8221; section for this (as it&#8217;s not being used for anything else currently and it will be easy for me to update it as development continues).<\/p>\n<p>After that I want to start work on the new control system which I promised a while ago. I have planned out how I am going to do this, it is just a case of doing the work now \ud83d\ude42<\/p>\n<p>Hopefully, I should be able to get a release out with this stuff in it by the end of the year.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been busy adding Lua scripting to Knights. This has involved quite a few changes to the code (and plenty of debugging!) but I think it&#8217;s been worth it. Most of the in-game scripts (such as switch effects, gnome book puzzles etc) are now using Lua instead of my old text file based configuration system. &hellip; <a href=\"https:\/\/www.knightsgame.org.uk\/blog\/2010\/12\/19\/lua-scripting\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Lua Scripting<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-246","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.knightsgame.org.uk\/blog\/wp-json\/wp\/v2\/posts\/246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knightsgame.org.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knightsgame.org.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knightsgame.org.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knightsgame.org.uk\/blog\/wp-json\/wp\/v2\/comments?post=246"}],"version-history":[{"count":7,"href":"https:\/\/www.knightsgame.org.uk\/blog\/wp-json\/wp\/v2\/posts\/246\/revisions"}],"predecessor-version":[{"id":253,"href":"https:\/\/www.knightsgame.org.uk\/blog\/wp-json\/wp\/v2\/posts\/246\/revisions\/253"}],"wp:attachment":[{"href":"https:\/\/www.knightsgame.org.uk\/blog\/wp-json\/wp\/v2\/media?parent=246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knightsgame.org.uk\/blog\/wp-json\/wp\/v2\/categories?post=246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knightsgame.org.uk\/blog\/wp-json\/wp\/v2\/tags?post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}