Newsgroups: rec.arts.int-fiction
Subject: Re: A Little Debugging Tool
From: sgranade@freddy.ampr.ab.ca (Sgranade)
Path: gmd.de!Germany.EU.net!mcsun!uknet!bnr.co.uk!bnrgate!nott!torn!utnut!cs.utexas.edu!swrinde!gatech!destroyer!cs.ubc.ca!alberta!nebulus!Freddy!sgranade
Distribution: world
Message-ID: <50.1013.679.0N000154@freddy.ampr.ab.ca>
Date: Thu, 20 May 93 01:05:00 +0000
Organization: Freddy's Place BBS - Edmonton, AB - 403-456-4241
Lines: 44

Message-ID: <1telgp$o3e@usenet.INS.CWRU.Edu>
Newsgroup: rec.arts.int-fiction
Organization: Case Western Reserve University, Cleveland, OH (USA)


In a previous article, jreese@leland.Stanford.EDU (james reese) described
a 'goto' verb to bamf to a room.

A command I found useful was "gimme."  It gave me any object in the game.

/* Goes inside one of your code.t modules */
gimmeVerb: sysverb
 verb = 'gimme'
 sdesc = "gimme"
 doAction = 'Gimme'
 validDo(actor, obj, seqno) = { return( true ); }
 validDoList(actor, prep, dobj) = nil
;

modify thing
 verDoGimme(actor) =
 {
  if (isclass(self, floatingItem))  //Don't get it!!!
   "Not a good idea--<<self.thedesc>> is floating.";
 }
 doGimme(actor) =
 {
  self.moveInto(actor);
  "Poof!  \^<<self.thedesc>> appears.";
 }
;

I typically stick the gimme command & my version of the goto command
in a module called "debug.t"--that way it's easy to get rid of later.

Hope this is of use to someone.

Stephen
-- 
 _________________________________________________________________________
| Stephen Granade         | "My research proposal involves reconstructing |
|                         |  the Trinity test using tweezers and          |
| sgranade@obu.arknet.edu |  assistants with very good eyesight."         |

