MUD-Dev
mailing list archive

Other Periods  | Other mailing lists  | Search  ]

Date:  [ Previous  | Next  ]      Thread:  [ Previous  | Next  ]      Index:  [ Author  | Date  | Thread  ]

command parsing



[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#ami-cg,GraySage.Edmonton.AB.CA



Other Periods  | Other mailing lists  | Search  ]