Newsgroups: rec.arts.int-fiction
Path: gmd.de!ira.uka.de!yale.edu!newsserver.jvnc.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!ames!haven.umd.edu!uunet!nevada.edu!jimi!dalton
From: dalton@unlv.edu (The Resident's Resident)
Subject: Re: Jorn wants bodyparts!!! (Was: TADS object system ;^)
Message-ID: <1993Mar21.234943.20555@unlv.edu>
Sender: news@unlv.edu (News User)
Organization: The Residency
References: <C45MCt.LC8@chinet.chi.il.us> <C47Lv4.JEo@chinet.chi.il.us> <neilg.732737239@sfu.ca>
Date: Sun, 21 Mar 93 23:49:43 GMT
Lines: 66

In article <neilg.732737239@sfu.ca> neilg@fraser.sfu.ca (Neil K. Guy) writes:
>jorn@chinet.chi.il.us (Jorn Barger) earnestly types:
[stuff about body parts and clothes deleted]
> Anyway, this is probably getting rather boring. Ironically, the only
>reason I have clothes in the game was to permit marginally more
>realistic swimming (every tried to swim fully clothed? Hard, isn't
>it?) but then I fell down a pernicious slippery slope thereafter.
>
> - Neil K. (n_k_guy@sfu.ca)
>
Speaking of swimming, I am trying to code a swimming pool in tads2.0.  The
actual pool is one logical "room", but is composed of several "roomlets",
some of which border on a walkway which is onother logical "room".
My drawing of the pool with walkway looks sort of like this:
            _______________
           /       |        \
         /     W   |    W     \
       /      _____|_____       \
     / \     /     |     \     /  \
   /     \ /       |       \ /      \
 /       / \   P   |  P    / \        \
|      /     \     |     /     \  W   |
|  W  |   P    \   |   /    P   |     |
|     |          \ | /          |     |
|-----|----------->|<-----------|-----|
|     |   P      / | \          |     |
|  W  |        /   |   \    P   | W   |
|      \     /     |     \     /      |
 \       \ /       |       \ /       /
   \     / \   P   | P     / \     /
     \ /     \_____|_____/     \ /
       \           |           /
         \    W    |    W    /
           \_______|_______/

W - walkway around pool
P - swimming pool proper (water)

Each W and P are coded as seperate rooms.  What I want to have happen is
something like this:

A, B: actor;
A.location = W;
B.location = P;

"A, look at B":  "B is in the swimming pool (in whatever octant)."
"B, look at A":  "A is standing by the pool (in whatever octant)."
"B, get A":  "B can't reach A from in the swimming pool."

if (A.location bounds on B.location)
	"A, get B":  "A reaches down and helps B out of the water."
	B.location = A.location;
else
	"A, get B":  "A can't reach B from there."

A.location, B.location = [W|P];
A.location != B.location;
"A, get B":  "B seems to be too far to reach from A's location."

, and so on.

I really don't have much of an idea of how to go about this.  If anyone knows
a way to code this, please post ideas/code or email same to me.
I hope my po-code is understandable.

the Resident's Resident
