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 ➜ VBscript ➜ Creating a multi-line trigger using AddTrigger

Creating a multi-line trigger using AddTrigger

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


Posted by ReinS   (1 post)  Bio
Date Tue 15 Dec 2009 01:05 AM (UTC)
Message
I'm currently trying to use the world.AddTrigger function to add a multiple-line trigger to the list, but I can't seem to find the correct linebreak character to do so. I've tried inserting the 'newline' escape into the string (which is /n) to no avail. Could someone point me in the right direction on how to do this? Thanks.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 15 Dec 2009 01:36 AM (UTC)
Message
Well, newline is \n not /n for a start.

Can you paste the whole thing, rather than describing it? Maybe you made a typo in your explanation, or maybe the trigger itself is wrong.

Template:copying For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Tue 15 Dec 2009 01:38 AM (UTC)
Message
I would also generally use the GUI interface to add triggers. Using AddTrigger is generally only necessary in advanced cases, like where you make an alias that adds triggers for you.

- Nick Gammon

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

Posted by Larkin   (278 posts)  Bio
Date Reply #3 on Wed 16 Dec 2009 09:47 PM (UTC)
Message
And, as AddTrigger and AddTriggerEx leave out many of the options you can, and may, want to set for a trigger, I might recommend use of the ImportXML function instead. Works great for me!
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.


21,463 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.