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


Joined: 02 Mar 2012
Posts: 3
Location: Sweden

PostPosted: Fri Mar 02, 2012 12:54 am   

A way to GAG tells within a group (Discworld)
 
I play Discworld and Im having problems to gag tells when Im within a group since the groups almost always has different namnes.
Example of how it looks:

[xpron] Draze: Current XP: 1961353. 1643117 xp gained in 182.45 mins. Average xp/h: 540350.
[xpron] Calamity: Nice 42% is a lot of cabbages :D
[xpron] Calamity: Isn't it 10000?
[xpron] Calamity: So that's 4200 cabbages eaten!
[xpron] Humfrey: I think I've got almost 100

[xpron] is the current namne of the group, it could be anything preffered.
Now heres the thing, I managed to GAG Tells to me personnaly tru the following line of code;

{tells you|asks you|exclaims to you}
#CAPTURE "Tells"
#GAG
#CW "hi,magenta"


Works flaless

Same for chatchannels as showed below:

~(Wizards~)
#CW "bold,hi,blue"
#CAPTURE "Channels"
#GAG



So, the quesion is how to GAG grouptells to a separate window called eg. Grouptells?

This drives me crazy!


Regards
Renate
Reply with quote
petterwilke
Newbie


Joined: 02 Mar 2012
Posts: 3
Location: Sweden

PostPosted: Fri Mar 02, 2012 2:15 pm   
 
I bump this one again, anyone that might have a clue on how to do this please tell me :-)
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Fri Mar 02, 2012 2:20 pm   
 
I'm not sure what the confusion is--you would do it exactly the way you did it for chatchannels. Trigger on the pattern
Code:
^~[*~]

If you want to be fancy you can do:
Code:
^~[(*)~](*):(*)

This will allow you to refer in your code to the group, the speaker, and the message as %1, %2, and %3, respectively.
Reply with quote
petterwilke
Newbie


Joined: 02 Mar 2012
Posts: 3
Location: Sweden

PostPosted: Fri Mar 02, 2012 2:34 pm   
 
Ooooh, thank you so much dear, saved my day! .-)
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