{"id":63,"date":"2018-06-14T19:32:04","date_gmt":"2018-06-14T17:32:04","guid":{"rendered":"http:\/\/lovablestranger.com\/blog\/2018\/06\/14\/experimenting-with-lua-so-far-almost-everything\/"},"modified":"2018-12-05T18:31:33","modified_gmt":"2018-12-05T17:31:33","slug":"experimenting-with-lua","status":"publish","type":"post","link":"https:\/\/lovablestranger.com\/blog\/2018\/06\/14\/experimenting-with-lua\/","title":{"rendered":"Experimenting with LUA"},"content":{"rendered":"<div id='gallery-1' class='gallery galleryid-63 gallery-columns-2 gallery-size-medium'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto1_1280.jpg'><img width=\"300\" height=\"253\" src=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto1_1280-300x253.jpg\" class=\"attachment-medium size-medium\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto1_1280-300x253.jpg 300w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto1_1280-768x647.jpg 768w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto1_1280.jpg 778w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto2_1280.jpg'><img width=\"300\" height=\"253\" src=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto2_1280-300x253.jpg\" class=\"attachment-medium size-medium\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto2_1280-300x253.jpg 300w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto2_1280-768x647.jpg 768w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto2_1280.jpg 778w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto3_1280.jpg'><img width=\"300\" height=\"188\" src=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto3_1280-300x188.jpg\" class=\"attachment-medium size-medium\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto3_1280-300x188.jpg 300w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto3_1280-768x480.jpg 768w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto3_1280-1024x640.jpg 1024w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto3_1280-800x500.jpg 800w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto3_1280.jpg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto4_1280.jpg'><img width=\"300\" height=\"188\" src=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto4_1280-300x188.jpg\" class=\"attachment-medium size-medium\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto4_1280-300x188.jpg 300w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto4_1280-768x480.jpg 768w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto4_1280-1024x640.jpg 1024w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto4_1280-800x500.jpg 800w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/06\/tumblr_pabvlgBgI51vf4lrto4_1280.jpg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\n<p>So far, almost everything in House Dominae is read and parsed from external text files (read: moddable AF) with one exception: <i>activities<\/i> (\u201dsleep, work, clean\u201d, etc.), because they are mostly logic.<\/p>\n<p>I\u2019ve been experimenting with adding custom scripted activities using LUA. LUA is a pretty common scripting language and is often used in games due to its simplicity.<\/p>\n<p>It\u2019s working quite well and I\u2019m curious to see how far I can take it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So far, almost everything in House Dominae is read and parsed from external text files (read: moddable AF) with one exception: activities (\u201dsleep, work, clean\u201d, etc.), because they are mostly logic. I\u2019ve been experimenting with adding custom scripted activities using LUA. LUA is a pretty common scripting language and is often used in games due [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"gallery","meta":[],"categories":[1],"tags":[7,14,5,8],"_links":{"self":[{"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/posts\/63"}],"collection":[{"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":5,"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":363,"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions\/363"}],"wp:attachment":[{"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}