how to translate characters

Posted by Brooster on Wed 13 Nov 2002 04:38 PM — 3 posts, 13,593 views.

#0
can I translate characters so if the mud sends 'pare dudasabru' (without quotes) in the middle of the line can mushclient automatically change those characters to 'hold person'??

in tintin its like this
#subs {%0'pare dudasabru'} {%0'hold person'}
Amended on Wed 13 Nov 2002 04:53 PM by Brooster
Australia Forum Administrator #1
You cannot do direct text substitutions but what you can do is use a trigger to match on the spell, omit that line from the output and replace it with the translated one. The only problem is that the translated line will be in the "world note" colour and not the original line colour.

Here is the trigger ...


<triggers>
  <trigger
   enabled="y"
   match="*pare dudasabru*"
   omit_from_output="y"
   send_to="2"
   sequence="100"
  >
  <send>%1hold person%2</send>
  </trigger>
</triggers>


USA #2
I still say that omit from output should 'save' a copy of the triggering line for 'that' trigger, so that you can correctly recover the color info from it. I can see why it does things in the order it does, but at the same time it is counterproductive in 99% of the cases where you want that information imho. In cases where you need such info for 'any' line other than the current omitted one, it is probably easier to capture them as they arrive.