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


Joined: 12 Aug 2003
Posts: 5

PostPosted: Tue Aug 12, 2003 8:22 am   

#sub problem
 
#trigger {^%sKeren}{#sub "(F1)"Keren}

Why does the program change the colour of the original output, and how can I prevent it?
Original --- Keren
After the trigger --- (F1)Keren

I don't want to use the #cw command because I there is an important information in the colours. So I need a way to make the program to add (F1) befor the name without changing the colour.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Aug 12, 2003 5:58 pm   
 
If color is important, don't use #SUB. It doesn't preserve color information.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Aug 14, 2003 10:12 pm   
 
How about something creative like:

#TRIGGER {^%s({ })Keren} {#PSUB "(F1)" %x1}

Something in the back of my mind say there might be issues with multiple hits per line.
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