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
➜ Aliases and comments and splitting text between output/to world
Aliases and comments and splitting text between output/to world
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Silencher
(55 posts) Bio
|
Date
| Tue 05 Mar 2013 06:46 PM (UTC) Amended on Tue 05 Mar 2013 06:47 PM (UTC) by Silencher
|
Message
| Version: 4.84
I just had a general question about triggers/aliases.
1. How would I add a 'comment' to an alias, preferably one that doesn't go to output/the mud. For example.
--
alias name: quaff
body:
//comment: This alias gets a potion from your backpack and
drinks it. (this would be seen only when editting
the alias)
get potion from backpack
drink potion
--
Obviously I wouldn't actually use a comment like that for something so trivial. But if this could be left within the alias itself for when I go back to edit it and/or if I could have a message added to output (me) not the world.. So using the above example:
--
alias name: quaff
body:
//comment: This alias gets a potion from your backpack and
drinks it. (this would be seen only when editting
the alias)
(sent to world:)
get potion from backpack
drink potion
//output, not sent to world.: Hey, Silencher. Remember to check your supply of potions so you don't run out!
--
| Top |
|
Posted by
| Fiendish
USA (2,536 posts) Bio
Global Moderator |
Date
| Reply #1 on Wed 06 Mar 2013 03:25 AM (UTC) Amended on Wed 06 Mar 2013 03:26 AM (UTC) by Fiendish
|
Message
| send to script instead of to world and then use Send("stuff to send to the world here") to send stuff to the world. Everything else will be code and can be commented or Note()ed as necessary. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #2 on Wed 06 Mar 2013 04:58 AM (UTC) Amended on Wed 06 Mar 2013 04:59 AM (UTC) by Nick Gammon
|
Message
| Like this:
<aliases>
<alias
match="quaff"
enabled="y"
send_to="12"
sequence="100"
>
<send>
-- This alias gets a potion from your backpack and drinks it.
Send ("get potion from backpack")
Send ("drink potion")
Note ("Watch your potions don't run out!")
</send>
</alias>
</aliases>
 |
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.
|
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Silencher
(55 posts) Bio
|
Date
| Reply #3 on Mon 11 Mar 2013 10:39 AM (UTC) |
Message
| Holy crap that's awesome. Nick, you're a god dude. Thanks very much. This is going to be way helpful in a lot of ways. I really appreciate it.
| 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.
16,081 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top