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
➜ General
➜ Multiple commands
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Mike Kilian
(15 posts) Bio
|
Date
| Mon 14 Jan 2002 07:15 AM (UTC) |
Message
|
I'm use to being able to type multiple commands seperating them by a semi-colon. It is quick and easy, especially considering my typing skills are sub-par. Using Mush Client, to do what I use to be able to do I need #, multiple paranthesis, and I cannot use my aliases. "w;blind orc;e" has turned into "#w(cast 'blind' orc)e" as an example.
Is there a way to change the way this is typed in? I know the # character can be reconfigured, but can it be eliminated? What about changing the paranthesis to a semi-colon and allowing multiple commands to use predefined aliases?
Mike
| Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #1 on Mon 14 Jan 2002 07:48 AM (UTC) |
Message
| Unless I have misunderstood the question, yes, go to world configuration, Commands, and enable "command stacking". Then you can use a semicolon to do what you describe. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nbe
(5 posts) Bio
|
Date
| Reply #2 on Tue 06 Jul 2004 07:36 AM (UTC) |
Message
| Just like NICK said, I can type commands like this: command1;command2;command3
| Top |
|
Posted by
| Nbe
(5 posts) Bio
|
Date
| Reply #3 on Tue 06 Jul 2004 07:39 AM (UTC) |
Message
| sorry about type "enter" so quick. :(
Then another qustion: how can i send command from script with one line code?
like this: world.send "command1;command2;command3"
not this: world.send "command1"
........."command2"
now my script has so many lines...
| Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #4 on Tue 06 Jul 2004 07:42 AM (UTC) |
Message
| if you really wanted to send lines stacked you could use world.execute instead of send. But really theres nothing wrong with scripts having a lot of lines. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Nbe
(5 posts) Bio
|
Date
| Reply #5 on Tue 06 Jul 2004 07:49 AM (UTC) |
Message
| Oh, world.execute works good, i am a newbie of this software.
hmm, i think it's realy big script file, and, grow fast
thanks | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #6 on Tue 06 Jul 2004 07:53 AM (UTC) |
Message
| Are those script routines unique one per trigger/alias? If so, you can put the script in the trigger itself (in the send box, then send to "script"). Or, if its just straight sending, you can just send straight from the trigger/alias. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #7 on Tue 06 Jul 2004 10:43 PM (UTC) Amended on Tue 06 Jul 2004 10:44 PM (UTC) by Nick Gammon
|
Message
|
Quote:
Then another qustion: how can i send command from script with one line code?
like this: world.send "command1;command2;command3"
Or, you can build in the extra lines yourself like this:
world.send "command1" & vbCrLf & "command2" & _
vbCrLf & "command3"
However using:
world.Execute "command1;command2;command3"
is probably easier.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Andriel
(1 post) Bio
|
Date
| Reply #8 on Thu 13 Jan 2011 01:37 AM (UTC) Amended on Thu 13 Jan 2011 01:43 AM (UTC) by Andriel
|
Message
| Would this work even when you have to wait for your character to regain balance prior to being able to send your next command?
For example:
Emote begins singing in a hauntingly soft contralto,
!OnBal: emote sings %%<stuff>%%
(have to pause and wait for a few moments before sending, which makes things choppy on the viewers end.)
emote sings %%<stuff>%%
~~~~~~~~~~~~~~~~~~~~~~~~~~~
The %% are used to denote what's being said/sung/whispered etc | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #9 on Thu 13 Jan 2011 03:41 AM (UTC) |
Message
| Not precisely, because it sends things immediately. However using techniques described here you can:
http://www.gammon.com.au/forum/?id=4957
An example that lets you emote two things is:
<aliases>
<alias
match="sing *|*"
enabled="y"
send_to="12"
sequence="100"
>
<send>
require "wait"
wait.make (function () --- coroutine below here
Send ("emote %1") -- send first part
wait.match ("You regain balance on all limbs.", 10) -- wait or timeout after 10 seconds
Send ("emote %2") -- send second part
end) -- end of coroutine
</send>
</alias>
</aliases>
 |
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.
|
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Fanlynne
(1 post) Bio
|
Date
| Reply #10 on Mon 17 Jan 2011 01:23 AM (UTC) Amended on Mon 17 Jan 2011 01:24 AM (UTC) by Fanlynne
|
Message
| Hey,i am newbie here.... | 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.
39,201 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top