[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

10270: Re: [MUD-Dev] Re: Re: [MUD-Dev] Text Parsing

[Full Header] [Plain Text]
From: Mik Clarke <mikclrk@ibm.net>
Newsgroups: nu.kanga.list.mud-dev
Date: Tue, 01 Jun 1999 00:10:47 +0000
References: [1]
Organization: Kanga.Nu
Albert wrote:

> Hehe, that's what I ended up doing, resorting to patterns and having
> the parser try each of them out. Only my patterns are the following:
>
> verb + direct object (i.e. get ball)
> verb + indirect object (i.e. kill him)
> verb + direct object + indirect object (i.e. give ball to him)
> verb + indirect object + direct object (i.e. give him the ball)
> verb + string (i.e. say 'hello everybody')
>
> I believe all possible commands are simple variations of the above
> mentioned patterns. Conjunctions merely compound the patterns.
>
> The parser would handle conjunctions a bit differently. Basically,
> "get ball and stick" would be broken down into "get ball" and
> "get stick".

Hmmm. 'play stick ball', especially when there is a stick and a ball in the
room.

And 'cast fireball orc' - fireball is not an object.

Also 'steal the orcs pouch'.  What is interesting here is that the pouch
has to
be resolved relative to the orc, not to the player.  Otherwise they would
end up
trying to steal their pouch (which they are carrying) from the orc (which
has
its own pouch).  Note the plural/posessive for orcs.

Mik




_______________________________________________
MUD-Dev maillist  -  MUD-Dev@kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev