MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: [MUD-Dev] Text Parsing
Albert wrote:
> Delurking :)
> ParsedCommand that looks like this:
>
> class ParsedCommand { public:
> string verb;
> string direct_object; // Noun being manipulated
> string indirect_object; // Noun that receives the action
> string direct_object_adj; // Adjectives describing direct object
> string indirect_object_adj; // Adjectives describing the indirect object
> bool IsNewClause;
> }
>
> Then say the player enter a command like: buy the biggest ball from the 3rd shopkeeper
Hmmm. At first glance you are missing a count paramter, which promptly
leeds to the need to recognize bth singular and plurar nouns:
> buy two knives from the shady dealer
Note the possible reverses though:
> give the shady dealer both knives
> give the shadow dealer two knives
> give two knives to the shady dealer
In the events I use for CthulhuMud I have the following for an event:
Actor - the person who is doing
Victim - the victim who is being done to
Observer - the one who is watching the action (I, may also be actor and/or victim)
primary object
secondary object
text (for say and the like)
count
Agruably this is to restrictive, as I should be able to attach counts to almost all of the fields -
the 300 green samurai attack the 75 black ninjas with thier razor sharp swords.
Mik
_______________________________________________
MUD-Dev maillist - MUD-Dev#kanga,nu
http://www.kanga.nu/lists/listinfo/mud-dev
- Thread context:
- Re: [MUD-Dev] Re: Re: [MUD-Dev] Text Parsing, (continued)
- [MUD-Dev] Text Parsing,
Albert thecheezeman#earthlink,net, Fri 28 May 1999, 18:51 GMT
- Re: [MUD-Dev] Text Parsing,
Kylotan kylotan#kylotan,force9.co.uk, Fri 28 May 1999, 21:08 GMT
- Re: [MUD-Dev] Text Parsing,
Greg Miller gmiller#classic-games,com, Sat 29 May 1999, 00:51 GMT
- Re: [MUD-Dev] Text Parsing,
Mik Clarke mikclrk#ibm,net, Sat 29 May 1999, 21:14 GMT
- Re: [MUD-Dev] Text Parsing,
Travis Casey efindel#io,com, Mon 31 May 1999, 03:34 GMT
- <Possible follow-up(s)>
- Re: [MUD-Dev] Text Parsing,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Sat 29 May 1999, 01:10 GMT
- Re: [MUD-Dev] Text Parsing,
Cynbe ru Taren cynbe#muq,org, Mon 31 May 1999, 04:01 GMT
- Re: [MUD-Dev] Text Parsing,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Mon 31 May 1999, 13:50 GMT
[ Other Periods
| Other mailing lists
| Search
]