{"id":1536,"date":"2010-09-21T22:06:40","date_gmt":"2010-09-21T11:06:40","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=1536"},"modified":"2010-09-21T22:59:15","modified_gmt":"2010-09-21T11:59:15","slug":"todays-fun-bug","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2010\/09\/21\/todays-fun-bug\/","title":{"rendered":"Today’s fun bug"},"content":{"rendered":"
So tonight, as part of bringing in the new combat system, I’ve smashed Monster Types and PC Classes together into the same thing. \u00a0That is, there’s no longer any difference between the classes that an AI subscriber can play, and the types of monsters that they can fight. \u00a0This means that it’ll be easily possible for the player to inhabit the body of a monster and test out monster attacks. \u00a0Or alternately, it should be possible to create monsters which use PC-playable class types. \u00a0(that is, if you have “Paladin”-class PCs, you should also be able to have “Paladin”-class monsters)<\/p>\n
This is the big first step toward smashing together PCs and Monsters (and probably eventually NPCs as well) into just one thing; \u00a0this will allow easy support for PVP and similar systems.<\/p>\n
Anyhow, after doing all this, Monsters suddenly stopped rendering once they’d been placed in the world. \u00a0They were rendered fine while the AI Developers brought them in from the graveyard, but as soon as an AI developer dropped it, *poof*<\/em>, the monster would instantly vanish. \u00a0I spent about an hour debugging this today, to figure out why monsters were vanishing immediately after becoming active. \u00a0It eventually turned out to have been because the old Monster Types declared a “maximum health” value for monsters to use, while all PCs automatically had 10 hit points maximum. \u00a0Now that Monsters were using PC-style classes, they didn’t have a “maximum health” value to set their health to, so they died immediately after being placed into the world. \u00a0Oops!<\/p>\n On the plus side, Classes now set a maximum health. \u00a0This means that it’ll be possible to make glass-cannon mages and other fragile player classes, now! \u00a0(They still default to ten points)<\/p>\n","protected":false},"excerpt":{"rendered":" So tonight, as part of bringing in the new combat system, I’ve smashed Monster Types and PC Classes together into the same thing. \u00a0That is, there’s no longer any difference between the classes that an AI subscriber can play, and the types of monsters that they can fight. \u00a0This means that it’ll be easily possible…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[24,25],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-oM","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/1536"}],"collection":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/comments?post=1536"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/1536\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=1536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=1536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=1536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}