{"id":515,"date":"2006-07-19T17:14:49","date_gmt":"2006-07-19T22:14:49","guid":{"rendered":"http:\/\/www.shamusyoung.com\/twentysidedtale\/?p=515"},"modified":"2008-08-16T10:20:56","modified_gmt":"2008-08-16T15:20:56","slug":"oblivion-burglars-paradise","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=515","title":{"rendered":"Oblivion: Burglar&#8217;s paradise"},"content":{"rendered":"<p>This isn&#8217;t really about stealing in a video game, (which I&#8217;ve <a href=\"?p=307\">belabored<\/a> in <a href=\"?p=270\">the<\/a> <a href=\"?p=274\">past<\/a>) but about AI. Humor me for a second.<\/p>\n<p>One of the fun things in <a href=\"?p=489\">Oblivion<\/a> is the ability to rob just about everyone blind.  I love slipping into a shop late at night and and pulling a Grinch on them: I steal every single loose object in the place and don&#8217;t leave so much as a crumb behind.  This means taking lots of worthless stuff like ceramic cups and loose pieces of blank parchment, quill pens, gardening tools, and other items that I can&#8217;t even sell.   It&#8217;s always hilarious to walk into the shop the next morning and see the grinning idiot shopkeeper standing there in his bare room.  Makes me wish I could swipe furniture.  This also serves as a sort of revenge against all those shopkeepers in Nethack who have slain me over the years.<\/p>\n<p>But then the question arises: What does the player do with his ill-gotten goods?  It doesn&#8217;t make a lot of sense to let the player wander back in and sell the NPC their own stuff, does it?  <\/p>\n<p>Games have tried various ways to handle this.  In Morrowwind, a shopkeeper would notice if any items of his were missing.  If you then tried to sell him an item of that type (no matter how generic the item may be) then he would &#8220;recognise&#8221; his missing item.  So, if I steal a plain, unadorned fork from Bob, then I can never attempt to sell him a fork in the future because he will always assume it was <em>his<\/em> missing fork, and that I&#8217;m the one who swiped it.  <\/p>\n<p>In Oblivion they tried to make the thing a bit smarter, but really they just moved the stupid to a new place. As <a href=\"http:\/\/kaedrin.com\/weblog\/\">Mark<\/a> would tell you, <a href=\"http:\/\/kaedrin.com\/weblog\/archive\/001020.html\">we don&#8217;t so much solve problems as we trade one set of problems for another with the hope that the new set of problems is more favorable than the old<\/a>. Now when you steal an item (any item) from someone then the game flags it as a &#8220;stolen&#8221; item. In your inventory it is listed with a little red hand next to it, and you can&#8217;t sell it to any reputable shopkeeper. You can&#8217;t even try &#8211; the interface just won&#8217;t let you.  You can only sell the item to a fence. You can then buy that item right back from them (for about twice the price) and it will be cleared of its &#8220;stolen&#8221; status.  You can then keep or sell it to anyone as you like.  <\/p>\n<p><center><img decoding=\"async\" src=\"images\/oblivion_stolen_potato.jpg\" alt=\"Oblivion: Stolen goods\"\/><br \/><small>Notice how my inventory is sorted, keeping my harvested potatoes seperate from my stolen potatoes.<br \/>Yeah, wouldn&#8217;t want to accidently get those items mixed up.<\/small><\/center><\/p>\n<p>This doesn&#8217;t really make any more sense than the old system, but requiring the player to fence stolen goods does sort of add a layer of realisim to the game.  Lots of people have complained about the flaws in the new system.  After all, if I steal an apple and go to the next town, certainly I shouldn&#8217;t need to fence the apple!  This is an understandable complaint, although truly solving this problem is more difficult than it seems at first glance. It requires a lot of AI to figure out if an NPC should be able to spot an item as stolen.  <\/p>\n<p>So in an ideal world, what would determine if someone could spot a hot item? <\/p>\n<ol>\n<li><strong>The value of the item.<\/strong>  It should be easy to sell a stolen hammer or some blank parchment. Some items are of such little value that they shouldn&#8217;t be missed as long as you lifted it unseen.  On the other hand, a golden nicknack should be very hard to sell.\n<\/li>\n<li><strong>How distinctive it is. <\/strong>You can&#8217;t tell a stolen apple from an apple purchased at the store or plucked from a tree, and the NPC&#8217;s shouldn&#8217;t be able to tell the difference either.  On the other hand, a famous ring should be almost impossible to sell.\n<\/li>\n<li><strong>The relationship \/ proximity of the buyer to the original owner. <\/strong> If I steal Bob&#8217;s longsword, I shouldn&#8217;t be surprised when I can&#8217;t sell it to Bob.  Perhaps the rest of his family would have heard of the theft and be able to spot his sword as well, so I can&#8217;t sell to them either.  If Bob is an important man, then perhaps I need to go to another town to find a buyer.  If Bob is famous, then perhaps I need to go several towns away.\n<\/li>\n<li><strong>The time elapsed since the theft.<\/strong>  Right after I take something valuable I would expect lots of people to be on the lookout for the missing item, depending on the fame and influence of the owner.  However, as time passes I would expect most of them to forget about it, with the sphere of people shrinking until only the original owner remembers or cares about it.\n<\/li>\n<li><strong>How much the owner valued the item and was aware of it.<\/strong>  If I take Bob&#8217;s longsword from over his fireplace, it should be hard to sell.  If he had a whole box of them in his basement, much less so.\n<\/li>\n<li><strong>If the theft was noticed.<\/strong> As above, if an item is sitting unused and forgotten in a basement somewhere, then it should be easier to find a buyer because the original owner probably won&#8217;t miss it right away.\n<\/li>\n<li><strong>How trustworthy the player is.<\/strong> If a silver fork goes missing and the next day a famous hero and champion of the people shows up trying to pawn one, the buyer is not going to be eager to accuse him of petty theft.  On the other hand, if my character is some shiftless unknown who just rolled into town last night (right before the item went missing) and appears in the shop the next morning with the same item for sale, it should at least raise some eyebrows.\n<\/li>\n<li><strong>How much theft is going on.<\/strong>  If there has been a crime wave recently and lots of stuff is missing, then people should be much more suspect of what I have to sell. <\/li>\n<\/ol>\n<p>I would not want to try to write the AI code for all of this.  Each time you add another item on this list to the AI (no small task, some of it) you will just move the stupid from one part of the game to another.  You would eventually find yourself trying to write AI capable of gathering clues and evidence and solving crimes before the system was free of idiocy.  <\/p>\n<p>In some ways making NPC&#8217;s &#8220;smarter&#8221; makes them seem dumber.  I don&#8217;t expect much out of a lifeless NPC who stands behind a counter 24\/7\/365, who has no life, no family, nothing to do and nothing really to say.  He&#8217;s just an animated vending machine to the player.  However, once you give him a little voice acting, a bit of personality, make some of the other people in town his relatives, give him a daily routine of closing up shop and going home, then the player starts thinking of him as a character or even a person.  They might say, &#8220;I love Henry the shopkeeper.  He&#8217;s so crabby and pretends to hate his job so much, but the guys at the pub say he&#8217;s rich and he could really quit whenever he wanted.&#8221;<\/p>\n<p>But all of this is self-defeating in a way, because when Henry starts to seem real to the player then the player starts to expect Henry to behave rationally. Then when Henry does something very stupid (like refusing to buy a stolen potato, or being willing to buy an item you just lifted out of his pocket a second ago, like his own house key) then the illusion is broken and he seems even dumber than the NPC who never did anything and had no personality.<\/p>\n<p>This reminds me of the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Uncanny_Valley\">Uncanny Valley<\/a>.  Up to a certain point making the AI better and better makes the NPC seem more real, until they become too convincing and then their shortcomings suddenly become glaring and overshadow everything else.<\/p>\n<p>It&#8217;s an interesting problem, although it still doesn&#8217;t help me to know what I&#8217;m supposed to do with all of these corncobs I swiped. Will the buyer still be able to tell they are stolen if I turn them into popcorn?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This isn&#8217;t really about stealing in a video game, (which I&#8217;ve belabored in the past) but about AI. Humor me for a second. One of the fun things in Oblivion is the ability to rob just about everyone blind. I love slipping into a shop late at night and and pulling a Grinch on them: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[47],"class_list":["post-515","post","type-post","status-publish","format-standard","hentry","category-game-design","tag-oblivion"],"_links":{"self":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=515"}],"version-history":[{"count":0,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/515\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}