{"id":162,"date":"2007-04-11T09:29:23","date_gmt":"2007-04-11T07:29:23","guid":{"rendered":"http:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/?p=162"},"modified":"2007-04-11T09:29:23","modified_gmt":"2007-04-11T07:29:23","slug":"shock-therapy","status":"publish","type":"post","link":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/?p=162","title":{"rendered":"Shock therapy"},"content":{"rendered":"<p>Drama Princess is a largely &#8220;passive&#8221; technology. Actors don&#8217;t have a mind of their own. They slavishly do whatever their environment tells them to do. Once in a while, however, you need an actor to &#8220;wake up&#8221; and respond. For instance when another actor invites him for a walk, or when the actor is being pushed and should fall in response. For these kinds of things we have developed the &#8220;Shock System&#8221;.<\/p>\n<p>An actor, or any trigger in the game, can send a Shock to another actor. This Shock is an Opportunity like the ones broadcasted by the environment, except that it has an &#8220;Urgency&#8221; value. The more urgent the request is, the more likely that it will make it through the Decision Filters.<\/p>\n<p>The current implementation of Shock, simply adds the Opportunity to the list from which the system chooses one for the actor to do. In a next round of decision making it disappears because the list is rebuilt every time. If the actor missed it, then it&#8217;s gone. To make a Shock more persistent, so far, I have repeated the Shock request in Behaviours.<br \/>\nIf you don&#8217;t repeat the request, then the actor only has one chance of responding. And if that actor is controlled by the player, it&#8217;s virtually impossible the catch it, especially if we increase the speed of the decision making (which seems like a good idea for the player&#8217;s avatar).<\/p>\n<p>The solution I came up with is to not remove any Opportunities with some Urgency from the List of Opportunities wen starting the decision making process. Instead just reduce the Urgency a little bit every time. That way, the Shocks will stay present in the list for a while longer and gradually disappear.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Drama Princess is a largely &#8220;passive&#8221; technology. Actors don&#8217;t have a mind of their own. They slavishly do whatever their environment tells them to do. Once in a while, however, you need an actor to &#8220;wake up&#8221; and respond. For instance when another actor invites him for a walk, or when the actor is being [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-162","post","type-post","status-publish","format-standard","hentry","category-development"],"_links":{"self":[{"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=\/wp\/v2\/posts\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=162"}],"version-history":[{"count":0,"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}