{"id":274,"date":"2006-03-30T17:57:06","date_gmt":"2006-03-30T22:57:06","guid":{"rendered":"http:\/\/www.shamusyoung.com\/twentysidedtale\/?p=274"},"modified":"2007-11-04T10:27:34","modified_gmt":"2007-11-04T15:27:34","slug":"thief-3-emergent-misbehavior","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=274","title":{"rendered":"Thief 3: Emergent (Mis)behavior"},"content":{"rendered":"<p>While playing <a href=\"http:\/\/www.thief3.com\/\">Thief 3<\/a> some more I had a rather amusing AI mishap:  A couple of NPCs went absoloutely sideways and started <em>killing everyone<\/em>.<\/p>\n<table align=right width=320 cellpadding=10>\n<tr>\n<td><center><a href=\"images\/thief3_robbery.jpg\"><img decoding=\"async\" src=\"images\/thief3_robbery_thumb.jpg\"\/><\/a><br \/><small>All that glitters is not gold.  Some of it is money and gems.<\/small> <\/center> <\/td>\n<\/tr>\n<\/table>\n<p>The setup was this: I&#8217;m in some guy&#8217;s jewelery shop, minding my own business and robbing the place.  Then the owner gets home, and a couple of big goons are with him.  From the sounds of it, he was involved with some underhanded deal with these guys and he tried to cheat them.  He was supposed to hang on to some gems for them, but he was &#8220;skimming&#8221; the gems by (I think) cutting them.  I don&#8217;t know. The goons are quite upset.  The jeweler is unarmed and in a bad way.  He&#8217;s trying to talk his way out of things and he&#8217;s not doing very well.  <\/p>\n<p>The conversation seems to hint that I might want to intervene.  One of the goons says, &#8220;Sorry, but now we gotta kill ya.  So unless you gots any friends hidin&#8217; around here, this is it for you.&#8221;  Odd thing to say.  I can only assume this is the game&#8217;s way of suggesting I might want to help this guy, but I&#8217;m not going for it.  If you make a deal with dangerous criminals, cheat them, and then get caught, then you deserve whatever fate you get.  From my hiding place in the shadows I could drop one of the goons with an arrow, but then the other one would come after me. That is just too much trouble to save the life of a moron.  <\/p>\n<p>As the goons kill the jewler, he starts screaming for help.  I decide to clear out.  As I&#8217;m backing out of the room I bump something off a shelf and make some noise.  The goons hear it and start hunting for me.  An open doorway leading outside is on the opposite side of the room.   I can&#8217;t make it there without the goons seeing me.   However, I do have a noisemaker arrow, which is sort of a string of firecrackers on the end of an arrow.  It draws the attention of people nearby.  The goons are about to discover my hiding spot, so I fire the noisemaker out of the room.  They hear the loud noise and go charging out into the streets&#8230;<\/p>\n<p>&#8230;where they proceed to go completely <em>nuts<\/em>.  They charge into the intersection outside and start slaughtering peasants in the street.  The game auto-generates street traffic, so as they kill someone a new citizen is created nearby. (This happens off-screen, I never see them appear) This provides a steady stream of victims for the two killers. <\/p>\n<p>My character is great at stealth kills, but nearly helpless in a stand-up fight.  One town guard is usually more than I can handle. But these two guys are big, strong, and carry big swords. Whenever a member of the city watch shows up to help he just ends up on the growing pile of bodies. These guys are <em>unstoppable<\/em>.<\/p>\n<p><center><a href=\"images\/thief3_killing_spree.jpg\"><img decoding=\"async\" src=\"images\/thief3_killing_spree_thumb.jpg\"\/><\/a><br \/><small><\/small><\/center><\/p>\n<p>I didn&#8217;t think to get a picture while this was going on, so the screenshot doesn&#8217;t really give the full effect.  Whenever I look away the game does a bit of cleanup and removes some of the older bodies, so the pile is never bigger than five or six people. However, the real death toll must have been a few dozen.  These guys were at it for a long time.  <\/p>\n<p>What a mess.<\/p>\n<p>I&#8217;ve been thinking about this, and I&#8217;m still not entirely sure what made these guys go on the killing spree.  Obviously it could have been a bug or a fluke or sloppy scripting, but I&#8217;m more inclined to think that the peasants that brought this on themselves, as the result of a chain of various behaviors. I obviously don&#8217;t have the source code, but I think that peasants become fearful when they see a character who has recently killed someone.  (This is usually the player.) When they become scared they say things like, &#8220;I&#8217;m going to go find a town guard!&#8221;  Then they run off to tell a guard about the actor that scared them.  The guard will come and attempt to kill that actor.  <\/p>\n<p>Perhaps the noisemaker brought some peasants and the goons together, the peasants got spooked and decided to fetch the guards, which obliged the goons to kill them.  Once this got started it would have fed on itself, since new peasants would get spooked by the pile of corpses in the street and forced the goons to kill them as well.  If this is what happened then it&#8217;s an amusing case of unwanted emergent behavior.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While playing Thief 3 some more I had a rather amusing AI mishap: A couple of NPCs went absoloutely sideways and started killing everyone. All that glitters is not gold. Some of it is money and gems. The setup was this: I&#8217;m in some guy&#8217;s jewelery shop, minding my own business and robbing the place. [&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-274","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\/274","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=274"}],"version-history":[{"count":0,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/274\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}