Subject: OOPS.... and a few questions

From: [email-masked]
Date: Thu, 27 May 1993 07:58:06 -0700

Hi! I'm a new MOO programmer and have a question or two...

It would appear my first message somehow sent out a shell script
rather than this text. Sorry about that...

I am using LambdaMOO (latest version from parcftp). I have it up and
running on a Pyramid MIS machine.

I would like to create a character that has some associated things. 
I don't want those things to show up in the normal "look" at the room. 
However, if you say "look <a thing he is carrying>" I want it to be described. 

In other words, I want it to be invisible to "look none none none" 
but visible to look "this none none". 

An example of this would be to create an elephant in
a room, but allow people to look at the trunk or the legs. Obviously I
don't want the room to say:

"There is an elephant, a leg, and a trunk." 

I just want it to say: "There is an elephant."
But, if you say "look trunk" you would get the description of the trunk.

In a sense the elephant is like a room, but to have to "enter"
is not desirable.

Any ideas? I'm new at this - am I missing something here?

..................................................

Also, I was trying to find the code for "look" and couldn't. Is it a
built-in function? If not, where is it hiding?

..................................................

Another thing.... is there any way from the command line to put a list
into a property other than to use notedit?

..................................................

Is there a way to dump output to a file? For example, if I want to dump
an object, can I do it to a file (without using the capture function
of my front end)?

..................................................

Is there a good way to construct something in one moo, and then
take a copy of it out and stuff it into another moo? I have a local
moo running, but due to company security rules, I cannot make it available
on the net. However, once I have built some stuff, I would like to
be able to "port" it to some other moo.

..................................................

I have the following documents... are there others that would help?
How about for wizards (as opposed to programmers)? Security issues?

Moo Tutorial (with the wind up toy) - an excellent writeup, but not
comprehensive enough to turn me into an expert wizard or programmer.

The Moo quick reference sheet.

The LambdaMOO Programmer's Manual (V1.5 1991 - ancient??). - I wish there
were more examples in this.

The archives of this mailing list.

Any others I should find?

..................................................

Thanks in advance.
-- 
John Moore     HAM:NJ7E    CAP:Thunderbird 381 
[email-masked] 
Voice: day or eve:(602) 951-9326 FAX:602-861-7642 (by prior arrangement)
USnail: 7525 Clearwater Pkwy, Scottsdale, AZ 85253

---

From: Judy Anderson <[email-masked]>
Date: Thu, 27 May 1993 10:10:35 -0700

Date: 	Thu, 27 May 1993 07:58:06 PDT
   From: [email-masked]

   An example of this would be to create an elephant in
   a room, but allow people to look at the trunk or the legs.

You can do anything in moo code, but this is complex enough I'm not
going to answer it, perhaps some other kind soul will take the time.
The basic verb you want to hack is :look_self to not pass in the
elephant to :tell_contents.  Here are some quick answers to some of
your other questions.

$room:look any any any

Use eval.  ;#xxxx.foo = {"a", "b", "c"}
See help eval.
You could also write a function that used $command_utils:read_lines
and did the processing yourself.

Nope.

@dump should be in most modern cores.  See help @dump.
   ..................................................

Judy Anderson yclept yduJ   [email-masked]  'yduJ' rhymes with 'fudge'
    [ LambdaMOO is lambda.parc.xerox.com 8888 / 13.2.116.36 8888 ]
       Join the League for Programming Freedom, [email-masked]