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
➜ Multi Line trigger Help in SWR
Multi Line trigger Help in SWR
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Neoshain
(38 posts) Bio
|
Date
| Tue 12 Mar 2013 05:21 PM (UTC) Amended on Tue 12 Mar 2013 05:26 PM (UTC) by Neoshain
|
Message
| Scripting Language - Lua
MUSHclient Version - 4.84
Here is what I have now:
<triggers>
<trigger
enabled="y"
lines_to_match="4"
match="Through the transparisteel windows you see\: \n Inside the Eastern Docking bay "
multi_line="y"
regexp="y"
sequence="100"
>
<send>s
d
d
d
s
open hatch
leave
close lance
unloadcargo lance
loadcargo lance gems
open lance
enter lance
close hatch
n
u
u
u
n
launch</send>
</trigger>
</triggers>
It is not firing.
I would like my trigger to be set to go off on the following:
Quote:
Through the transparisteel windows you see:
-={ Inside the Eastern Docking bay }=-
I have the trigger set to
Through the transparisteel windows you see\: \nInside the Eastern Docking bay
I have Regular Expression Checked. I have muli-line trigger checked to 4.
I have not anchored the regexp to account for the -={ }=- around the words. I have tried this code too,
Through the transparisteel windows you see\: \n\-\=\{ Inside the Eastern Docking bay \}\=\-
I am new to this, please help. | Top |
|
Posted by
| Neoshain
(38 posts) Bio
|
Date
| Reply #1 on Tue 12 Mar 2013 05:35 PM (UTC) |
Message
| I THINK I may have found a solution. | Top |
|
Posted by
| Neoshain
(38 posts) Bio
|
Date
| Reply #2 on Tue 12 Mar 2013 10:33 PM (UTC) |
Message
| Nope. Still need help.
| Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #3 on Wed 13 Mar 2013 07:53 AM (UTC) |
Message
| Did you use the option to make you a multi-line trigger? I did, and this works:
<triggers>
<trigger
enabled="y"
group="Multi Line"
lines_to_match="6"
keep_evaluating="y"
match="Through the transparisteel windows you see\:\n\n\n\-\=\{ Inside the Eastern Docking bay \}\=\-\n\n\Z"
multi_line="y"
regexp="y"
send_to="2"
sequence="100"
>
<send>
whatever
</send>
</trigger>
</triggers>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #4 on Wed 13 Mar 2013 07:54 AM (UTC) |
Message
| Can you put the exact MUD output into "code" tags? Even a solitary extra space can throw a trigger out. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Neoshain
(38 posts) Bio
|
Date
| Reply #5 on Wed 13 Mar 2013 05:14 PM (UTC) |
Message
| Sure:
Through the transparisteel windows you see:
-={ Inside the Eastern Docking bay }=-
I don't think so, but if it will help, I've expanded the area I've copied, it will always show up like this.
Obvious exits:
South - A Durasteel Hatchway
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Through the transparisteel windows you see:
-={ Inside the Eastern Docking bay }=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thank you for you help.
| Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #6 on Thu 14 Mar 2013 07:06 AM (UTC) |
Message
| I did spot one trailing space there (select the message and you'll see it). This matches on what you posted:
<triggers>
<trigger
enabled="y"
group="Multi Line"
lines_to_match="5"
keep_evaluating="y"
match="Through the transparisteel windows you see\:\n\n\n\-\=\{ Inside the Eastern Docking bay \}\=\- \n\Z"
multi_line="y"
regexp="y"
send_to="2"
sequence="100"
>
<send>
whatever
</send>
</trigger>
</triggers>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Neoshain
(38 posts) Bio
|
Date
| Reply #7 on Sat 16 Mar 2013 11:56 PM (UTC) |
Message
| Thank you! I got it. Due to possible variances with in it, I've had to expand the trigger to include more before and after. I've got it working now. Thank you
| 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,579 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top