1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Languages -->
<!--X-From-R13: fvybivpNfepr.ue ([vebfyni Evybivp) -->
<!--X-Date: from stimpy.globecomm.net [207.51.48.4] by in1.ibm.net id 864516114.184124&#45;1 Sat May 24 23:21:54 1997 CUT -->
<!--X-Message-Id: 199705242321.BAA19162#regoc,srce.hr -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 9705230154.81je@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Languages</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:silovic#srce,hr">
</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>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00747.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00749.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00715.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00717.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00748">Author</A>
&nbsp;|&nbsp;<A HREF="#00748">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00748">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Languages</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Languages</LI>
<LI><em>From</em>: <A HREF="mailto:silovic#srce,hr">silovic#srce,hr</A> (Miroslav Silovic)</LI>
<LI><em>Date</em>: Sun, 25 May 1997 01:21:51 +0200 (MET DST)</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
&gt; [Miro:]
&gt; :&gt; [Clarification: the internal representation is available to the system
&gt; :&gt; (of course!) but not to MUD programmers. They *can* get a decompiled
&gt; :			   ^^^^^^^^^^^^^^^
&gt; :Builtin bytecode disassembler saved my rear end on at least one occasion.
&gt; :And it's not hard to implement (it's great for bytecode compiler debugging).
&gt; 
&gt; Agreed. However, since I compile to a parse tree, rather than to any
&gt; lower-level byte-code, my pretty-printer essentially plays the same role.

That's anoter neat way to handle it. :)

&gt; :Both, as well as tags for text generation (which may be context
&gt; :dependant, as they can include senses). Once you allow each player
&gt; :to 'see' the hypertext depending on its internal status, it has some
&gt; :pretty neat consequences.
&gt; 
&gt; Could you show us an example, in some kind of ASCII-fied form?

Sure.

[actor] {switch value=[sense:magic]:[range:1..5]mumbles something,
pointing a finger toward[default]casts magic missile at} [victim].

Note about syntax: Everything in []'s is evaluated before the message
starts to propagate (in this case, actor and victim). {}'s are
evaluated when they reach the players, and in some cases evaluation
of []'s inside is delayed.

The idea is that everybody in the room will interpret the event
accorting to their ability to sense magic. {switch} will automatically
delay the evaluation of [sense] until the message reaches the actual
player, and then will figure up the strength with which player can
detect particular information in the message (magic, in this case.
[sense] mechanism isn't yet cast in stone and is very easy to
extend). If an observer isn't very sensitive to magic, he will only
see what the caster does with his arms and mouth, otherwise he
gets the complete information.

Now if this message propagates to another room, or to the realm object,
all sense values get lowered, so players looking at the event from
afar have much lower chance to recognize the spell. I have no idea
how it could be done with prints, short of writing 20-50 lines of
code each time you need to print a context sensitive message that
can reach a large number of players.

Oh, for efficiency this is internally compiled to pretty weird
format (basically a tree of strings and lightweight objects),
and decompiled/pretty-printed whenever a player wants to edit it.

&gt; :Good thinking!!! ;)
&gt; 
&gt; Aw, here I was waiting for some flames!
&gt; 

. o O (disarms them every time...)

	Miro

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00715" HREF="msg00715.html">Re: [MUD-Dev] Languages</A></STRONG>
<UL><LI><EM>From:</EM> cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray)</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00747.html">Re: [MUD-Dev] Languages</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00749.html">Re: [MUD-Dev] Languages</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00715.html">Re: [MUD-Dev] Languages</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00717.html">Re: [MUD-Dev] Languages</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00748"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00748"><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>Re: [MUD-Dev] Languages</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00711" HREF="msg00711.html">Re: [MUD-Dev] Languages</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Fri 23 May 1997, 12:30 GMT
<UL>
<LI><strong><A NAME="00731" HREF="msg00731.html">Re: [MUD-Dev] Languages</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Sat 24 May 1997, 12:59 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00713" HREF="msg00713.html">Re: [MUD-Dev] Languages</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 23 May 1997, 13:02 GMT
</LI>
<LI><strong><A NAME="00715" HREF="msg00715.html">Re: [MUD-Dev] Languages</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 23 May 1997, 13:03 GMT
<UL>
<LI><strong><A NAME="00748" HREF="msg00748.html">Re: [MUD-Dev] Languages</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#srce,hr">silovic#srce,hr</a>, Sun 25 May 1997, 06:21 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00717" HREF="msg00717.html">Re: [MUD-Dev] Languages</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 23 May 1997, 14:04 GMT
</LI>
<LI><strong><A NAME="00729" HREF="msg00729.html">Re: [MUD-Dev] Languages</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 24 May 1997, 12:06 GMT
<UL>
<LI><strong><A NAME="00767" HREF="msg00767.html">Re: [MUD-Dev] Languages</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Sun 25 May 1997, 14:29 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00732" HREF="msg00732.html">Re: [MUD-Dev] Languages</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Sat 24 May 1997, 14:10 GMT
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>