{"id":1641,"date":"2014-11-27T22:00:00","date_gmt":"2014-11-27T22:00:00","guid":{"rendered":"http:\/\/www.spellcasterstudios.com\/?p=1641"},"modified":"2014-11-24T08:20:27","modified_gmt":"2014-11-24T08:20:27","slug":"master-of-illusions","status":"publish","type":"post","link":"https:\/\/www.spellcasterstudios.com\/?p=1641","title":{"rendered":"Master of Illusions"},"content":{"rendered":"<p align=\"justify\">Finished work on the \u201cfollow\u201d AI, which is used by NPCs on missions, but also in the Illusion Generator (which spawns some illusions that get attacked instead of the player)\u2026<\/p>\n<p align=\"justify\">The AI implementation went great for a change:<\/p>\n<p align=\"justify\"><a href=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2014\/11\/screen313.jpg\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" title=\"screen313\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"screen313\" src=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2014\/11\/screen313_thumb.jpg\" width=\"830\" height=\"482\" \/><\/a><\/p>\n<p align=\"justify\">But in the process I found a bucket load of bugs on the illusion system\u2026 This is a very old system, and a lot has changed in the meantime\u2026<\/p>\n<p align=\"justify\">First, the distribution of agro wasn\u2019t being made, so they were useless! The agro from the player must be transferred to the illusions\u2026 This is done now, or it should be\u2026 While moving towards a suitable place to test it, I found some more problems\u2026<\/p>\n<p align=\"justify\">When the player changes area, the illusions won\u2019t reposition properly\u2026 this will be complicated to solve because I have to add something I didn\u2019t have: a bind between the player and the illusions, and that bind must respond to a \u201cchange screen\u201d event. That means that when they die, they have to notify the player as well, so it will remove them from its internal lists.<\/p>\n<p align=\"justify\">I\u2019ll have to delve into that tomorrow\u2026 <\/p>\n<p align=\"justify\"><em>Now listening to \u201cImmortal\u201d by \u201cPyramaze\u201d<\/em><\/p>\n<p align=\"justify\"><em>Link of the Day: This is kind of porn for coders: a visual representation of sorting algorithms with lists of different sizes and randomness: <a title=\"http:\/\/www.sorting-algorithms.com\/\" href=\"http:\/\/www.sorting-algorithms.com\/\">http:\/\/www.sorting-algorithms.com\/<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finished work on the \u201cfollow\u201d AI, which is used by NPCs on missions, but also in the Illusion Generator (which spawns some illusions that get attacked instead of the player)\u2026 The AI implementation went great for a change: But in the process I found a bucket load of bugs on the illusion system\u2026 This is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,147,8],"tags":[244,23,243],"class_list":["post-1641","post","type-post","status-publish","format-standard","hentry","category-development","category-chrome-hunter","category-technology","tag-agro","tag-ai","tag-illusion"],"_links":{"self":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/1641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1641"}],"version-history":[{"count":1,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/1641\/revisions"}],"predecessor-version":[{"id":1642,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/1641\/revisions\/1642"}],"wp:attachment":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}