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 ➜ General ➜ How do I access wildcards from triggers?

How do I access wildcards from triggers?

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


Posted by Jynxanumb   USA  (4 posts)  Bio
Date Fri 03 Jan 2003 10:01 PM (UTC)
Message
now this is just an example.. i just need to know what the variable for mush is... example: Texas says ' spank me!' and i would spank him.. then if someone else said it , I would spank them also , without having seprate triggers for both people...

I show all the signs of clinical depression
and I am the proverbial square peg in a round hole
Top

Posted by Jynxanumb   USA  (4 posts)  Bio
Date Reply #1 on Sat 04 Jan 2003 04:14 AM (UTC)
Message
basically all I need to know is what the variables are and how to incorparate them into triggers...

I show all the signs of clinical depression
and I am the proverbial square peg in a round hole
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #2 on Sat 04 Jan 2003 05:50 AM (UTC)
Message
if you want to match a trigger to anyone that can possibly match it, use * for the part that you need to match. Ill use your spanking example to help you out with....

trigger: * says 'spank me!'
action: spank %1

Nice, simple and straight forward for the most part

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Jynxanumb   USA  (4 posts)  Bio
Date Reply #3 on Sat 04 Jan 2003 07:20 PM (UTC)
Message
well , i do that and I get an error message

::: Failed:nothing to repeat at offset 0::: what's that mean?

I show all the signs of clinical depression
and I am the proverbial square peg in a round hole
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #4 on Sun 05 Jan 2003 09:40 PM (UTC)
Message
The example given is not a regular expression. Uncheck the "regular expression" box.

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


16,518 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.