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
➜ Reversing text, is there a simple solution?
|
Reversing text, is there a simple solution?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Desert_Wanderer
(5 posts) Bio
|
| Date
| Fri 25 Jul 2003 04:34 PM (UTC) |
| Message
| Is there a simple solution to reversing text?
Example using the alias "backsay":
>backsay "this is a test"
would come out as: Player says, "tset a si siht"
I've been reading and searching for a method, but I haven't seen one yet. Thanks in advance.
-DW | | Top |
|
| Posted by
| Sleeve
(31 posts) Bio
|
| Date
| Reply #1 on Fri 25 Jul 2003 05:16 PM (UTC) |
| Message
| If you are using VBScript, you can do something like this
Dim test
test = StrReverse("this is a test")
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Fri 25 Jul 2003 10:18 PM (UTC) Amended on Fri 01 Aug 2003 06:21 AM (UTC) by Nick Gammon
|
| Message
| So, to put that into a ready-to-use alias:
<aliases>
<alias
match="backsay *"
enabled="y"
send_to="12"
sequence="100"
>
<send>Send "say " & StrReverse ("%1")</send>
</alias>
</aliases>
Example
backsay hi there
You say 'ereht ih'
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Kyrs
(6 posts) Bio
|
| Date
| Reply #3 on Fri 01 Aug 2003 03:46 AM (UTC) |
| Message
| I received this error when I attempted to paste the alias.
Line 8: No closing ";" in XML entity argument "&" (problem in this file)
What's that mean? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #4 on Fri 01 Aug 2003 06:22 AM (UTC) |
| Message
| Sorry, I should have had & rather than &.
I have fixed the post above, try again with the correction. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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.
18,817 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top