command parsing

Chris Gray cg at ami-cg.GraySage.Edmonton.AB.CA
Wed Mar 12 22:23:52 CET 1997


[much clipped]

:I guess it's the difference between making a wall and letting users get
:over it in whatever way they can manage (whether it be flying, climbing,
:becoming non-corporeal and walking through, or even smashing it down) and
:doing a script like:
:
:if token++.Is("climb") and token.Is("wall")
:  room_message("$n scale$s the wall.", ch);
:  move_char(ch, UP)

You're going to have to have a very general scenario in order for all of
those methods of getting past the wall work! You're not going to get any
of them for free, I suspect.

However, point taken, and I've added a note to my to-do list to think hard
about moving all verbs to the main grammar. I instantly ran into the
3 definitions of 'read' - in the main scenario it reads text from some
object, in the mail-room it reads your email, and in the newsroom it
reads your set of subscribed newsgroups. The latter two forms don't
take an object, but the first requires one!

--
Chris Gray   cg at ami-cg.GraySage.Edmonton.AB.CA



More information about the mud-dev-archive mailing list