[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Simple Trigger I need help

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Simple Trigger I need help

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Shadwen   (9 posts)  [Biography] bio
Date Wed 04 Nov 2009 04:22 PM (UTC)  quote  ]
Message
Hey, im a new immortal on a Smaug mud. I need a trigger that when sitting in my following it will cast the spell that they ask for.


its supposed to work like this:

Person prays(in common)'sanc'

at Person c sanc



[Go to top] top

Posted by Phaeton   Canada  (8 posts)  [Biography] bio
Date Reply #1 on Thu 05 Nov 2009 07:26 PM (UTC)  quote  ]
Message
There are plenty of resources available on the forums and website that can show you how to do this. In general, it's better to make an effort and then ask for help if you don't get the desired/expected result.

You could probably figure it out from this page:

http://mushclient.com/mushclient/funwithtriggers.htm

Anyways,

You probably want to match something like (with regex checked):

^(\w+) prays\(in common\)'sanc'


To send something like:

at %1 c sanc


(Or something) :)
[Go to top] top

Posted by Oriol   (31 posts)  [Biography] bio
Date Reply #2 on Mon 16 Nov 2009 11:57 AM (UTC)  quote  ]
Message
No need for a regexp
You could use something like this
* prays (in *) '*'
then send cast %3
hth
[Go to top] 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.


1,901 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]