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
➜ Trigger
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Athory
(1 post) Bio
|
| Date
| Sat 05 Jan 2002 02:25 AM (UTC) |
| Message
| Just a quick question
*Baron Bob* is DEAD!!
need it to put in a command when ever *Baron (anyone)* is DEAD!!
| | Top |
|
| Posted by
| Neverwhere
USA (40 posts) Bio
|
| Date
| Reply #1 on Sat 05 Jan 2002 05:36 AM (UTC) |
| Message
| ok here is what to use for the trigger: "(\w*) is DEAD!!"
send this to world: "%1 is DEAD!"
the %1 recalls the wildcard (the name in this case) but inorder for it to work, you must check the Regular Expression box in the trig make screen. Its on the left side.
Neverwhere
|
ChaosMUD: chaosmud.org:23
Always looking for new players/coders. Willing to train if your willing to lear. Contact Neverwhere or just mention that I sent you. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Sat 05 Jan 2002 06:00 AM (UTC) |
| Message
| Are the asterisks part of it? In which case you might "escape" them in a regular expression, eg.
Trigger: ^\*Baron (\w+)\* is DEAD!!$
Send: Yell %1 is DEAD (or whatever)
Regular expression: checked
In the regular expression \* represents a literal asterisk, and \w+ represents one or more "word" characters. Putting them in brackets makes them wildcard #1, which you can then use in the "send" text. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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.
14,058 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top