Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Vassarri
Newbie


Joined: 20 Apr 2008
Posts: 1

PostPosted: Thu Feb 18, 2010 1:57 am   

Easy Question..
 
I've done this plenty times before, but I have a major headache tonight and
just cannot remember it (getting back to gaming after a while off). Now I'm
looking to replace incoming strings of text... well, to a point..

A dark-haired, long-eared elf enters from the west.

Now I want to simply replace the incoming string with

A dark-haired, long eared elf (Jim-Bob) enters from the west.

Just adding the bit of at tag at the end of a name...

I know it's a simple one line thing, but I just got in from a major trip... and..
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Feb 18, 2010 5:34 am   
 
I assume you don't have problems with building a trigger, but what I would do is simply put parentheses around the appropriate space in the pattern and use #PSUB on %x1:

#PSUB " (Jim-Bob) " %x1
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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