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
rck
Novice


Joined: 26 Oct 2005
Posts: 32
Location: California

PostPosted: Thu Dec 20, 2007 1:54 am   

%trigger - but with ANSI?
 
I've looked at the help docs, it notes %trigger contains the full line of what triggered the currently executing trigger without ANSI, but is there a version that contains the ANSI codes used to display as well?
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Thu Dec 20, 2007 3:39 am   
 
Make your trigger an ANSI trigger, and it should allow you to capture the full ANSI sequence with the right wildcards.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Dec 20, 2007 3:40 am   
 
There isn't any, but you can make one.
Code:

#VAR AnsiLine "" {}
#TRIGGER "AnsiCap" {^(&AnsiLine)$} {} "" {color}
#CALL %priority(AnsiCap,"trigger",1)
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
rck
Novice


Joined: 26 Oct 2005
Posts: 32
Location: California

PostPosted: Thu Dec 20, 2007 4:15 am   
 
Thanks for the suggestion, I didn't realize with ANSI Trigger enabled the provided matched data would also include the ansi sequences, with that in mind I'll just enable ANSI for the trigger I need it for, thanks! :)
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