{"id":219,"date":"2012-10-14T16:46:21","date_gmt":"2012-10-14T16:46:21","guid":{"rendered":"http:\/\/xtsukihime.wordpress.com\/?p=219"},"modified":"2014-05-07T00:29:22","modified_gmt":"2014-05-07T05:29:22","slug":"core-learning","status":"publish","type":"post","link":"https:\/\/himeworks.com\/2012\/10\/core-learning\/","title":{"rendered":"Core: Learning"},"content":{"rendered":"<p>This script overwrites the default learning logic by separating the &#8220;can learn&#8221; conditions into a separate method. This allows you to add more conditions without having to overwrite any of the methods that are actually learning the skill when learn conditions are met.<\/p>\n<p><!--more--><strong>Download<\/strong><\/p>\n<p>Script: <a href=\"http:\/\/himeworks.com\/redirect.php?type=script&amp;name=Core_Learning\" target=\"_blank\">download here<\/a><\/p>\n<p><strong>Installation<\/strong><\/p>\n<p>Place this script above &#8220;Materials&#8221; and below Scene_Gameover<\/p>\n<p><strong>Usage<\/strong><\/p>\n<p>Two methods are overwritten in Game_Actor<\/p>\n<ul>\n<li>level_up<\/li>\n<li>init_skills<\/li>\n<\/ul>\n<p>If you look at the original scripts, you&#8217;ll see that I replace the learn condition with a method call to <code>can_learn?<\/code> which takes the learning object as a parameter.<\/p>\n<p>The method uses negative-checking, so if ANY condition fails, then you can&#8217;t learn the skill.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This script overwrites the default learning logic by separating the &#8220;can learn&#8221; conditions into a separate method. This allows you to add more conditions without having to overwrite any of the methods that are&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"twitterCardType":"","cardImageID":0,"cardImage":"","cardTitle":"","cardDesc":"","cardImageAlt":"","cardPlayer":"","cardPlayerWidth":0,"cardPlayerHeight":0,"cardPlayerStream":"","cardPlayerCodec":""},"categories":[14,4],"tags":[36],"_links":{"self":[{"href":"https:\/\/himeworks.com\/wp-json\/wp\/v2\/posts\/219"}],"collection":[{"href":"https:\/\/himeworks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himeworks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himeworks.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himeworks.com\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":0,"href":"https:\/\/himeworks.com\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"wp:attachment":[{"href":"https:\/\/himeworks.com\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himeworks.com\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himeworks.com\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}