Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command abbreviation #3

Open
marado opened this issue Feb 17, 2017 · 0 comments
Open

Command abbreviation #3

marado opened this issue Feb 17, 2017 · 0 comments

Comments

@marado
Copy link

marado commented Feb 17, 2017

The command parser currently states, where it expands l into look, that

TODO: replace this a priority list

I'd suggest that instead of a priority list commands could have in themselves an associated "weight", and the "heavier" a command is, the bigger its priority. Eg.:
If we have 3 commands:

  • who
  • where
  • which
    Typing w will do "west", because directions have precedence, but typing "wh" will tell the user we don't know what they want (and show these three as possibilities). But if we want who to have precedence, we can set who.weight=10.
@shawncplus shawncplus transferred this issue from RanvierMUD/ranviermud Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant