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


Joined: 30 Aug 2005
Posts: 1

PostPosted: Tue Aug 30, 2005 3:19 am   

trigger to replace incoming text
 
I'm very new to programming triggers, and I don't understand much about it. I'm also very set in my ways, so I want the new mud I'm playing to feel a little more like my old mud.

So, is there a way to program a trigger to replace incoming text that looks like this:

"Exits: north, east, south, west"

with this:

"Exits: [N E S W]"

??

Thanks for any help you fine folks can give.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Aug 30, 2005 8:15 am   
 
#TRIGGER {^Exits: (*)$} {#SUBSTITUTE {Exits: ~[%upper(%subregex("%1","?(o?(r|u)th|?(e|a)st)",""))~]}}
_________________
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