parsing strings for different output

From: Daniel W. Burke (dwb@IX.NETCOM.COM)
Date: 11/30/97

People recently have asked about making descriptions that are based on the
persons level... well a couple days ago I ftp'd to the circlemud site a file
called string_parser.tgz.  It is a single file of code, with a README and a
text file explaining how to write strings for it.  Basically you can do
things like, if you want a different desc based on a players intelligence
you'd write it like this:

[?int<10:You see big rocks.\?int>=10:You see several varieties of igneous
rock here.]

Or random descriptions would work like:

[A small room.\A little room.\A room.]

And it would pick randomly between the 3 whenever the description was parsed.

There's a bit more to it then this, but that's the gist of it.  Download it,
take a look, it could really make areas come alive.


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/08/00 PST