{"id":270,"date":"2006-03-27T17:21:04","date_gmt":"2006-03-27T22:21:04","guid":{"rendered":"http:\/\/www.shamusyoung.com\/twentysidedtale\/?p=270"},"modified":"2007-11-04T10:27:25","modified_gmt":"2007-11-04T15:27:25","slug":"thief-3","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=270","title":{"rendered":"Thief 3"},"content":{"rendered":"<p><a href=\"?p=117\">A while ago<\/a> I talked about emergent gameplay and how its superior to older, more scripted games. Of course, even newer AI can have some pretty amusing screwups. In fact, the &#8220;smarter&#8221; the AI, the funnier it is when the whole thing flies apart. Over the weekend I was playing <a href=\"http:\/\/www.thief3.com\/\">Thief 3<\/a>, and ran into a situation that made me think about how truly <em>tough<\/em> it is to make even passable AI.<\/p>\n<table align=left width=300 cellpadding=10>\n<tr>\n<td><center><img decoding=\"async\" src=\"images\/thief3_citizen.jpg\"\/><br \/><small>The head of your average citizen has terrible acoustics, but the gold in their pockets makes a fun jingling sound when you pick it up.<\/small><\/center><\/td>\n<\/tr>\n<\/table>\n<p>In the game, you can sneak up on anyone (servants, nobility, or guards) and whack them on the back of the head to knock them out.  <em>(You can also stab someone in the back, but that&#8217;s noisy and bloody, and why kill them when you can just knock them out?)<\/em> Once they are knocked out, you usually need to hide them. If you leave them laying in the middle of the room or hallway, someone else is likely to come along and discover your work.  When this happens, they always assume the victim is dead.  Then they start with the running and the screaming and everyone searching for you.<\/p>\n<p>This can be amusing.  I was in a large manor, working my way through a sleeping area for servants.  One of them was already asleep in the bunk beds, but a few others were still wandering around.  I zonked one of them and placed the sleeping victim into one of the beds. I thought I was being clever. Another servant came in, saw their compatriot in the bed and exclaimed, &#8220;Dead!? But who could have killed him? I&#8217;ll go tell the guards!&#8221;  Then he ran off.<\/p>\n<p>Blast it all.<\/p>\n<table align=right width=300 cellpadding=10>\n<tr>\n<td><center><img decoding=\"async\" src=\"images\/thief3_knockout.jpg\"\/><br \/><small>When you knock somebody out, you need to stow them someplace dark and out-of-the-way.  This spot is definitely sub-optimal.<\/small><\/center><\/td>\n<\/tr>\n<\/table>\n<p>I should have known better.  The AI was just looking for knocked-out people.  It didn&#8217;t care <em>where<\/em> the body was.  I was so into the game I stopped the metagame thinking about AI and started thinking about what I&#8217;d do in the given situation.  In that situation, placing a zonked person in a bed made a lot more sense than dumping them in a corner.   However, to the AI it was just a poorly hidden body.  Sigh.<\/p>\n<p>But fixing this problem would be tricky, and would involve a lot of extra work.  The level designers would have to designate certain areas or objects as &#8220;beds&#8221;, and the programmers would need to make it so that bodies laying on beds rouse less suspicion than bodies found elsewhere.   Then they would need to add some new dialog and behavior:  If an NPC sees someone &#8220;sleeping&#8221; on a bed (most likely not in their own bed) while fully clothed and while they should be working, he shouldn&#8217;t ignore them, but he also shouldn&#8217;t run away screaming about murders and dead bodies.  You need some new behavior along the lines of &#8220;try to wake someone up and then discover they have been knocked out&#8221;.  <\/p>\n<table align=left width=300 cellpadding=10>\n<tr>\n<td><center><img decoding=\"async\" src=\"images\/thief3_streets.jpg\"\/><br \/><small>The city that never sleeps.  At least, not until I run around and give everone their good-night donk on the head.<\/small><\/center><\/td>\n<\/tr>\n<\/table>\n<p>But even with that extra effort, you can still have some amusing failure modes.  Placing a servant girl on a bed in the priest&#8217;s quarters or the barracks should raise some eyebrows.  Likewise, stacking two or more people in the same bed should tip off guards and servants that something is amiss.  It wouldn&#8217;t make sense for them to just assume they all decided to take a nap together. <\/p>\n<p>It would be annoying to code in such a way that it works right.  The programmer would probably need to take the victim&#8217;s position into account as well.  If I just toss somebody on the bed so that their upper body hangs over the side and their head is resting on the floor, it&#8217;s going to look pretty stupid if someone comes along and assumes they&#8217;re asleep.  <\/p>\n<p>Also, it seems like the length of time since the NPC&#8217;s last saw each other should be taken into account as well. If you greet your fellow housekeeper, walk out of the room, and come back a few seconds later to find them motionless in someone else&#8217;s bed, you are not going to think they are <em>sleeping<\/em>.<\/p>\n<table align=right width=320 cellpadding=10>\n<tr>\n<td><center><a href=\"images\/thief3_knockout2.jpg\"><img decoding=\"async\" src=\"images\/thief3_knockout2_thumb.jpg\"\/><\/a><br \/><small>I&#8217;m the sneaking, robbing, creeping, crawling, thump-you-on-the-head so you can get a good rest medicine. <\/small> <\/center> <\/td>\n<\/tr>\n<\/table>\n<p>The game can be funny if you think about it too much.  There is one house in particular where I stop by each night and give the occupant his good-night blow to the head.  I&#8217;ve already robbed him blind, so he doesn&#8217;t have anything left worth taking.  I just like to stop by after dark, sneak in, creep up behind him, and blast him on the back of the head.  What must life be like for this guy, waking up each morning on his floor, wondering what happened and why his head hurts? Does he blame booze? Narcolepsy? His ex-wife? <\/p>\n","protected":false},"excerpt":{"rendered":"<p>A while ago I talked about emergent gameplay and how its superior to older, more scripted games. Of course, even newer AI can have some pretty amusing screwups. In fact, the &#8220;smarter&#8221; the AI, the funnier it is when the whole thing flies apart. Over the weekend I was playing Thief 3, and ran into [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[50],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-reviews","tag-thief"],"_links":{"self":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/270","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=270"}],"version-history":[{"count":0,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}