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
Organ
Newbie


Joined: 23 Dec 2023
Posts: 9

PostPosted: Sun Dec 24, 2023 12:11 am   

#CAP with extra info
 
#CAP captures the triggering text and sends it to another window. Is there a way to add additional info to this type of behavior without rewriting the functionality of #CAP to do it?

I'd like to add my character's name so that
Quote:
Bob tells you 'hi'
goes to my Tells window as
Quote:
(Leg0las) Bob tells you 'hi'
Reply with quote
chaossdragon
Apprentice


Joined: 09 Apr 2008
Posts: 168

PostPosted: Sun Dec 24, 2023 5:20 am   
 
Code:
<trigger priority="14850" regex="true">
<pattern>^(?:>\s|)(You tell \w+|\w+(?<!YOURPET) tells you|\w+ LTs \(.+\)|You LT \(.+\))\:?(.*)$$(.*)$$</pattern>
<value>#if (@doBeeps) {#beep} :Chat:#SAYPROMPT {%cr%ansi(bold,blue)"["%time(hh:mm)"] "%ansi(bold,magenta)"["%1"]: "%ansi(bold,grey)%2} #GAG</value>
<trigger type="Loop Pattern" regex="true" prompt="true">
<pattern>^ +(?:LT\:)?(.*)$$</pattern>
<value>:Chat:#SAYPROMPT {%ansi(bold,grey)" "%1} #GAG</value>
</trigger>
</trigger>



sends tells to a 'Chat' window and gags the tells from the main window... may need a little tweaking for your mud.
Reply with quote
Organ
Newbie


Joined: 23 Dec 2023
Posts: 9

PostPosted: Tue Dec 26, 2023 4:00 am   
 
Thanks! That looks like exactly what I'll want. I will try it out after I take care of some performance and stability issues I've encountered (another thread).
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