Newsgroups: rec.arts.int-fiction
Path: nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!uni-regensburg.de!lrz-muenchen.de!informatik.tu-muenchen.de!Germany.EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uchinews!kjfair
From: kjfair@midway.uchicago.edu (Kenneth Fair)
Subject: [Inform] Number Nouns - Newbie Question #1
X-Nntp-Posting-Host: ngrh-34.rh.uchicago.edu
X-Kook-Number-2: 14
Message-ID: <kjfair-0704962039100001@uchinews.uchicago.edu>
X-Kook-Code-2: (Grubor+++)*2 Boursy+ Palmer+++++++
Sender: news@midway.uchicago.edu (News Administrator)
Organization: University of Chicago School of Law
X-Newsreader: Yet Another NewsWatcher 2.2.0b6
Date: Mon, 8 Apr 1996 01:39:09 GMT
Lines: 37


Okay, I'm humming along, building rooms, throwing in a few simple objects,
when I run into a small problem.  I have an object whose name is a 
number - "90".  I've defined it like so:

Class    rock
   has   static scenery,
   with  name "rock" "pink" "granite",
         before [;
            Take:  "You can't be serious.  It's a giant slab of pink granite.  \
               You're a human being.  The rock wins this contest, my friend.";
            Attack: "You swing your fist against the rock and connect!  You \
               can't believe how much it hurts!";
         ];

Nearby   ninety "90"
   class rock
   with  name "ninety",
         description "It's a gigantic piece of pink granite standing on end on \
            a concrete pedestal with two concrete pillars holding it upright.",
         before [;
            Climb: "You'd need climbing gear for that.";
         ];

No problem.  I can call it "ninety" and all is fine.  But I'd like for the
player to be able to type "climb 90" and get the correct response.  Of
course, if I put "90" in the name list, Inform rejects it.

So how can I do this?

Ken

-- 
KEN FAIR - U. Chicago Law  | Power Mac! | Net since '90 | Net.cop
kjfair@midway.uchicago.edu | CABAL(tm) Member | I'm w/in McQ - R U?

  The Internet was not created for companies to make money from.
