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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
SHASCO
Novice


Joined: 29 May 2001
Posts: 48
Location: USA

PostPosted: Fri Jan 04, 2002 2:07 pm   

trigger help Achaea mudd
 
In Achaea we get messages, they can come from other people or from the system. Here is an example of a system message in the short view:

#468 (system): 12/31/10:51 "A skullcap flower has decayed to dust

What I am trying to achieve is a trigger that will be generic enough to delete any messages that I receive like this regardless of date time. The syntax to delete the message is delmsg 468. I would need to capture the 468 after the # sign and I think that is what is causing me greif. Since the # is a special character in Zmud. All messages increase numerically in Achaea. So the next message would be #469, etc. I could be incorrect and welcome any suggestions.

Thank you.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Jan 04, 2002 4:12 pm   
 
If it's just the system messages you want to delete, this should do it:

#TR {^~#(%d) ~(system~): } {delmsg %1}

LightBulb
All scripts untested unless otherwise noted
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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