{"id":131,"date":"2012-04-24T15:16:21","date_gmt":"2012-04-24T13:16:21","guid":{"rendered":"https:\/\/herr-rau.de\/blogs\/inform\/?p=131"},"modified":"2012-04-28T11:11:00","modified_gmt":"2012-04-28T09:11:00","slug":"kapitel-3-gegenstaende-anlegen","status":"publish","type":"post","link":"https:\/\/herr-rau.de\/blogs\/inform\/?p=131","title":{"rendered":"Kapitel 3: Gegenst\u00e4nde anlegen"},"content":{"rendered":"<p>Wir brauchen als Gegenst\u00e4nde <strong>drei Hoodies<\/strong> (rot, wei\u00df und schwarz) und ein <strong>St\u00fcck Kreide<\/strong>. Au\u00dferdem soll es ein paar unbewegliche Objekte geben, die vor allem zur Dekoration da sind und das Spielen befriedigender machen. Au\u00dferdem brauchen wir noch <strong>sieben Gei\u00dflein<\/strong>. Den Wolf spielen wir selber.<\/p>\n<h3>Allgemeine Gegenst\u00e4nde und ihre Eigenschaften<\/h3>\n<p>Die Klasse f\u00fcr Gegenst\u00e4nde ist <code>thing<\/code>:<\/p>\n<blockquote><p>The red hoodie is a thing. It is wearable. It is in the Wolf Cave. The description is &#8220;This is a red hoodie. A hoodie is a sweater with a hood.&#8221;<\/p>\n<p>The black hoodie is a thing. It is wearable. It is in the Wolf Cave. The description is &#8220;This is a black hoodie. A hoodie is a sweater with a hood.&#8221;<\/p>\n<p>The white hoodie is a thing. It is wearable. It is in the Wolf Cave. The description is &#8220;This is a white hoodie. A hoodie is a sweater with a hood.&#8221;<\/p><\/blockquote>\n<p>Gegenst\u00e4nde haben in der Regel eine Beschreibung, die mit: <code>the description is<\/code> eingeleitet wird. Au\u00dferdem brauchen sie, jedenfall wenn sie von Anfang an im Spiel da sein sollen, eine Ortsangabe, zum Beispiel eben <code>in the Wolf Cave<\/code>. Der Ort sollte vorher angelegt worden sein.<\/p>\n<p>Gegenst\u00e4nde haben au\u00dferdem bestimmte Attributwerte. Die wichtigsten sind:<\/p>\n<ul>\n<li><code>wearable\/not wearable<\/code> &#8211; kann man anziehen oder nicht<\/li>\n<li><code>edible\/not edible<\/code> &#8211; kann man essen oder nicht<\/li>\n<li><code>portable\/fixed in place<\/code> (oder: <code>not portabl<\/code>e) &#8211; kann man mitnehmen oder nicht<\/li>\n<li><code>scenery\/not scenery<\/code> (dazu sp\u00e4ter mehr)<\/li>\n<\/ul>\n<p>Das mit dem <code>wearable<\/code> haben wir schon bei den Hoodies eingesetzt.<\/p>\n<p>Dann packen wir auch noch die essbare Kreide dazu:<\/p>\n<blockquote><p>The piece of chalk is a thing. It is in the Marketplace. It is edible. The description is &#8220;Here is some chalk. You can use it, to write on a blackboard. If you eat it, your voice will get temporarily high and female.&#8221;<\/p><\/blockquote>\n<h3>Das scenery-Attribut<\/h3>\n<p>Normalerweise werden alle Gegenst\u00e4nde in einem Raum eigens in einer zur Laufzeit generierten Liste ausgedruckt. Das sind vor allem die wichtigen Gegenst\u00e4nde, die einem in dem Raum sofort auffallen w\u00fcrden, und die man vielleicht mitnimmt oder benutzt.<br \/>\nAtmosph\u00e4risch wird die Geschichte aber erst dann, wenn es Gegenst\u00e4nde gibt, die reine Dekoration sind. Wenn ein Gegenstand den Attribtuwert auf scenery gesetzthat, wird dieser Gegenstand nicht in der Liste ausgedruckt, ist aber doch vorhanden &#8211; man kann sie betrachten und benutzen. (Standardm\u00e4\u00dfig: nicht mitnehmen, aber das kann man \u00e4ndern.) Da diese Gegenst\u00e4nde nicht in der Liste aufgef\u00fchrt werden, muss man durch die Raumbeschreibung den Spieler-Leser darauf hinweisen, dass es da noch etwas gibt, das man betrachten kann:<\/p>\n<blockquote><p>The dripping cave ceiling is scenery in the Wolf Cave. The description is &#8220;There are drops at the ceiling. The whole cave is very wet and you can hear the drops hitting the ground.&#8221;\n<\/p><\/blockquote>\n<p>Oder:<\/p>\n<blockquote><p>The trees are scenery in the Forest. The description is &#8220;Lots of trees, some old, some new. Some have hearts cut into them.&#8221; Understand &#8220;tree&#8221; as the trees.<\/p>\n<p>The birds are scenery in the Forest. The description is &#8220;Small bodies that hop from tree to tree.&#8221;<\/p><\/blockquote>\n<h3>Beh\u00e4lter und Oberfl\u00e4chen<\/h3>\n<p>Es gibt zwei wichtige Unterklassen von <code>thing<\/code>, n\u00e4mlich <code>supporter<\/code> und <code>container<\/code>. In einen Container kann man Sachen tun, auf einen Suppoerter kann man Sachen draufstellen.<\/p>\n<p>Wenn es sich um einen Beh\u00e4lter handelt, gibt es auch noch:<\/p>\n<ul>\n<li><code>openable\/not openable<\/code> &#8211; kann man \u00f6ffnen und schlie\u00dfen oder nicht<\/li>\n<li><code>lockable\/not lockable<\/code> &#8211; kann man auf- und zusperren oder nicht<\/li>\n<li><code>open\/closed<\/code> &#8211; ist zur Zeit offen oder geschlossen<\/li>\n<li><code>locked\/unlocked<\/code> &#8211; ist zur Zeit zugesperrt oder nicht<\/li>\n<li><code>enterable\/not enterable<\/code> &#8211; man kann hineingehen oder nicht<\/li>\n<li><code>transparent\/opaque<\/code> (oder: <code>not transparent<\/code>) &#8211; ist durchsichtig oder nicht<\/li>\n<\/ul>\n<p>F\u00fcr die Gei\u00dflein-Geschichte brauchen wir das nicht, jedenfalls solange wir keinen Uhrenkasten haben wollen, in dem sich ein Gei\u00dflein versteckt. Deshalb nur kurz zwei Beispiele:<\/p>\n<p>Ein Pappkarton:<\/p>\n<blockquote><p>The cardboard box is an openable container in the Living Room. The description is &#8220;Looks like an ordinary cardboard box.&#8221; [It is closed and not lockable. It is not transparent.]\n<\/p><\/blockquote>\n<p>Die Angaben in eckigen Klammern kann man eigentlich weglassen, da das schon die Standard-Attributwerte f\u00fcr Container sind.<\/p>\n<p>Ein Sessel, betretbar (man kann darauf sitzen) und zu schwer zum Tragen:<\/p>\n<blockquote><p>The comfy chair is an enterable supporter in the Living Room. It is fixed in place. The description is &#8220;My! This looks comfortable.&#8221; Understand &#8220;comfortable&#8221; as the comfy chair.<\/p><\/blockquote>\n<p>Fehlen noch die Gei\u00dflein. Die kommen im n\u00e4chsten Kapitel.<\/p>\n<p>Wichtige Klassen und Attribute im \u00dcberblick:<\/p>\n<p><a href=\"https:\/\/herr-rau.de\/blogs\/inform\/files\/inform_klassen.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/herr-rau.de\/blogs\/inform\/files\/inform_klassen-300x222.png\" alt=\"\" title=\"inform_klassen\" width=\"300\" height=\"222\" class=\"alignnone size-medium wp-image-143\" srcset=\"https:\/\/herr-rau.de\/blogs\/inform\/files\/inform_klassen-300x222.png 300w, https:\/\/herr-rau.de\/blogs\/inform\/files\/inform_klassen-403x300.png 403w, https:\/\/herr-rau.de\/blogs\/inform\/files\/inform_klassen.png 903w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Gesamter Code bisher:<\/p>\n<pre class=\"brush: inform7; title: ; notranslate\" title=\"\">\r\n&quot;The Wolf and the Seven Kids&quot; by Moritz.\r\n \r\nThe Wolf Cave is a room. &quot;Here is your home. You got nearly everything in this cave that you need to invade the seven little kids. Light comes in from the west.&quot; West of the Wolf Cave is the Forest.\r\n \r\nThe Forest is a room. &quot;This place is very large and it is dark here. You can go north, east, south and west. You can hear birds singing.&quot; South of the Forest is the Marketplace. West of the Forest is the Entrance Area. North of the Forest is the River.\r\n \r\nThe River is a room. &quot;Here is a place where you can relax. Every time you did hard work, you can lie down next to the river and chill. A road leads south to a forest.&quot;\r\n \r\nThe Marketplace is a room. &quot;You should not stay here for too long, because the mother of the kids is often here to buy some food. If she sees you, she will bump the shit out of you. In the north, you can see the trees of the forest.&quot;\r\n \r\nThe Entrance Area is a room. &quot;Now you are in front of the house where the kids live. You have to go west to enter the house, or you can go east to the forest.&quot; West of the Entrance Area is the Kid House.\r\n \r\nThe Kid House is a room. &quot;A nice house. There is only one room, and the exit is west.&quot;\r\n\r\nThe red hoodie is a thing. It is wearable. It is in the Wolf Cave. The description is &quot;This is a red hoodie. A hoodie is a sweater with a hood.&quot;\r\n\r\nThe black hoodie is a thing. It is wearable. It is in the Wolf Cave. The description is &quot;This is a black hoodie. A hoodie is a sweater with a hood.&quot;\r\n\r\nThe white hoodie is a thing. It is wearable. It is in the Wolf Cave. The description is &quot;This is a white hoodie. A hoodie is a sweater with a hood.&quot;\r\n\r\nThe piece of chalk is a thing. It is in the Marketplace. It is edible. The description is &quot;Here is some chalk. You can use it, to write on a blackboard. If you eat it, your voice will get temporarily high and female.&quot;\r\n\r\nThe dripping cave ceiling is scenery in the Wolf Cave. The description is &quot;There are drops at the ceiling. The whole cave is very wet and you can hear the drops hitting the ground.&quot;\r\n\r\nThe trees are scenery in the Forest. The description is &quot;Lots of trees, some old, some new. Some have hearts cut into them.&quot; Understand &quot;tree&quot; as the trees.\r\n\r\nThe birds are scenery in the Forest. The description is &quot;Small bodies that hop from tree to tree.&quot;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Wir brauchen als Gegenst\u00e4nde drei Hoodies (rot, wei\u00df und schwarz) und ein St\u00fcck Kreide. Au\u00dferdem soll es ein paar unbewegliche Objekte geben, die vor allem zur Dekoration da sind und das Spielen befriedigender machen. Au\u00dferdem brauchen wir noch sieben Gei\u00dflein. &hellip; <a href=\"https:\/\/herr-rau.de\/blogs\/inform\/?p=131\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1305],"tags":[],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-schnellkurs-1"],"_links":{"self":[{"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=131"}],"version-history":[{"count":0,"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=\/wp\/v2\/posts\/131\/revisions"}],"wp:attachment":[{"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}