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
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Thu Apr 07, 2005 5:48 am   

ANSI trigger
 
I'm using an ANSI trigger to capture the name of my room for a script that should help me determine the direction I flee, but for some reason this extra code is added on to the end of line. Here is the pattern I'm currently using:

Code:

^%e[36m(*)


I tried making it:

Code:

^%e[36m(*)


but that didn't seem to work. Here's a sample of what's being captured into the variable from my first trigger:

Code:

The Fifth Chamber


Any way I can get around having that last stuff tacked on to the end? Some roomnames end with periods and such, so I can't just do a (*)(%w), unfortunately. Any suggestions are welcome Smile
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
Kiasyn
Apprentice


Joined: 05 Dec 2004
Posts: 196
Location: New Zealand

PostPosted: Thu Apr 07, 2005 8:23 am   
 
um ^%e[36m(*)%e ??
_________________
Kiasyn
Owner of Legends of Drazon
Coder on Dark Legacy
Check out Talon, an easy IMC connection.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Thu Apr 07, 2005 1:05 pm   
 
can also just remove any ansi information with the %stripansi function
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
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