Advertisement
logicmoo

init-state structure

Feb 16th, 2020
1,400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 39.15 KB | None | 0 0
  1. INIT STATE
  2. =============================================
  3. [ props(basement,
  4.         [ volume_capacity = 10000,
  5.           default_rel = in,
  6.           has_rel(in,t),
  7.           nouns([here,basement]),
  8.           adjs([locally]),
  9.           can_be(move,f),
  10.           can_be(take,f),
  11.           has_rel(exit(Exit_Ret),t),
  12.           inherited(place),
  13.           desc = 'This is a very dark basement.',
  14.           dark = t,
  15.           co([ inherit(place,t),
  16.                desc = 'This is a very dark basement.',
  17.                dark = t
  18.              ])
  19.         ]),
  20.   props(dining_room,
  21.         [ volume_capacity = 10000,
  22.           default_rel = in,
  23.           has_rel(in,t),
  24.           nouns([here,dining_room]),
  25.           adjs([locally]),
  26.           can_be(move,f),
  27.           can_be(take,f),
  28.           has_rel(exit(Exit_Ret124),t),
  29.           inherited(place),
  30.           co([inherit(place,t)])
  31.         ]),
  32.   props(garden,
  33.         [ volume_capacity = 10000,
  34.           default_rel = in,
  35.           has_rel(in,t),
  36.           nouns([here,garden]),
  37.           adjs([locally]),
  38.           can_be(move,f),
  39.           can_be(take,f),
  40.           has_rel(exit(Exit_Ret125),t),
  41.           inherited(place),
  42.           cant_go($agent,up,'You lack the ability to fly.'),
  43.           co([ inherit(place,t),
  44.                cant_go($agent,up,'You lack the ability to fly.'),
  45.                cant_go($ agent,
  46.                        up,
  47.                        'The fence surrounding the garden is too tall and solid to pass.')
  48.              ])
  49.         ]),
  50.   props(kitchen,
  51.         [ volume_capacity = 10000,
  52.           default_rel = in,
  53.           has_rel(in,t),
  54.           nouns([here,kitchen]),
  55.           adjs([locally]),
  56.           can_be(move,f),
  57.           can_be(take,f),
  58.           has_rel(exit(Exit_Ret126),t),
  59.           inherited(place),
  60.           desc = 'cooking happens here',
  61.           co([inherit(place,t),desc='cooking happens here'])
  62.         ]),
  63.   props(living_room,
  64.         [ volume_capacity = 10000,
  65.           default_rel = in,
  66.           has_rel(in,t),
  67.           nouns([here,living_room]),
  68.           adjs([locally]),
  69.           can_be(move,f),
  70.           can_be(take,f),
  71.           has_rel(exit(Exit_Ret127),t),
  72.           inherited(place),
  73.           co([inherit(place,t)])
  74.         ]),
  75.   props(pantry,
  76.         [ volume_capacity = 1000,
  77.           nouns([closet,here,pantry]),
  78.           nominals(kitchen),
  79.           desc = 'You\'re in a dark kitchen pantry.',
  80.          dark = t,
  81.          default_rel = in,
  82.          has_rel(in,t),
  83.          adjs([locally]),
  84.          can_be(move,f),
  85.          can_be(take,f),
  86.          has_rel(exit(Exit_Ret128),t),
  87.          inherited(place),
  88.          co([ volume_capacity = 1000,
  89.               nouns(closet),
  90.               nominals(kitchen),
  91.               desc = 'You\'re in a dark kitchen pantry.',
  92.                dark = t,
  93.                inherit(place,t)
  94.              ])
  95.         ]),
  96.   props(brklamp,
  97.         [ name = 'definately broken',
  98.           effect(switch(on),true),
  99.           effect(switch(off),true),
  100.           adjs([dented,broken,shiny,physical,fully_corporial,thinkable]),
  101.           inherited(broken),
  102.           effect(hit,
  103.                  [print_("Hit brklamp"),setprop(brklamp,inherit(broken))]),
  104.           nouns([lamp,light,brklamp]),
  105.           powered = t,
  106.           can_be(switch,t),
  107.           nominals(brass),
  108.           inherited(shiny),
  109.           can_be(move,t),
  110.           can_be(touch,t),
  111.           cleanliness = clean,
  112.           class_desc([ 'kind is corporial',
  113.                        'kind is normally thinkable',
  114.                        'kind is an Movable Object'
  115.                      ]),
  116.           inherited(fully_corporial),
  117.           can_be(examine,t),
  118.           inherited(thinkable),
  119.           inherited(object),
  120.           emitting(see,light),
  121.           breaks_into = broken_lamp,
  122.           inherited(lamp),
  123.           co([ inherit(broken,t),
  124.                name = 'possibly broken lamp',
  125.                effect(switch(on),
  126.                       print_(Print_Param,"Switch is flipped")),
  127.                effect(hit,
  128.                       [ print_("Hit brklamp"),
  129.                         setprop($self,inherit(broken))
  130.                       ]),
  131.                inherit(lamp,t)
  132.              ])
  133.         ]),
  134.   props(screendoor,
  135.         [ door_to(kitchen),
  136.           door_to(garden),
  137.           opened = f,
  138.           nouns([door,screendoor]),
  139.           can_be(take,f),
  140.           can_be(open,t),
  141.           can_be(close,t),
  142.           can_be(touch,t),
  143.           can_be(examine,t),
  144.           adjs([thinkable,fully_corporial]),
  145.           class_desc(['kind is normally thinkable','kind is corporial']),
  146.           inherited(thinkable),
  147.           cleanliness = clean,
  148.           inherited(fully_corporial),
  149.           inherited(door),
  150.           co([ door_to(kitchen),
  151.                door_to(garden),
  152.                opened = f,
  153.                inherit(door,t)
  154.              ])
  155.         ]),
  156.   props(floyd,
  157.         [ name = 'Floyd the robot',
  158.           powered = f,
  159.           knows_verbs(eat,f),
  160.           nouns([ autonomous,
  161.                   robot,
  162.                   character,
  163.                   no_perceptq,
  164.                   actor,
  165.                   autoscan,
  166.                   floyd
  167.                 ]),
  168.           inherited(autonomous),
  169.           emitting(see,light),
  170.           mass = 200,
  171.           adjs([ metallic,
  172.                  shiny,
  173.                  physical,
  174.                  fully_corporial,
  175.                  partly_noncorporial,
  176.                  thinkable,
  177.                  noncorporial
  178.                ]),
  179.           desc = 'Your classic robot: metallic with glowing red eyes, enthusiastic but not very clever.',
  180.           can_be(switch,t),
  181.           can_be(move,t),
  182.           class_desc([ 'kind is an Movable Object',
  183.                        'kind is corporial',
  184.                        'kind is normally thinkable',
  185.                        'direct inheriters are completely noncorporial',
  186.                        'kind is both partly corporial and non-corporial'
  187.                      ]),
  188.           inherited(object),
  189.           inherited(shiny),
  190.           has_rel(worn_by,t),
  191.           has_rel(held_by,t),
  192.           model_depth = 3,
  193.           volume = 50,
  194.           has_sense(see),
  195.           inherited(no_perceptq),
  196.           knows_verbs(examine,t),
  197.           inherited(actor),
  198.           inherited(autoscan),
  199.           can_be(touch,t),
  200.           can_be(examine,t),
  201.           cleanliness = clean,
  202.           inherited(fully_corporial),
  203.           inherited(thinkable),
  204.           ~ inherit(fully_corporial),
  205.           inherited(noncorporial),
  206.           inherited(partly_noncorporial),
  207.           inherited(character),
  208.           effect(switch(on),setprop(floyd,powered=t)),
  209.           effect(switch(off),setprop(floyd,powered=f)),
  210.           inherited(robot),
  211.           co([ name = 'Floyd the robot',
  212.                powered = f,
  213.                inherit(autonomous,t),
  214.                inherit(robot,t)
  215.              ])
  216.         ]),
  217.   memories(floyd,
  218.            [ structure_label(mem(floyd)),
  219.              timestamp(0,477),
  220.              goals([]),
  221.              goals_skipped([]),
  222.              goals_satisfied([]),
  223.              todo([look(floyd)]),
  224.              inst(floyd)
  225.            ]),
  226.   props('cup~1',
  227.         [ shape = cup,
  228.           nouns([cup,container,'cup~1']),
  229.           adjs([physical,fully_corporial,thinkable]),
  230.           default_rel = in,
  231.           opened = f,
  232.           can_be(open,t),
  233.           has_rel(in,t),
  234.           inherited(container),
  235.           can_be(move,t),
  236.           can_be(touch,t),
  237.           cleanliness = clean,
  238.           class_desc([ 'kind is corporial',
  239.                        'kind is normally thinkable',
  240.                        'kind is an Movable Object'
  241.                      ]),
  242.           inherited(fully_corporial),
  243.           can_be(examine,t),
  244.           inherited(thinkable),
  245.           inherited(object),
  246.           inherited(flask),
  247.           inherited(cup),
  248.           co([shape=cup,inherit(cup,t),nouns([cup])])
  249.         ]),
  250.   props('cabinate~1',
  251.         [ shape = cabinate,
  252.           nouns([cabinate,container,'cabinate~1']),
  253.           default_rel = in,
  254.           opened = f,
  255.           can_be(open,t),
  256.           has_rel(in,t),
  257.           inherited(container),
  258.           adjs([untakeable,fully_corporial,physical,thinkable]),
  259.           can_be(take,f),
  260.           class_desc([ 'kind is an Immobile Object',
  261.                        'kind is corporial',
  262.                        'kind is normally thinkable',
  263.                        'kind is furnature'
  264.                      ]),
  265.           inherited(untakeable),
  266.           can_be(touch,t),
  267.           inherited(fully_corporial),
  268.           has_rel(on,t),
  269.           cleanliness = clean,
  270.           inherited(surface),
  271.           can_be(examine,t),
  272.           inherited(thinkable),
  273.           inherited(furnature),
  274.           volume_capacity = 10,
  275.           inherited(cabinate),
  276.           co([shape=cabinate,inherit(cabinate,t),nouns([cabinate])])
  277.         ]),
  278.   props('plate~1',
  279.         [ shape = plate,
  280.           nouns([plate,'plate~1']),
  281.           has_rel(on,t),
  282.           default_rel = on,
  283.           adjs([physical,fully_corporial,thinkable]),
  284.           inherited(surface),
  285.           can_be(move,t),
  286.           can_be(touch,t),
  287.           cleanliness = clean,
  288.           class_desc([ 'kind is corporial',
  289.                        'kind is normally thinkable',
  290.                        'kind is an Movable Object'
  291.                      ]),
  292.           inherited(fully_corporial),
  293.           can_be(examine,t),
  294.           inherited(thinkable),
  295.           inherited(object),
  296.           volume_capacity = 2,
  297.           breaks_into = shards,
  298.           name = plate,
  299.           inherited(plate),
  300.           co([shape=plate,inherit(plate,t),nouns([plate])])
  301.         ]),
  302.   props('sink~1',
  303.         [ shape = sink,
  304.           nouns([sink,uncloseable,container,'sink~1']),
  305.           cleanliness = dirty,
  306.           opened = t,
  307.           can_be(close,f),
  308.           can_be(open,f),
  309.           inherited(uncloseable),
  310.           adjs([physical,untakeable,fully_corporial,thinkable]),
  311.           default_rel = in,
  312.           has_rel(in,t),
  313.           inherited(container),
  314.           can_be(move,t),
  315.           class_desc([ 'kind is an Movable Object',
  316.                        'kind is an Immobile Object',
  317.                        'kind is corporial',
  318.                        'kind is normally thinkable',
  319.                        'kind is furnature'
  320.                      ]),
  321.           inherited(object),
  322.           inherited(flask),
  323.           can_be(take,f),
  324.           inherited(untakeable),
  325.           can_be(touch,t),
  326.           inherited(fully_corporial),
  327.           has_rel(on,t),
  328.           inherited(surface),
  329.           can_be(examine,t),
  330.           inherited(thinkable),
  331.           inherited(furnature),
  332.           volume_capacity = 5,
  333.           inherited(sink),
  334.           co([shape=sink,inherit(sink,t),nouns([sink])])
  335.         ]),
  336.   props('lamp~1',
  337.         [ shape = lamp,
  338.           nouns([lamp,light,'lamp~1']),
  339.           name = 'shiny brass lamp',
  340.           powered = t,
  341.           can_be(switch,t),
  342.           nominals(brass),
  343.           adjs([shiny,physical,fully_corporial,thinkable]),
  344.           inherited(shiny),
  345.           can_be(move,t),
  346.           can_be(touch,t),
  347.           cleanliness = clean,
  348.           class_desc([ 'kind is corporial',
  349.                        'kind is normally thinkable',
  350.                        'kind is an Movable Object'
  351.                      ]),
  352.           inherited(fully_corporial),
  353.           can_be(examine,t),
  354.           inherited(thinkable),
  355.           inherited(object),
  356.           emitting(see,light),
  357.           effect(switch(on),setprop('lamp~1',emitting(see,light))),
  358.           effect(switch(off),delprop('lamp~1',emitting(see,light))),
  359.           breaks_into = broken_lamp,
  360.           inherited(lamp),
  361.           co([shape=lamp,inherit(lamp,t),nouns([lamp])])
  362.         ]),
  363.   props('flour~1',
  364.         [ shape = flour,
  365.           nouns([flour,food,'flour~1']),
  366.           can_be(eat,t),
  367.           adjs([physical,fully_corporial,thinkable,measurable]),
  368.           can_be(move,t),
  369.           can_be(touch,t),
  370.           cleanliness = clean,
  371.           class_desc([ 'kind is corporial',
  372.                        'kind is normally thinkable',
  373.                        'kind is an Movable Object'
  374.                      ]),
  375.           inherited(fully_corporial),
  376.           can_be(examine,t),
  377.           inherited(thinkable),
  378.           inherited(object),
  379.           inherited(food),
  380.           ammount = some,
  381.           inherited(measurable),
  382.           inherited(flour),
  383.           co([shape=flour,inherit(flour,t),nouns([flour])])
  384.         ]),
  385.   props('bowl~1',
  386.         [ shape = bowl,
  387.           nouns([bowl,uncloseable,container,'bowl~1']),
  388.           opened = t,
  389.           can_be(close,f),
  390.           can_be(open,f),
  391.           inherited(uncloseable),
  392.           adjs([physical,fully_corporial,thinkable]),
  393.           default_rel = in,
  394.           has_rel(in,t),
  395.           inherited(container),
  396.           can_be(move,t),
  397.           can_be(touch,t),
  398.           cleanliness = clean,
  399.           class_desc([ 'kind is corporial',
  400.                        'kind is normally thinkable',
  401.                        'kind is an Movable Object'
  402.                      ]),
  403.           inherited(fully_corporial),
  404.           can_be(examine,t),
  405.           inherited(thinkable),
  406.           inherited(object),
  407.           inherited(flask),
  408.           volume_capacity = 2,
  409.           breaks_into = shards,
  410.           name = 'porcelain bowl',
  411.           desc = 'This is a modest glass cooking bowl with a yellow flower motif glazed into the outside surface.',
  412.           inherited(bowl),
  413.           co([shape=bowl,inherit(bowl,t),nouns([bowl])])
  414.         ]),
  415.   props('box~1',
  416.         [ shape = box,
  417.           nouns([box,container,'box~1',cardboard,paper]),
  418.           volume_capacity = 11,
  419.           default_rel = in,
  420.           opened = f,
  421.           can_be(open,t),
  422.           has_rel(in,t),
  423.           inherited(container),
  424.           adjs([physical,fully_corporial,thinkable]),
  425.           can_be(move,t),
  426.           can_be(touch,t),
  427.           cleanliness = clean,
  428.           class_desc([ 'kind is corporial',
  429.                        'kind is normally thinkable',
  430.                        'kind is an Movable Object'
  431.                      ]),
  432.           inherited(fully_corporial),
  433.           can_be(examine,t),
  434.           inherited(thinkable),
  435.           inherited(object),
  436.           can_be(burn,t),
  437.           inherited(paper),
  438.           inherited(cardboard),
  439.           inherited(box),
  440.           co([shape=box,inherit(box,t),nouns([box])])
  441.         ]),
  442.   props('table~1',
  443.         [ shape = table,
  444.           has_rel(on,t),
  445.           cleanliness = clean,
  446.           inherited(surface),
  447.           adjs(physical),
  448.           default_rel = on,
  449.           inherited(table),
  450.           nouns([table]),
  451.           co([shape=(table),inherit(table,t),nouns([table])])
  452.         ]),
  453.   props('table_leg~1',
  454.         [ shape = table_leg,
  455.           inherited(table_leg),
  456.           nouns([table_leg]),
  457.           co([shape=table_leg,inherit(table_leg,t),nouns([table_leg])])
  458.         ]),
  459.   props('apple~1',
  460.         [ shape = apple,
  461.           inherited(apple),
  462.           nouns([apple]),
  463.           co([shape=apple,inherit(apple,t),nouns([apple])])
  464.         ]),
  465.   props('crate~1',
  466.         [ shape = crate,
  467.           nouns([crate,container,'crate~1',wooden]),
  468.           default_rel = in,
  469.           opened = f,
  470.           can_be(open,t),
  471.           has_rel(in,t),
  472.           inherited(container),
  473.           adjs([physical,fully_corporial,thinkable]),
  474.           can_be(move,t),
  475.           can_be(touch,t),
  476.           cleanliness = clean,
  477.           class_desc([ 'kind is corporial',
  478.                        'kind is normally thinkable',
  479.                        'kind is an Movable Object'
  480.                      ]),
  481.           inherited(fully_corporial),
  482.           can_be(examine,t),
  483.           inherited(thinkable),
  484.           inherited(object),
  485.           volume_capacity = 13,
  486.           breaks_into = splinters,
  487.           can_be(burn,t),
  488.           inherited(wooden),
  489.           inherited(crate),
  490.           co([shape=crate,inherit(crate,t),nouns([crate])])
  491.         ]),
  492.   props('fireplace~1',
  493.         [ shape = fireplace,
  494.           nouns([fireplace,uncloseable,container,'fireplace~1']),
  495.           has_rel(on,f),
  496.           has_rel(over,t),
  497.           opened = t,
  498.           can_be(close,f),
  499.           can_be(open,f),
  500.           default_rel = in,
  501.           has_rel(in,t),
  502.           inherited(container),
  503.           inherited(uncloseable),
  504.           volume_capacity = 20,
  505.           adjs([untakeable,fully_corporial,physical,thinkable]),
  506.           can_be(take,f),
  507.           class_desc([ 'kind is an Immobile Object',
  508.                        'kind is corporial',
  509.                        'kind is normally thinkable',
  510.                        'kind is furnature'
  511.                      ]),
  512.           inherited(untakeable),
  513.           can_be(touch,t),
  514.           inherited(fully_corporial),
  515.           cleanliness = clean,
  516.           inherited(surface),
  517.           can_be(examine,t),
  518.           inherited(thinkable),
  519.           inherited(furnature),
  520.           inherited(fireplace),
  521.           co([shape=fireplace,inherit(fireplace,t),nouns([fireplace])])
  522.         ]),
  523.   props('videocamera~1',
  524.         [ shape = videocamera,
  525.           nouns([videocamera,memorize_perceptq]),
  526.           inherited(memorize_perceptq),
  527.           can_be(switch,t),
  528.           effect(switch(on),setprop('videocamera~1',powered=t)),
  529.           effect(switch(off),setprop('videocamera~1',powered=f)),
  530.           powered = t,
  531.           has_sense(see),
  532.           breaks_into = broken_videocam,
  533.           inherited(videocamera),
  534.           co([ shape = videocamera,
  535.                inherit(videocamera,t),
  536.                nouns([videocamera])
  537.              ])
  538.         ]),
  539.   memories('videocamera~1',
  540.            [ structure_label(mem('videocamera~1')),
  541.              timestamp(0,476.9),
  542.              goals([]),
  543.              goals_skipped([]),
  544.              goals_satisfied([]),
  545.              todo([look('videocamera~1')]),
  546.              inst('videocamera~1')
  547.            ]),
  548.   perceptq('videocamera~1',[]),
  549.   props('shovel~1',
  550.         [ shape = shovel,
  551.           inherited(shovel),
  552.           nouns([shovel]),
  553.           co([shape=shovel,inherit(shovel,t),nouns([shovel])])
  554.         ]),
  555.   props('mushroom~1',
  556.         [ shape = mushroom,
  557.           name = 'speckled mushroom',
  558.           nouns([food,'mushroom~1',mushroom,fungus,toadstool]),
  559.           adjs([physical,fully_corporial,thinkable,measurable,speckled]),
  560.           can_be(move,t),
  561.           can_be(touch,t),
  562.           cleanliness = clean,
  563.           class_desc([ 'kind is corporial',
  564.                        'kind is normally thinkable',
  565.                        'kind is an Movable Object'
  566.                      ]),
  567.           inherited(fully_corporial),
  568.           can_be(examine,t),
  569.           inherited(thinkable),
  570.           inherited(object),
  571.           ammount = some,
  572.           inherited(measurable),
  573.           inherited(food),
  574.           initial('A speckled mushroom grows out of the sodden earth, on a long stalk.'),
  575.           desc = 'The mushroom is capped with blotches, and you aren\'t at all sure it\'s not a toadstool.',
  576.           can_be(eat,t),
  577.           before(eat,(random100=<30,die('It was poisoned!');'yuck!')),
  578.           after(take,
  579.                 initial ',' 'You pick the mushroom, neatly cleaving its thin stalk.'),
  580.           inherited(mushroom),
  581.           co([shape=mushroom,inherit(mushroom,t),nouns([mushroom])])
  582.         ]),
  583.   props('fountain~1',
  584.         [ shape = fountain,
  585.           nouns([fountain,here,'fountain~1',sink,uncloseable,container]),
  586.           volume_capacity = 150,
  587.           adjs([locally,physical,untakeable,fully_corporial,thinkable]),
  588.           can_be(move,f),
  589.           has_rel(exit(Exit_Ret129),t),
  590.           inherited(place),
  591.           cleanliness = dirty,
  592.           opened = t,
  593.           can_be(close,f),
  594.           can_be(open,f),
  595.           inherited(uncloseable),
  596.           default_rel = in,
  597.           has_rel(in,t),
  598.           inherited(container),
  599.           class_desc([ 'kind is an Movable Object',
  600.                        'kind is an Immobile Object',
  601.                        'kind is corporial',
  602.                        'kind is normally thinkable',
  603.                        'kind is furnature'
  604.                      ]),
  605.           inherited(object),
  606.           inherited(flask),
  607.           can_be(take,f),
  608.           inherited(untakeable),
  609.           can_be(touch,t),
  610.           inherited(fully_corporial),
  611.           has_rel(on,t),
  612.           inherited(surface),
  613.           can_be(examine,t),
  614.           inherited(thinkable),
  615.           inherited(furnature),
  616.           inherited(sink),
  617.           inherited(fountain),
  618.           co([shape=fountain,inherit(fountain,t),nouns([fountain])])
  619.         ]),
  620.   props('rock~1',
  621.         [ shape = rock,
  622.           inherited(rock),
  623.           nouns([rock]),
  624.           co([shape=rock,inherit(rock,t),nouns([rock])])
  625.         ]),
  626.   props('locker~1',
  627.         [ shape = locker,
  628.           nouns([locker,container,'locker~1',metal]),
  629.           default_rel = in,
  630.           can_be(open,t),
  631.           has_rel(in,t),
  632.           inherited(container),
  633.           adjs([physical,fully_corporial,thinkable]),
  634.           can_be(move,t),
  635.           can_be(touch,t),
  636.           cleanliness = clean,
  637.           class_desc([ 'kind is corporial',
  638.                        'kind is normally thinkable',
  639.                        'kind is an Movable Object'
  640.                      ]),
  641.           inherited(fully_corporial),
  642.           can_be(examine,t),
  643.           inherited(thinkable),
  644.           inherited(object),
  645.           volume_capacity = 13,
  646.           can_be(burn,f),
  647.           inherited(metal),
  648.           opened = f,
  649.           inherited(locker),
  650.           co([shape=locker,inherit(locker,t),nouns([locker])])
  651.         ]),
  652.   props('shelf~1',
  653.         [ shape = shelf,
  654.           adjs([physical,untakeable,fully_corporial,thinkable]),
  655.           can_be(take,f),
  656.           class_desc([ 'kind is an Immobile Object',
  657.                        'kind is corporial',
  658.                        'kind is normally thinkable',
  659.                        'kind is furnature'
  660.                      ]),
  661.           inherited(untakeable),
  662.           can_be(touch,t),
  663.           inherited(fully_corporial),
  664.           has_rel(on,t),
  665.           default_rel = on,
  666.           cleanliness = clean,
  667.           inherited(surface),
  668.           can_be(examine,t),
  669.           nouns(['shelf~1',shelf]),
  670.           inherited(thinkable),
  671.           inherited(furnature),
  672.           inherited(shelf),
  673.           co([shape=shelf,inherit(shelf,t),nouns([shelf])])
  674.         ]),
  675.   props('wrench~1',
  676.         [ shape = wrench,
  677.           nouns([wrench,'wrench~1']),
  678.           adjs([shiny,physical,thinkable,fully_corporial]),
  679.           can_be(move,t),
  680.           class_desc([ 'kind is an Movable Object',
  681.                        'kind is normally thinkable',
  682.                        'kind is corporial'
  683.                      ]),
  684.           inherited(object),
  685.           can_be(touch,t),
  686.           can_be(examine,t),
  687.           inherited(thinkable),
  688.           cleanliness = clean,
  689.           inherited(fully_corporial),
  690.           inherited(shiny),
  691.           inherited(wrench),
  692.           co([shape=wrench,inherit(wrench,t),nouns([wrench])])
  693.         ]),
  694.   props('coins~1',
  695.         [ shape = coins,
  696.           nouns([coins,'coins~1']),
  697.           adjs([shiny,physical,thinkable,fully_corporial,measurable]),
  698.           can_be(move,t),
  699.           class_desc([ 'kind is an Movable Object',
  700.                        'kind is normally thinkable',
  701.                        'kind is corporial'
  702.                      ]),
  703.           inherited(object),
  704.           can_be(touch,t),
  705.           can_be(examine,t),
  706.           inherited(thinkable),
  707.           cleanliness = clean,
  708.           inherited(fully_corporial),
  709.           inherited(shiny),
  710.           ammount = some,
  711.           inherited(measurable),
  712.           inherited(coins),
  713.           co([shape=coins,inherit(coins,t),nouns([coins])])
  714.         ]),
  715.   props('bag~1',
  716.         [ shape = bag,
  717.           nouns([bag,container,'bag~1']),
  718.           volume_capacity = 10,
  719.           default_rel = in,
  720.           opened = f,
  721.           can_be(open,t),
  722.           has_rel(in,t),
  723.           inherited(container),
  724.           adjs([physical,fully_corporial,thinkable]),
  725.           can_be(move,t),
  726.           can_be(touch,t),
  727.           cleanliness = clean,
  728.           class_desc([ 'kind is corporial',
  729.                        'kind is normally thinkable',
  730.                        'kind is an Movable Object'
  731.                      ]),
  732.           inherited(fully_corporial),
  733.           can_be(examine,t),
  734.           inherited(thinkable),
  735.           inherited(object),
  736.           inherited(bag),
  737.           co([shape=bag,inherit(bag,t),nouns([bag])])
  738.         ]),
  739.   props('watch~1',
  740.         [ shape = watch,
  741.           inherited(watch),
  742.           nouns([watch]),
  743.           co([shape=watch,inherit(watch,t),nouns([watch])])
  744.         ]),
  745.   props('player~1',
  746.         [ shape = player,
  747.           nouns([ player,
  748.                   humanoid,
  749.                   character,
  750.                   no_perceptq,
  751.                   actor,
  752.                   autoscan,
  753.                   'player~1'
  754.                 ]),
  755.           name = 'player~1',
  756.           look_depth = 2,
  757.           user_mode = 2,
  758.           access_level = admin,
  759.           adjs([ physical,
  760.                  fully_corporial,
  761.                  partly_noncorporial,
  762.                  thinkable,
  763.                  noncorporial
  764.                ]),
  765.           nominals([console]),
  766.           inherited(console),
  767.           knows_verbs(eat,t),
  768.           has_rel(worn_by,t),
  769.           has_rel(held_by,t),
  770.           model_depth = 3,
  771.           mass = 50,
  772.           volume = 50,
  773.           has_sense(see),
  774.           inherited(no_perceptq),
  775.           knows_verbs(examine,t),
  776.           inherited(actor),
  777.           inherited(autoscan),
  778.           can_be(touch,t),
  779.           can_be(examine,t),
  780.           cleanliness = clean,
  781.           class_desc([ 'kind is corporial',
  782.                        'kind is normally thinkable',
  783.                        'direct inheriters are completely noncorporial',
  784.                        'kind is both partly corporial and non-corporial'
  785.                      ]),
  786.           inherited(fully_corporial),
  787.           inherited(thinkable),
  788.           ~ inherit(fully_corporial),
  789.           inherited(noncorporial),
  790.           inherited(partly_noncorporial),
  791.           inherited(character),
  792.           can(switch(off),f),
  793.           powered = t,
  794.           inherited(humanoid),
  795.           inherited(player),
  796.           co([shape=player,inherit(player,t),nouns([player])])
  797.         ]),
  798.   memories('player~1',
  799.            [ structure_label(mem('player~1')),
  800.              timestamp(0,476.7),
  801.              goals([]),
  802.              goals_skipped([]),
  803.              goals_satisfied([]),
  804.              todo([look('player~1')]),
  805.              inst('player~1')
  806.            ]),
  807.   h(in,'player~1',kitchen),
  808.   h(worn_by,'watch~1','player~1'),
  809.   h(held_by,'bag~1','player~1'),
  810.   h(in,'coins~1','bag~1'),
  811.   h(held_by,'wrench~1',floyd),
  812.   h(in,'shelf~1',pantry),
  813.   h(in,'locker~1',pantry),
  814.   h(in,'rock~1',garden),
  815.   h(in,'fountain~1',garden),
  816.   h(in,'mushroom~1',garden),
  817.   h(in,'shovel~1',basement),
  818.   h(in,'videocamera~1',living_room),
  819.   h(in,'fireplace~1',living_room),
  820.   h(in,'crate~1',kitchen),
  821.   h(in,'apple~1','crate~1'),
  822.   h(reverse(on),'table~1','table_leg~1'),
  823.   h(on,'box~1','table~1'),
  824.   h(in,'bowl~1','box~1'),
  825.   h(in,'flour~1','bowl~1'),
  826.   h(in,'table~1',kitchen),
  827.   h(on,'lamp~1','table~1'),
  828.   h(in,'sink~1',kitchen),
  829.   h(in,'plate~1','sink~1'),
  830.   h(in,'cabinate~1',kitchen),
  831.   h(in,'cup~1','cabinate~1'),
  832.   type_props(broken_videocam,
  833.              [can_be(switch,f),powered=f,inherit(videocamera,t)]),
  834.   type_props(videocamera,
  835.              [ inherit(memorize,t),
  836.                inherit(perceptq,t),
  837.                inherit(memorize_perceptq,t),
  838.                can_be(switch,t),
  839.                effect(switch(on),setprop($self,powered=t)),
  840.                effect(switch(off),setprop($self,powered=f)),
  841.                powered = t,
  842.                has_sense(see),
  843.                breaks_into = broken_videocam
  844.              ]),
  845.   type_props(wrench,[inherit(shiny,t)]),
  846.   type_props(table,[inherit(surface,t),adjs(physical),default_rel=on]),
  847.   type_props(shelf,
  848.              [inherit(surface,t),adjs(physical),inherit(furnature,t)]),
  849.   type_props(surface,
  850.              [ has_rel(on,t),
  851.                default_rel = on,
  852.                adjs(physical),
  853.                cleanliness = clean
  854.              ]),
  855.   type_props(broken_lamp,
  856.              [ name = 'dented brass lamp',
  857.                nouns(light),
  858.                nominals(brass),
  859.                adjs(dented),
  860.                can_be(switch,t),
  861.                effect(switch(on),true),
  862.                effect(switch(off),true)
  863.              ]),
  864.   type_props(lamp,
  865.              [ name = 'shiny brass lamp',
  866.                powered = t,
  867.                can_be(switch,t),
  868.                nouns(light),
  869.                nominals(brass),
  870.                inherit(shiny,t),
  871.                inherit(object,t),
  872.                emitting(see,light),
  873.                effect(switch(on),setprop($self,emitting(see,light))),
  874.                effect(switch(off),delprop($self,emitting(see,light))),
  875.                breaks_into = broken_lamp
  876.              ]),
  877.   type_props(flour,[inherit(food,t),inherit(measurable,t)]),
  878.   type_props(coins,[inherit(shiny,t),inherit(measurable,t)]),
  879.   type_props(shiny,
  880.              [ adjs($class),
  881.                inherit(object,t),
  882.                inherit(fully_corporial,t)
  883.              ]),
  884.   type_props(measurable,[adjs($class),ammount=some]),
  885.   type_props(fountain,
  886.              [volume_capacity=150,inherit(place,t),inherit(sink,t)]),
  887.   type_props(cabinate,
  888.              [ inherit(container,t),
  889.                inherit(furnature,t),
  890.                volume_capacity = 10
  891.              ]),
  892.   type_props(uncloseable,
  893.              [ opened = t,
  894.                can_be(close,f),
  895.                can_be(open,f),
  896.                inherit(container,t)
  897.              ]),
  898.   type_props(sink,
  899.              [ cleanliness = dirty,
  900.                inherit(uncloseable,t),
  901.                inherit(flask,t),
  902.                inherit(furnature,t),
  903.                volume_capacity = 5
  904.              ]),
  905.   type_props(paper,[can_be(burn,t)]),
  906.   type_props(cardboard,[inherit(paper,t)]),
  907.   type_props(metal,[can_be(burn,f)]),
  908.   type_props(wooden,[breaks_into=splinters,can_be(burn,t)]),
  909.   type_props(locker,
  910.              [ inherit(container,t),
  911.                inherit(object,t),
  912.                volume_capacity = 13,
  913.                inherit(metal,t),
  914.                opened = f
  915.              ]),
  916.   type_props(crate,
  917.              [ inherit(container,t),
  918.                inherit(object,t),
  919.                volume_capacity = 13,
  920.                inherit(wooden,t),
  921.                opened = t
  922.              ]),
  923.   type_props(box,
  924.              [ opened = f,
  925.                volume_capacity = 11,
  926.                inherit(container,t),
  927.                inherit(object,t),
  928.                inherit(cardboard,t)
  929.              ]),
  930.   type_props(fireplace,
  931.              [ has_rel(on,f),
  932.                has_rel(over,t),
  933.                inherit(uncloseable,t),
  934.                volume_capacity = 20,
  935.                inherit(furnature,t)
  936.              ]),
  937.   type_props(plate,
  938.              [ inherit(surface,t),
  939.                inherit(object,t),
  940.                volume_capacity = 2,
  941.                breaks_into = shards,
  942.                cleanliness = dirty,
  943.                name = $ class
  944.              ]),
  945.   type_props(bowl,
  946.              [ inherit(uncloseable,t),
  947.                inherit(flask,t),
  948.                volume_capacity = 2,
  949.                breaks_into = shards,
  950.                cleanliness = dirty,
  951.                name = 'porcelain bowl',
  952.                desc = 'This is a modest glass cooking bowl with a yellow flower motif glazed into the outside surface.'
  953.              ]),
  954.   type_props(flask,
  955.              [adjs(physical),inherit(container,t),inherit(object,t)]),
  956.   type_props(cup,[inherit(flask,t)]),
  957.   type_props(bag,
  958.              [ volume_capacity = 10,
  959.                inherit(container,t),
  960.                inherit(object,t)
  961.              ]),
  962.   type_props(container,
  963.              [default_rel=in,opened=f,can_be(open,t),has_rel(in,t)]),
  964.   type_props(place,
  965.              [ volume_capacity = 10000,
  966.                default_rel = in,
  967.                has_rel(in,t),
  968.                nouns([here,$self]),
  969.                adjs([locally]),
  970.                can_be(move,f),
  971.                can_be(take,f),
  972.                has_rel(exit(Exit_Ret130),t)
  973.              ]),
  974.   type_props(natural_force,
  975.              [ knows_verbs(eat,f),
  976.                can_be(touch,f),
  977.                has_rel(held_by,f),
  978.                has_rel(worn_by,f),
  979.                has_sense(see),
  980.                inherit(no_perceptq,t),
  981.                inherit(noncorporial,t),
  982.                inherit(actor,t)
  983.              ]),
  984.   type_props(robot,
  985.              [ knows_verbs(eat,f),
  986.                inherit(autonomous,t),
  987.                emitting(see,light),
  988.                volume = 50,
  989.                mass = 200,
  990.                nouns([robot]),
  991.                adjs([metallic]),
  992.                desc = 'Your classic robot: metallic with glowing red eyes, enthusiastic but not very clever.',
  993.                can_be(switch,t),
  994.                inherit(memorize,t),
  995.                nouns($class),
  996.                inherit(shiny,t),
  997.                inherit(character,t),
  998.                powered = t,
  999.                effect(switch(on),setprop($self,powered=t)),
  1000.                effect(switch(off),setprop($self,powered=f))
  1001.              ]),
  1002.   type_props(actor,
  1003.              [knows_verbs(examine,t),inherit(partly_noncorporial,t)]),
  1004.   type_props(character,
  1005.              [ has_rel(worn_by,t),
  1006.                has_rel(held_by,t),
  1007.                model_depth = 3,
  1008.                mass = 50,
  1009.                volume = 50,
  1010.                has_sense(see),
  1011.                inherit(no_perceptq,t),
  1012.                inherit(memorize,t),
  1013.                inherit(actor,t),
  1014.                inherit(autoscan,t),
  1015.                inherit(partly_noncorporial,t)
  1016.              ]),
  1017.   type_props(autonomous,[inherit(autoscan,t)]),
  1018.   type_props(humanoid,
  1019.              [ knows_verbs(eat,t),
  1020.                volume = 50,
  1021.                mass = 50,
  1022.                inherit(character,t),
  1023.                inherit(memorize,t),
  1024.                can(switch(off),f),
  1025.                powered = t
  1026.              ]),
  1027.   type_props(console,
  1028.              [adjs(physical),nominals([console]),nouns([player])]),
  1029.   type_props(player,
  1030.              [ name = $ self,
  1031.                model_depth = 3,
  1032.                inherit(autoscan,t),
  1033.                look_depth = 2,
  1034.                user_mode = 2,
  1035.                access_level = admin,
  1036.                inherit(console,t),
  1037.                inherit(humanoid,t)
  1038.              ]),
  1039.   type_props(telnet,[adjs([remote]),inherit(player,t),nouns([player])]),
  1040.   type_props(furnature,
  1041.              [ can_be(examine,t),
  1042.                inherit(untakeable,t),
  1043.                inherit(fully_corporial,t),
  1044.                inherit(surface,t),
  1045.                inherit(thinkable,t),
  1046.                adjs(physical),
  1047.                class_desc(['kind is furnature'])
  1048.              ]),
  1049.   type_props(untakeable,
  1050.              [ adjs($class),
  1051.                can_be(take,f),
  1052.                class_desc(['kind is an Immobile Object'])
  1053.              ]),
  1054.   type_props(object,
  1055.              [ can_be(examine,t),
  1056.                adjs(physical),
  1057.                can_be(move,t),
  1058.                inherit(fully_corporial,t),
  1059.                inherit(thinkable,t),
  1060.                class_desc(['kind is an Movable Object'])
  1061.              ]),
  1062.   type_props(fully_corporial,
  1063.              [ can_be(touch,t),
  1064.                can_be(examine,t),
  1065.                inherit(thinkable,t),
  1066.                cleanliness = clean,
  1067.                adjs($class),
  1068.                class_desc(['kind is corporial'])
  1069.              ]),
  1070.   type_props(partly_noncorporial,
  1071.              [ inherit(fully_corporial,t),
  1072.                adjs($class),
  1073.                inherit(noncorporial,t),
  1074.                class_desc([ 'kind is both partly corporial and non-corporial'
  1075.                           ])
  1076.              ]),
  1077.   type_props(only_conceptual,
  1078.              [ adjs($class),
  1079.                inherit(noncorporial,t),
  1080.                inherit(thinkable,t),
  1081.                class_desc(['kind is only conceptual'])
  1082.              ]),
  1083.   type_props(noncorporial,
  1084.              [ can_be(examine,f),
  1085.                can_be(touch,f),
  1086.                inherit(thinkable,t),
  1087.                adjs($class),
  1088.                ~ inherit(fully_corporial),
  1089.                class_desc([ 'direct inheriters are completely noncorporial'
  1090.                           ])
  1091.              ]),
  1092.   type_props(thinkable,
  1093.              [ can_be(examine,t),
  1094.                nouns($self),
  1095.                adjs($class),
  1096.                class_desc(['kind is normally thinkable'])
  1097.              ]),
  1098.   type_props(unthinkable,
  1099.              [ can_be(examine,f),
  1100.                adjs($class),
  1101.                class_desc(['kind is normally unthinkable'])
  1102.              ]),
  1103.   type_props(door,
  1104.              [ can_be(take,f),
  1105.                can_be(open,t),
  1106.                can_be(close,t),
  1107.                opened = t,
  1108.                nouns($class),
  1109.                inherit(fully_corporial,t),
  1110.                can_be(take,f),
  1111.                can_be(open,t),
  1112.                can_be(close,t),
  1113.                opened = t,
  1114.                nouns(door),
  1115.                inherit(fully_corporial,t)
  1116.              ]),
  1117.   type_props(mushroom,
  1118.              [ name = 'speckled mushroom',
  1119.                inherit(food,t),
  1120.                nouns([mushroom,fungus,toadstool]),
  1121.                adjs([speckled]),
  1122.                initial('A speckled mushroom grows out of the sodden earth, on a long stalk.'),
  1123.                desc = 'The mushroom is capped with blotches, and you aren\'t at all sure it\'s not a toadstool.',
  1124.                can_be(eat,t),
  1125.                before(eat,(random100=<30,die('It was poisoned!');'yuck!')),
  1126.                after(take,
  1127.                      initial ',' 'You pick the mushroom, neatly cleaving its thin stalk.')
  1128.              ]),
  1129.   type_props(broken,
  1130.              [ name = 'definately broken',
  1131.                effect(switch(on),true),
  1132.                effect(switch(off),true),
  1133.                can_be(switch,t),
  1134.                adjs([dented]),
  1135.                adjs($class)
  1136.              ]),
  1137.   type_props(food,
  1138.              [can_be(eat,t),inherit(object,t),inherit(measurable,t)]),
  1139.   h(in,brklamp,garden),
  1140.   h(in,screendoor,garden),
  1141.   h(in,screendoor,kitchen),
  1142.   h(exit(west),kitchen,living_room),
  1143.   h(exit(south),living_room,kitchen),
  1144.   h(exit(east),living_room,dining_room),
  1145.   h(exit(north),dining_room,living_room),
  1146.   h(exit(west),dining_room,kitchen),
  1147.   h(exit(east),kitchen,dining_room),
  1148.   h(exit(north),garden,kitchen),
  1149.   h(exit(south),kitchen,garden),
  1150.   h(exit(up),basement,pantry),
  1151.   h(exit(down),pantry,basement),
  1152.   h(exit(north),kitchen,pantry),
  1153.   h(exit(south),pantry,kitchen),
  1154.   h(in,floyd,pantry),
  1155.   structure_label(istate)
  1156. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement