Newsgroups: rec.arts.int-fiction
Path: nntp.gmd.de!Dortmund.Germany.EU.net!Germany.EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!usenet.ucs.indiana.edu!news.cs.indiana.edu!shulick@apricot.ucs.indiana.edu
From: "Sam Hulick" <shulick@apricot.ucs.indiana.edu>
Subject: Inform: adding two 'before's together?
Message-ID: <1995Sep6.221811.24769@news.cs.indiana.edu>
Organization: Vallen Software
Date: Wed, 6 Sep 1995 22:18:03 -0500
Lines: 29


I know that 'before' is additive in the case of classes, but other than
that?  For instance, I have a routine like this when an NPC is
possessed:

[ control_life;
   Order: ..they do what you say...
  ...etc.
];

But each NPC already has something like:

  ...
   life [;
    Ask: if (second == 'trap') "~Beware, they are always to the north.~";
  ...

I don't want to completely replace it like this: noun.life =
#r$control_life, because I still want the old 'asks' to stick around.
Is it legal to do "noun.life = noun.life + #r$control_life;"?  How do I
add the two together?

 Thanks.

-- 
--- 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
