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


Joined: 12 Jan 2003
Posts: 33
Location: Netherlands

PostPosted: Wed Aug 18, 2004 9:17 pm   

Substitute trigger
 
Im looking for a way to make text on the mud screen a little smaller by shortening some standerd things. I used the substitute command and it works except for 1 thing. All color on the line behind the replaced text has disappeared.

How can i use substitute and still have collor?

This is the trigger i use, the text spoken also gets logged to a sub window.

#TRIGGER {You ask Rovlan the mercenary for a quest.} {}
#COND {Rovlan the mercenary says (*)} {#substitute {Rovlan says %1};#WIN quest %1} {looppat|param=10}
Reply with quote
Falan
Wanderer


Joined: 17 Aug 2004
Posts: 98
Location: OK, USA

PostPosted: Thu Aug 19, 2004 4:09 am   
 
Do you have a #TR in the quest window to color the text?
_________________
zMUD 7.05a
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Aug 19, 2004 9:36 am   
 
Simply remove the text you don't want instead of recreating the whole line.

#COND {Rovlan (the mercenary )says (*)} {#psub {} %x1;#WIN quest {%2}} {looppat|param=10}
_________________
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