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


Joined: 31 Aug 2004
Posts: 5

PostPosted: Wed Sep 08, 2004 12:52 am   

Always replacing X with Y without changing anything else
 
OK, this seems like a simple question but I'm mildly proficient in ZMUD code and I can find no way to do this..

In my mud noone has displayed names, they always show up as: "A tall, dumb-looking person" (etc)

So when I learn someone's name, I want to have it so that whenever I recieve the string "A tall, dumb looking person" it is replaced with "Dumbface"... wether it be "A tal, dumb looking person is here" or "A tall, dumb looking person slices at you with his shourtsword." or "You spit on a tall, dumb looking person".

Is there any possible way I could do this with triggers etc?

I want it to keep its textual color, and I don't want it to otherwise distrub the color/format of the line it is on.

HELP!! :-)
Reply with quote
geniusclown
Magician


Joined: 23 Apr 2003
Posts: 358
Location: USA

PostPosted: Wed Sep 08, 2004 1:00 am   
 
Have you tried using #SUB?
Quote:
#TR {a tall, dumb looking person} {#SUB Dumbface}
_________________
.geniusclown
Reply with quote
ljungbergjj
Newbie


Joined: 08 Sep 2004
Posts: 6

PostPosted: Wed Sep 08, 2004 1:03 am   
 
if its a script or something, copy it and paste it in notepad, click edit, then, replace and continue on
Reply with quote
Warclone
Newbie


Joined: 31 Aug 2004
Posts: 5

PostPosted: Wed Sep 08, 2004 1:34 am   
 
wow, actually, I think #sub is the answer.. wow I'm an idiot.. havent tried it yet ill get back to you if it doenst work.
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