command line trigger entering

Posted by ProgrammingVerbs on Fri 21 Mar 2003 10:09 AM — 3 posts, 18,343 views.

#0
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?!?

Canada #1
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).
Canada #2
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).