MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: Follow command? -Reply
Reply Text--------------
Making sounds like windchimes as he de-cloaks(de-lurks?) for a
moment:
Greetings and salutations. I have been following this thread and
spoke with my friend Shadow_RAM on BayMOO (who isn't subscribed
to this list) who has some @follow-ing-type code on a couple of
different types of objects he created there and this is his
response.
From: Michael Allen Thompson <Mike.Th ("Mike.Thompson@lambad
a.oit.unc.edu")
To: Mel Byrd <0bsidian@dcccd.edu>
Date: Tuesday, August 15, 1995 10:39 pm
Subject: Re: Umm... -Reply -Reply
while (this.following)
if (this.location != this.followed_person)
fork(0)
this:moveto(this.followed_person.location);
endfork;
endif endwhile;
The .following is gonna be 1 or 0 to kill the task.
.followed_person is the player to follow. The fork just saves
you from buggy moves. I don't think you can get much simpler,
just put this in a verb on the player.
-SR
Shadow_RAM@BayMOO
****************************
* WARNING! Shameless plug! *
****************************
Come visit scenic BayMOO located at BayMOO.sfsu.edu 8888
0bsidian@BayMOO
e-mail: 0bsidian@dcccd.edu
Tribe@onlinetoday.com
...makes sounds like windchimes as he cloaks himself from the
sight of wizards...
Home |
Subject Index |
Thread Index