|
Organ Newbie
Joined: 23 Dec 2023 Posts: 9
|
Posted: 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' |
|
|
|
|
chaossdragon Apprentice
Joined: 09 Apr 2008 Posts: 168
|
Posted: 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. |
|
|
|
Organ Newbie
Joined: 23 Dec 2023 Posts: 9
|
Posted: 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).
|
|
|
|
|
|