seisatsu / DennisMUD

Dennis MUD - A multiplayer text adventure sandbox engine where the players build the world with in-game commands.
https://dennismud.xyz/
MIT License
51 stars 6 forks source link

Completion for commands that work on names #49

Closed seisatsu closed 4 years ago

seisatsu commented 4 years ago

Allow completion for non-ambiguous partial names in commands.

Example: If there is an exit called "Big Wooden Door", then go big should select for that exit. However, if there is also an exit in the same context (same room in this case) named "Big Plastic Door", then go big should reject the command string as ambiguous.

This should also work on commands like use, look, and get, to name a few.

jmdejong commented 4 years ago

Preferably it should also work to type go door when there is only one door, or go wooden door when there are both a "Big Wooden Door" and a "Big Plastic Door"