The Nested Box Trick

Imagine you have two boxes, with one nested inside the other. What happens in Quest when you try to put the outer box inside the inner box? Here is some code if you want to try it:

<asl version="580">
  <include ref="English.aslx" />
  <include ref="Core.aslx" />
  <game name="Nested Box Trick">
    <gameid>5f7c9cf0-4c5e-4a3b-ac0b-c4fd5a0fd025</gameid>
    <version>1.0</version>
    <firstpublished>2018</firstpublished>
  </game>
  <object name="room">
    <inherit name="editor_room" />
    <isroom />
    <object name="player">
      <inherit name="editor_object" />
      <inherit name="editor_player" />
    </object>
    <object name="outer box">
      <inherit name="editor_object" />
      <inherit name="container_open" />
      <feature_container />
      <take />
      <isopen />
      <alias>outer box</alias>
      <object name="inner box">
        <inherit name="editor_object" />
        <inherit name="container_open" />
        <feature_container />
        <take />
        <alias>inner box</alias>
        <transparent type="boolean">false</transparent>
        <isopen />
      </object>
    </object>
  </object>
</asl>

Rename them "inner bag" and "outer bag", and it will make more sense. If you give objects volumes, you will find the volume of a container increases when something is put inside it, so again, Quest is assuming a bag, not a box.


@The Pixie, sorry, I don't understand? My point was that when the player types:
TAKE outer box
PUT outer box IN inner box

everything disappears without an error message!


Oh. I was taking the inner box out first. I thought your point was that you could put the bigger outer box inside the smaller inner box.

Will be corrected in next beta soon.


Will be corrected in next beta soon.

Pity, it is so entertaining. :)


There is always the danger of the whole universe getting turned inside out when you o that sort of thing, so safer just to prevent it.


Interesting; I'd noticed before that puting the player inside an object/room in their inventory is a fatal error; hadn't realised it was different for other objects.


Log in to post a reply.

Support

Forums