[MUD-Dev] Re: Re: [MUD-Dev] Text Parsing
Mik Clarke
mikclrk at ibm.net
Tue Jun 1 00:10:47 CEST 1999
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 at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev
More information about the mud-dev-archive
mailing list