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


Joined: 15 Jan 2011
Posts: 5

PostPosted: Sat Jan 15, 2011 5:04 pm   

capturing colored text
 
Hi, I just wanted to know if capturing colored text is possible.. what i mean is:

if i wanted to capture red text like this:
TEST
my client would capture it in a new window

but if it does not match the color: (example)
TEST
'then it just ignores it

I was wondering what i would put in the #if statement in the script. Thanks!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Sat Jan 15, 2011 5:16 pm   
 
If the text appears in multiple colors then i would remove the color option from the trigger so that it can capture any color.
_________________
Discord: Shalimarwildcat
Reply with quote
dragonisk
Newbie


Joined: 15 Jan 2011
Posts: 5

PostPosted: Sat Jan 15, 2011 5:18 pm   
 
no, i think i might have typed it wrong.. what i meant was, how do i make it so that it captures every sentence that's coloured red and if it's not make it ignore the sentence?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jan 15, 2011 7:44 pm   
 
You wouldn't put it in any #IF command at all. You would want to use a #TRIGGER, with the ANSI Trigger option checked on. In ZMud, if I remember, you have to explicitly type in the ansi color code because it won't autopaste it in like in CMud.
_________________
EDIT: I didn't like my old signature
Reply with quote
dragonisk
Newbie


Joined: 15 Jan 2011
Posts: 5

PostPosted: Sun Jan 16, 2011 4:39 am   
 
thank you! finally figured it out!
Reply with quote
k.anderson3454
Newbie


Joined: 26 Jan 2011
Posts: 1

PostPosted: Wed Jan 26, 2011 12:35 am   
 
What is ANSI??
Reply with quote
Mixsel
Wanderer


Joined: 02 Feb 2003
Posts: 99
Location: Seattle, Wa

PostPosted: Sat Feb 12, 2011 8:42 pm   
 
ANSI is basically the escape Codes use in most muds to determine the color of the Text and Background, some muds go overboard and cause blindness with too much "ansi" in there text.
:) but anyways....

Zmud is tricky capturing ansi, first you have to open the editor window, then choose Raw text, then copy your colored text from the mud window, paste into that window
and then create new trigger in the settings windows, CHECK the ANSI box, then Paste trigger....
it won't work if you don't do everything in a certain order, and yes CMUD is much smarter :)

no guarantees...

Z
_________________
Spin
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