Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ how to translate characters
|
how to translate characters
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Brooster
(3 posts) Bio
|
| Date
| Wed 13 Nov 2002 04:38 PM (UTC) Amended on Wed 13 Nov 2002 04:53 PM (UTC) by Brooster
|
| Message
| 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'}
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 13 Nov 2002 08:19 PM (UTC) |
| Message
| 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>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Shadowfyr
USA (1,792 posts) Bio
|
| Date
| Reply #2 on Wed 13 Nov 2002 09:40 PM (UTC) Amended on Wed 13 Nov 2002 09:44 PM (UTC) by Shadowfyr
|
| Message
| | 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. | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
12,916 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top