|
corvus Newbie
Joined: 16 Jun 2007 Posts: 3 Location: Brisbane, Australia
|
Posted: Sat Jan 19, 2008 11:54 am
Some help with CMUD triggers |
Hi,
I have been using zmud for years and have been using cmud for a little while now and i am trying add triggers to cmud that i had in zmud. All i am really having problems with is entering the triggers using #TRIG from command line. All i seem to get constantly is - Error parsing command: Unmatched brackets. I have been over and over the helps and just can't work it out. tried other combinations, adding brackets etc but never works. Here is an example of one trigger
#TRIGGER {{Quest} (%w)} {:ImmMasschat:#say %time();#cap ImmMasschat}
Basically, the line - {Quest} Corvus: Hi all! - would get captured in another window along with a timestamp. I can get it to work if i add it in via the editor but via command line is a lot quicker for numerous trigger entries.
Any help would be greatly appreciated |
|
|
|
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Sat Jan 19, 2008 12:47 pm |
There is a better way to get the timestamps. Click within your ImmMasschat window and click on Preferences button (or use the settings editor), go to Session/Scrollback tab and turn on Show timestamps option. This option is independent for each window. Also you may set up timestamp format there.
Btw, if you create your trigger in the settings editor rather than with #TRIG cmd, it will work fine. Just escape braces in your pattern with ~, i.e. ~{Quest~} |
|
|
|
mercatroid Wanderer
Joined: 06 Dec 2004 Posts: 59
|
Posted: Wed Mar 12, 2008 5:18 pm |
Since there isn't a "Show Timestamps" option in zMud (that I know of), what would be the best way to get them into a channel capture window?
For example:
Quote: |
Player chats 'This is a Player using the chat channel' |
Would get captured to the Chat window, and should look like this:
Quote: |
[14:24] Player chats 'This is a Player using the chat channel' |
Any ideas? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Mar 12, 2008 5:54 pm |
#trig {^} {#sub {~[%time(hh:nn)~] }}
or something similar. |
|
|
|
|
|