|
snarf1 Newbie
Joined: 30 Aug 2005 Posts: 1
|
Posted: 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. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
|
|
|
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
|
|