Newsgroups: rec.arts.int-fiction
Path: nntp.gmd.de!stern.fokus.gmd.de!zib-berlin.de!newsserv.cs.uni-magdeburg.de!RRZ.Uni-Koeln.DE!news.dfn.de!Germany.EU.net!howland.reston.ans.net!spool.mu.edu!news.cs.indiana.edu!shulick@guava.ucs.indiana.edu
From: "Sam Hulick" <shulick@guava.ucs.indiana.edu>
Subject: Inform: player.before = xx doesn't work as expected
Message-ID: <1995Sep9.204441.17353@news.cs.indiana.edu>
Organization: Vallen Software
Date: Sat, 9 Sep 1995 20:44:35 -0500
Lines: 21


If a call to before() returns false, the normal routine is run, but this
is not the case with the player object.  Why?  For example:

[ cityRules;
   Attack: "This is a nice town, there's no need for that.";
   rfalse;  ! note the rfalse is important now since a routine outside
       ! an object returns true.
];

  player.before = #r$cityRules;

But now, NO action I use works.  inv, look, they all just return the
prompt.  Why?  How can I make a 'before' rule for just a few commands,
and leave the rest alone?

-- 
--- Sam Hulick ------------- shulick@indiana.edu ---------------------
Systems Consultant        | Homepage:
Indiana College Placement |    http://copper.ucs.indiana.edu/~shulick/
  and Assessment Center   | PGP public key available on request
