[Encore] Parser
Kevin Jepson
kevijeps at telusplanet.net
Tue May 8 09:25:20 MDT 2007
Hi Jean-Marc
The MOO server code itself does the object and inventory check. It's
probably done that way for performance as nearly every command needs to find
some object as either the direct or indirect objects.
The underlying spatial metaphor is supported by doing that search in the
inventory location order.
A feature object is a way to add commands to a player without actually
changing the underlying player class. The big advantage is that these
commands and capabilities can be added and removed by the player themselves.
You can list your features with the @features command, and add or remove
features from your list with the @add-feature and @remove-feature commands.
>From Help Features:
"Features are objects that provide you with commands not covered by the
ordinary player objects. The advantage of using features is that you can
mix and match the things you like; whereas if you like a command that's
defined on a player class, you have to also get all the commands it defines,
and all the commands its ancestors define."
This page has a bit of a discussion on Features:
HYPERLINK
"http://www.nwe.ufl.edu/~tari/connections/features.html"http://www.nwe.ufl.e
du/~tari/connections/features.html
Another advantage of a feature is that since the verb codes run under the
permissions of the player who wrote them a feature can add capabilities that
are at a higher permission level than the player that calls them.
One thing you could do would be to preface each command that you wanted to
extend with a distinguishing character. Traditionally this was the "@"
symbol but you could use anything.
So for example if you had a "ring bell" command that would ring a bell, if
you are in the same room as the bell, you could have an "@ring" command on a
remote feature object that would ring the bell no matter where it is.
A feature object would allow you to give this capability to anyone without
having to add it to the player objects.
Ciao
KJ
----Original Message-----
From: Jean-Marc Giffin [mailto:jean-marc.giffin at acadiau.ca]
Sent: May 8, 2007 8:30 AM
To: Kevin Jepson; Jean-Marc Giffin; encore at encore-consortium.org
Subject: RE: [Encore] Parser
Hey Kevin,
Thanks for the reply. I had already read that stuff from the programming
manual, and that's actually why I was asking- since it doesn't actually say
where the whole part about checking the room then the player gets done...
What's a feature object? Can I use it to allow players to be able to grab
objects that aren't actually in the room? This is actually a very important
feature to the MOO I am working on, and so I really need to figure out a way
to do this...
Thanks!
Jean Of mArc
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.6.5/793 - Release Date: 07/05/2007
2:55 PM
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.6.5/793 - Release Date: 07/05/2007
2:55 PM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://encore-consortium.org/pipermail/encore_encore-consortium.org/attachments/20070508/0cc74d35/attachment.html
More information about the Encore
mailing list