Text Manipulation from what the mud sends

Posted by Desert_Wanderer on Thu 02 Oct 2003 02:37 PM — 3 posts, 15,157 views.

#0
I've been playing around with this, and just think there has to be a better way of accomplishing what I am after.

What I am looking to do is add text to an output if it is detected with a trigger. An example would be:

The mud sends:
The tall, fat man stands here.
or
A flagon filled by an amber liquid is on the floor here.

What I want displayed to me is:

The tall, fat man [Bruno] stands here.
or
A flagon filled by an amber liquid [beer] is on the floor here.

Best I've managed to do so far is the following:

<trigger
enabled="y"
match="The tall, fat man*"
send_to="2"
sequence="100"
other_text_colour="black"
other_back_colour="black"
>
<send>[Bruno]</send>
</trigger>

But that results in the following:

In A Bar [NS]
The tall, fat man stands here.
[Bruno]
100hp >

I just can't figure out how to make it look like:

In A Bar [NS]
The tall, fat man [Bruno] stands here.
100hp >

Any ideas on how I could make this a reality? I very much appreciate your time.

-DW
USA #1
Right now you can't. We are currently in the middle of arguing about this in the thread:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3325&page=999999

It is a feature asked for in the past, but could be complicated to impliment, especially to do right.
#2
I appreciate the link, thank you.

-DW