Inform - Support - Patches

About Patches  

Compiler  
Library  

DM4 Errata  

Issue L61115     [previous patch]

'multiheld' can match unholdable objects
Submitted by: Nathan Summers     Appeared in: Library 6/11 or before     Fixed in: -
Problem

Contrary to the DM4, multiheld sometimes matches objects that are not held. This would be OK if the objects were then implicitly taken, like they are for held, but they are not. Here is a short example that shows the problem:

  !% -SD

  Include "Parser";
  Include "Verblib";
  Include "Grammar";

  [ Initialise; location = theroom; ];

  Object  theroom "Frobnization Room"
    with  description "You feel like frobnizing everything! Even the mountain!",
    has   light;

  Object  -> "enormous mountain"
    with  name 'enormous' 'mountain'
    has   scenery;

  Object  -> "gigantic skyscraper"
    with  name 'gigantic' 'skyscraper'
    has   static;

  [ FrobnizeSub; "You frobnize ", (the) noun, " you are currently holding."; ];

  Verb 'frobnize' 'frob'
      * multiheld -> Frobnize;

Here's a sample transcript:

  Frobnization Room
  You feel like frobnizing everything! Even the mountain!

  You can see a gigantic skyscraper here.

  >GET MOUNTAIN
  That's hardly portable.

  >FROBNIZE MOUNTAIN
  You frobnize the enormous mountain you are currently holding.

  >GET SKYSCRAPER
  That's fixed in place.

  >FROBNIZE SKYSCRAPER
  You frobnize the gigantic skyscraper you are currently holding.
Solution

None submitted.


Last updated 17 April 2013. This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Roger Firth.