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 ➜ General ➜ command line trigger entering

command line trigger entering

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


Posted by ProgrammingVerbs   (3 posts)  Bio
Date Fri 21 Mar 2003 10:09 AM (UTC)
Message
Ok, so I've been a WinTin junkie and fell in love with the on-the-fly aliasing and triggering I could add in 2.8 seconds sans pop-ups... is there anything like that I can do here and how?
simplest I can think of
#action {By what name do you wish to be known?} {Name}{0}
so the text is "By what name..."
and the world.send(Name)

Oh, yeah, when am I programming JScript and when am I calling functions and can I do that from the command line, so I can keep moving while making minor adjustments ON THE FLY?!?

Top

Posted by Magnum   Canada  (580 posts)  Bio
Date Reply #1 on Fri 21 Mar 2003 03:13 PM (UTC)
Message
In MUSHclient, press: SHIFT-CTRL-6

In the bottom right corner is the "Script Prefix" configuration field. By default it is set to the "/" character.

From the MUSHclient command line, you can call a subroutine or function directly by beginning the line with the prefix character. (You should remember to supply the correct number of arguments, if appropriate).

You can use this same methodology to call MUSHclient scripting functions. Please see this page:

http://www.mushclient.com/scripts/function.php?name=AddTrigger

That page describes the MUSHclient "AddTrigger" function, which you could implement directly from the Command Box.

The syntax is somewhat complex, so you might find it easier to write your own subroutine to create triggers. You would then call the subroutine via an alias. That way, you could use your script to make certain default assumptions about the configuration of new triggers (thereby providing less arguments when using your alias shortcut).

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 #2 on Fri 21 Mar 2003 03:17 PM (UTC)
Message
Just as an afterthought... You could, in theory, write an alias to EXACTLY duplicate the WinTin syntax, if it suited your fancy. (Using the method I described above).

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

Constantly proving I don't know what I am doing...
Magnum.
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.


14,660 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.