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

Gammon Software Solutions forum

Read the MUSHclient FAQ! (http://mushclient.com/faq)

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Pasting triggers
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Pasting triggers

This subject is now closed.   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Nick Gammon   Australia  (12,065 posts)  [Biography] bio
Date Sun 17 Oct 2004 02:35 AM (UTC)

Amended on Sun 10 Feb 2008 04:23 AM (UTC) by Nick Gammon

Message

You may see on the forum, in emails, or elsewhere, triggers, aliases or timers in XML format, like this:


<triggers> <trigger custom_colour="2" enabled="y" group="eat_drink" match="You are thirsty." name="thirst_trigger" sequence="100" > <send>get flask bag drink flask put flask bag</send> </trigger> </triggers>

To use them copy the entire text (from, and including <triggers> ... </triggers>) to the Windows clipboard. (Or, <aliases> or <timers> as the case may be).

Important: - the <triggers> line is required (and the corresponding </triggers> line).

Then go into the MushClient triggers configuration window (if you have a trigger on the clipboard), and click the "Paste" button, like this:

The trigger will now be pasted into the trigger list, and you can edit it:

Once you edit it you will see the trigger as if you had entered it yourself:


- Nick Gammon

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

Posted by Nick Gammon   Australia  (12,065 posts)  [Biography] bio
Date Tue 13 Jun 2006 06:25 AM (UTC)
Message

An alternative method of pasting, which may save a couple of keystrokes, and which is useful if you have triggers and aliases to be pasted, is to use the File -> Import menu.

You will see a dialog like this:

The "Clipboard" button will be greyed out if there is no valid XML information on the clipboard.

Simply click on the "Clipboard" button and you will see a confirmation dialog of how many triggers, aliases, timers etc. were imported, like this:


- Nick Gammon

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

Posted by Nick Gammon   Australia  (12,065 posts)  [Biography] bio
Date Fri 13 Oct 2006 03:49 AM (UTC)
Message
If the trigger (or alias, or timer) does a "send to script" then you also need to ensure that scripting is enabled.

You can tell by looking next to the "Send to:" label in the trigger/alias/timer. If you see the word "Script" then it is using scripting.

To enable scripting go to the World Configuration dialog -> Scripting section, and check the "Enable Script" checkbox. See this post for more information:

http://www.gammon.com.au/forum/?id=6030

You also need to check that the appropriate script language is selected. Nowadays a lot of scripts use Lua, but if you are in doubt read the forum posting for a clue about the script language.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (12,065 posts)  [Biography] bio
Date Tue 17 Apr 2007 07:43 AM (UTC)
Message
See this post for how you can copy things onto the clipboard:

http://mushclient.com/copying

- Nick Gammon

Web: 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.


This subject is now closed.   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]