msg00264.html
1998Q3/msg00264.html · 8.4 KB
From the archive 1998Q3.zip
Download the archive « Back to the archive contents
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD-Dev] Re: DBMS in MU*'s -->
<!--X-From-R13: Fur Oeebj <neebjNgeryyrobet.znvy.gryvn.pbz> -->
<!--X-Date: Sun, 19 Jul 1998 20:52:18 -0700 -->
<!--X-Message-Id: Pine.LNX.3.96.980720054350.530C-100000#t2o9p39,telia.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199807192008.OAA02048@ami-cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: DBMS in MU*'s</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:arrow#trelleborg,mail.telia.com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">
<font size="+4" color="#804040">
<strong><em>MUD-Dev<br>mailing list archive</em></strong>
</font>
<br>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->
Date:
[ <a href="msg00263.html">Previous</a>
| <a href="msg00265.html">Next</a>
]
Thread:
[ <a href="msg00261.html">Previous</a>
| <a href="msg00547.html">Next</a>
]
Index:
[ <A HREF="author.html#00264">Author</A>
| <A HREF="#00264">Date</A>
| <A HREF="thread.html#00264">Thread</A>
]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: DBMS in MU*'s</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: DBMS in MU*'s</LI>
<LI><em>From</em>: The Arrow <<A HREF="mailto:arrow#trelleborg,mail.telia.com">arrow#trelleborg,mail.telia.com</A>></LI>
<LI><em>Date</em>: Mon, 20 Jul 1998 05:50:07 +0200 (CEST)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Sun, 19 Jul 1998, Chris Gray wrote:
> [Adam J. Thornton:]
>
> >The object class an object belongs to implicity defines the verbs for which
> >that object can be the object of the preposition "with." That is, knives
> >can cut and pry. Keys can unlock. And so on.
>
> A subject that got discussed quite a bit last year or early this year
> was related to this. As users, most(?) of us felt it was bad to get a
> wierd error message about an obvious verb, just because that verb wasn't
> applicable to the object in question. So, you may want to consider making
> all verbs valid with all objects, but have them refuse to operate on
> inappropriate objects. If you are going fully OO, you could do that by
> having all verbs on some base "object", which everything else inherits
> from, overriding the verb actions where appropriate.
If you take a look the the IF (interactive-fiction for those who didn't
know :) languages Inform and Hugo, they use global grammar definitions
with global functions for verbs/commands. When an object needs to do
special things at a command, the object have one or more 'before'- and
'after'- handlers that gets called before and after the verb function. In
the case of breaking stuff, the object have a before-handler that returns
false (I think), thereby preventing the verb-function from getting called.
In my own language (based on Inform/Hugo and still under development) it
would look something like this:
attribute broken; /* define a general object-attribute */
verb "break" /* define a command "break"
{
/* format: <verb-ident> = <verb-rule(s)> */
BreakThing = dobject; /* allows only "break <object>" */
};
/* the verb function for the verb "break" */
function BreakThing()
{
send_to_actor("You can't break that.\r\n");
}
object breakable_thing
{
is not broken; /* the object is not broken by default */
before BreakThing =
{
send_to_actor("Oh no! You broke it!\r\n");
is broken; /* could be "this is broken;" */
return false; /* don't call the verb-function */
}
};
/ Joachim
======================================================================
The Arrow! Email: arrow#trelleborg,mail.telia.com
Joachim Pileborg WWW : <A HREF="http://w1.410.telia.com/~u41003102/">http://w1.410.telia.com/~u41003102/</A>
======================================================================
"They say I don't give a shit about anything," - Magnus Uggla
"but I dont give a shit about that." (translated from swedish)
</PRE>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00547" HREF="msg00547.html">[MUD-Dev] 208.240.161.41</A></strong>
<ul compact><li><em>From:</em> "Adam J. Thornton" <adam#phoenix,Princeton.EDU></li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00261" HREF="msg00261.html">[MUD-Dev] Re: DBMS in MU*'s</A></STRONG>
<UL><LI><EM>From:</EM> Chris Gray <cg#ami-cg,GraySage.Edmonton.AB.CA></LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00263.html">[MUD-Dev] Re: DBMS in MU*'s</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00265.html">[MUD-Dev] Re: Scripting Design Notes</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00261.html">[MUD-Dev] Re: DBMS in MU*'s</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00547.html">[MUD-Dev] 208.240.161.41</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00264"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00264"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>[MUD-Dev] Re: Overworld Maps on diku style Muds- Design notes</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00292" HREF="msg00292.html">[MUD-Dev] Re: Overworld Maps on diku style Muds- Design notes</A></strong>,
Richard Woolcock <a href="mailto:KaVir#dial,pipex.com">KaVir#dial,pipex.com</a>, Wed 22 Jul 1998, 00:19 GMT
<UL>
<LI><strong><A NAME="00298" HREF="msg00298.html">[MUD-Dev] Re: Overworld Maps on diku style Muds- Design notes</A></strong>,
Katrina McClelan <a href="mailto:kitkat#the486,bradley.edu">kitkat#the486,bradley.edu</a>, Wed 22 Jul 1998, 01:05 GMT
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00262" HREF="msg00262.html">[MUD-Dev] Re: Login and Accounts</A></strong>,
quzah <a href="mailto:quzah#geocities,com">quzah#geocities,com</a>, Sun 19 Jul 1998, 20:42 GMT
<LI><strong><A NAME="00261" HREF="msg00261.html">[MUD-Dev] Re: DBMS in MU*'s</A></strong>,
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 19 Jul 1998, 20:09 GMT
<UL>
<LI><strong><A NAME="00264" HREF="msg00264.html">[MUD-Dev] Re: DBMS in MU*'s</A></strong>,
The Arrow <a href="mailto:arrow#trelleborg,mail.telia.com">arrow#trelleborg,mail.telia.com</a>, Mon 20 Jul 1998, 03:52 GMT
<UL>
<LI><strong><A NAME="00547" HREF="msg00547.html">[MUD-Dev] 208.240.161.41</A></strong>,
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Fri 07 Aug 1998, 23:15 GMT
<UL>
<LI><strong><A NAME="00556" HREF="msg00556.html">[MUD-Dev] Re: 208.240.161.41</A></strong>,
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Sat 08 Aug 1998, 06:15 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00669" HREF="msg00669.html">[MUD-Dev] Re: DBMS in MU*'s</A></strong>,
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Tue 11 Aug 1998, 23:22 GMT
<UL>
<LI><strong><A NAME="01302" HREF="msg01302.html">[MUD-Dev] Re: DBMS in MU*'s</A></strong>,
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Sun 27 Sep 1998, 14:20 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>
</ul>
<hr>
<center>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
</center>
<hr>
</body>
</html>