Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Suggestions ➜ SetCommand Limitation\Suggestion

SetCommand Limitation\Suggestion

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


Posted by Magnum   Canada  (580 posts)  Bio
Date Sun 09 Dec 2001 11:41 AM (UTC)
Message
I have to admit, I haven't tried out this script command yet, but after reading the help page for it, I can already see how this command would be a problem for me.

The help page indicates that this command will not work if text is present on the command line. I don't see any other commands that would allow me to script a work-around.

I would like to suggest:

The command be modified: If text is on the command line, it is 'pushed' to the stack, and can be recalled via the up arrow key.

OR

New script commands be implemented that allow extended modification of the command line. For exampe: ClearCommand, PushCommand, PopCommand, Highlight Command.

Because I haven't actually tried the SetCommand command yet, I don't know how it is presented, but I sure hope that text sent is already highlighted, so that it can be deleted immediately via delete key or by starting to type something new.

There are two reasons I see for adding extra functionality in this department:

1. There are occasions where you are 'likely' to use a command immediately on entering a room, but not always. SetCommand "say open sesame" (since you usually go through the door, but not always, and saying the phrase actually MOVES you)

2. A mild work-around for MUDs that are 'sensitive' to auto-actions based on triggers. Many of the spell-casting bots that people would like to program here are considered illegal on the MUD I play. Technically, poping the spells to the command line still puts the player in control.

The current limitation either disrupts the usefulness of this command, or the usefullness of maintaining text in the command box.

All that aside, this program rocks! :)

Magnum.

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
Top

Posted by Magnum   Canada  (580 posts)  Bio
Date Reply #1 on Sun 09 Dec 2001 12:08 PM (UTC)
Message
Oops! Nick, move this thread to "Mushclient: Suggestions" if you like.

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Sun 09 Dec 2001 11:23 PM (UTC)
Message
From reading all of the above, I'm not sure if you have seen the "world.send" script command.

That sends things to the world, regardless of what is currently in the command window. It seems to me that this is what you want.

"setcommand" is really for those situations where you actually want to put something into the command window itself, for instance in the rather obscure occasion where you are scripting something that lets you pull in a attribute description from a MUSH, edit it in the command window, and then resend it.

In your example of "say open sesame" when entering a room, you simply do this:


world.send "say open sesame"


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 09 Dec 2001 11:29 PM (UTC)
Message
After reading your post again I see that what you are trying to do is make the sending optional, in order to get around the limitation on bots, or because maybe you sometimes don't want to send it.

This is an interesting problem. One possibility that springs to mind is to have the script pop up a dialog box - eg. "say 'open sesame' now?" and if the user clicks "yes" does the world.send.

I can't remember the VBscript syntax to do it, but I'm sure there would be one. Of course, you don't want to leave the dialog there too long as it is effectively 'hanging' MUSHclient.

Another possibility is to have the script do a world.note (message to you) along the lines of:

"I see a door here - hit XX if you wish me to open it".

Then using an alias XX you can detect the user's response, and then send the command. This again puts the player in control.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Magnum   Canada  (580 posts)  Bio
Date Reply #4 on Mon 10 Dec 2001 01:13 AM (UTC)
Message
Yeah, that could work.

I could always use the same variable [EasyCommand], for the different occasions where I would have wanted to pop something to the command line.

The World.Note would be presented, and if the appropriate alias is entered, whatever is in "EasyCommand" is sent to the mud.

It's not fool-proof, since me (the player) could move to a different room where the EasyCommand would no longer apply.. and who wants to program a mass of triggers to clear EasyCommand (making it foolproof)? Then again, the same problem would exist if the text were in the command box and the user moved around via keypad.

...but I'm rambling. :)

Despite having this workaround, I would still like to suggest the additional commands I recommended be put in a new version, if it's not on your list already.

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #5 on Mon 10 Dec 2001 03:42 AM (UTC)
Message
I have added your suggestions as suggestion #427.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


15,778 views.

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

Go to topic:           Search the forum


[Go to top] top

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