Gammon Forum
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 (22,975 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.
|
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 (22,975 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.
15,489 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.