[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Commands and their letters...
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Commands and their letters...

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Toy   (206 posts)  [Biography] bio
Date Wed 26 Jun 2002 08:38 PM (UTC)
Ok, when I first downloaded the Smaug code, if you were on the mud and you pressed the 'L' key and then enter, you'd look around the room. Now, when I hit that button, it gives me a list of the languages. Does anyone know where in the code it sets this so by hitting the 'L' key, it'll go back to showing the "Look" command?


It's always good to know how far you are willing to go to be the best...

Karl Mancine
Toy the Dark Puppet
[Go to top] top

Posted by Neves   USA  (78 posts)  [Biography] bio
Date Reply #1 on Wed 26 Jun 2002 09:47 PM (UTC)
What SMAUG does is if you type in something that isn't a command, it searches for the closest command that continues from those letters, so if you type 'l' it was originally coming up with the 'look' command, but now instead it is coming up with whatever command it is, probably 'languages'. The best way to fix it is in commands.dat add:

Name l~
Code do_look
Position 0
Level 0
Log 0

right before the command whose name is languages. You might want to also add entries for the exits w,e,n,s,nw,ne,sw,se. You can also set it so complete command names are needed for it to work and it won't search for a similar command, but this is a nusance to players since they will have to spell everything out, so if you do this you would probably want to add an alias command.

-Mark Calloway
[Go to top] top

Posted by Festerhead   USA  (8 posts)  [Biography] bio
Date Reply #2 on Thu 27 Jun 2002 08:33 PM (UTC)
Another good option to use for command ordering is cedit.

For example...
Typing 'cedit look list' will show you where in the scheme of things, look is compared to the other commands that begin with l.

Type 'cedit' for command editing options.

Hope this makes sense.

FesterHead Radio - Maui's premier Indie, Modern, Progressive, and Classic Rock station.
[Go to top] top

Posted by Dark_Trunks   Australia  (27 posts)  [Biography] bio
Date Reply #3 on Fri 28 Jun 2002 03:28 PM (UTC)
I had the exact same problem and I came to the conclusion that it was caused by the use of Nick's 'Area Editor' to edit the commands.

Now please correct me if I'm wrong, but I think that when you save the commands file it puts them all in alphabetical order, when the original file was not. It was ordered by command priority. You see, what happens when you type the command 'L', because it doesn't exist it will down the list and assume the first command it finds that starts with L. Originally this was "Look" but because of the new alphabetical order, it is now "Languages".

If I am right about this, Nick, you might want to rethink your commands.dat file saving for Area Editor (Just a suggestion), because I for one was quite annoyed when I discovered this because now I've had to and manually reorder them all back the way they were.
[Go to top] top

Posted by Nick Gammon   Australia  (21,609 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Sat 29 Jun 2002 12:15 AM (UTC)
I see what you mean. I have added that as bug/suggestion #471.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]