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
Rugbystyle
Wanderer


Joined: 07 Oct 2001
Posts: 71

PostPosted: Thu Jul 22, 2004 5:36 pm   

Storing Ansi codes from the mud
 
Ok I tried figuring out a way for myself, but I don't know if it's even possible now.

I want to basicaly store a given line from the mud with it's ansi codes.

Is there anyway anybody can think of to store a line from the mud to a variable maintaining the color(s), so when the variable is called up again it retains the same color?

Hope I explained what I'm looking to do well enough.

Like I said, I don't even know if it's possible - but I like to think you can do anything with zMud Very Happy
_________________
Reply with quote
Serentus
Apprentice


Joined: 28 Sep 2001
Posts: 103
Location: USA

PostPosted: Fri Jul 23, 2004 10:18 am   
 
set the trigger option to ansi then %trigger should contain the ansi codes.
_________________
-Serentus-
Reply with quote
Rugbystyle
Wanderer


Joined: 07 Oct 2001
Posts: 71

PostPosted: Fri Jul 23, 2004 6:36 pm   
 
I tried that, and unless I'm doing something wrong, I couldn't get that to store any of the ansi codes. Maybe I should clarify a little. I want to capture an unknown line basically a blank trigger, and have that line stored with the associated line color(s).


Any help?
_________________
Reply with quote
SethRizzen
Beginner


Joined: 07 Apr 2003
Posts: 15
Location: USA

PostPosted: Fri Jul 23, 2004 7:00 pm   
 
Rugbystyle,

Are you trying to capture the MUD's color codes or the %ansi function's color codes? Also, what is the trigger you have so far?

-Seth-
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Jul 24, 2004 2:27 pm   
 
You are going to have to make a trigger with the ansi option checked and a pattern of ^(*)$. Without more information we really can't say anything better then that.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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