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
Mattsc23
Beginner


Joined: 07 Dec 2002
Posts: 12
Location: USA

PostPosted: Mon Dec 16, 2002 9:18 pm   

Variable expansion?
 
I modified this trigger found in the boards to time stamp my comms captured to my child window 'comms':
#TR {{(%w) @comms '(*)'}} {{#SUB {%time("hh:nn:ss") - %1 @comms '%2'}}}
where the variable @comms = tells|gossips|questions|answers|music|grats

this gave me the following output:
Vath 11:52:42 - tells|gossips|questions|answers|music|grats '' 'Not nearly scared enough :P'
Someone 11:52:42 - tells|gossips|questions|answers|music|grats '' 'Mobs are aggie here?'
Foxtail 11:52:42 - tells|gossips|questions|answers|music|grats '' 'Yeah, Petter sure wrote a huge area, didn't he?'

which is kinda what I want except that the "tells|gossips|questions|answers|music|grats" is expaned to the screen instead of just gossips or tells, etc.
Anyone know what could correct this?

Thanks,

Matt
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Mon Dec 16, 2002 9:52 pm   
 
try this:
#tr {(%w) ({@comms}) '(*)'} {#sub {%time("hh:nn:ss") - %1 %2 %3}}

this way you capture which member of @comms triggered it, and print that one only
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