Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
corvus
Newbie


Joined: 16 Jun 2007
Posts: 3
Location: Brisbane, Australia

PostPosted: 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
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: 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~}
Reply with quote
mercatroid
Wanderer


Joined: 06 Dec 2004
Posts: 59

PostPosted: 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?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Mar 12, 2008 5:54 pm   
 
#trig {^} {#sub {~[%time(hh:nn)~] }}

or something similar.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net