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
➜ @ in a scrip needed for color code
@ in a scrip needed for color code
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Aralia Faal
(25 posts) Bio
|
Date
| Sun 02 Sep 2012 05:15 PM (UTC) |
Message
| I play a mud that uses @ as a color code indicator. I made a hiding variable and a trigger to set the variable yes or no depending on if I’m hiding or not. I then made an alias for say to check the variable and then perform one of two actions.
<aliases>
<alias
match="say *"
enabled="y"
send_to="12"
sequence="99"
>
<send>
if hiding == "yes" then
SendImmediate ("emote says from the shadows, "@R%1@n"")
else
SendImmediate ("say @R%1@n")
end
</send>
</alias>
</aliases>
How do I get it to send @ within the scrip and not call for a variable? | Top |
|
Posted by
| Fiendish
USA (2,537 posts) Bio
Global Moderator |
Date
| Reply #1 on Sun 02 Sep 2012 08:29 PM (UTC) Amended on Sun 02 Sep 2012 08:30 PM (UTC) by Fiendish
|
Message
| First of all you can't send "something"something"" because the second " terminates the first. Either make the outer ones ' instead of " or escape the inner ones.
e.g.
or
And for your question, either don't use the "expand variables" option, or double up the @ (like @@) to send a literal one instead of interpreting it as a variable request. |
https://github.com/fiendish/aardwolfclientpackage | 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.
9,681 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top