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
➜ Suggestions
➜ Alias/Trigger suggestions
|
Alias/Trigger suggestions
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Poromenos
Greece (1,037 posts) Bio
|
| Date
| Wed 10 Jul 2002 06:18 PM (UTC) |
| Message
| | I have some suggestions to make. First of all, aliases should evaluated in triggers, at least by option. For example, if I have a trigger, it would be nice if the trigger could send an alias without having to paste it all in the trigger again. Also, it would be nice if we could send text from one window to the others, to control characters. For example, using a customized string ("#" in our example) would send something to window 2. I.E. this string "#2 bow" would cause the command "bow" to be sent to the second window (aliases evaluated). Also, the text "# bow" would send "bow" to all windows.I have some suggestions to make. First of all, aliases should evaluated in triggers, at least by option. For example, if I have a trigger, it would be nice if the trigger could send an alias without having to paste it all in the trigger again. Also, it would be nice if we could send text from one window to the others, to control characters. For example, using a customized string ("#" in our example) would send something to window 2. I.E. this string "#2 bow" would cause the command "bow" to be sent to the second window (aliases evaluated). Also, the text "# bow" would send "bow" to all windows. |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | | Top |
|
| Posted by
| Magnum
Canada (580 posts) Bio
|
| Date
| Reply #1 on Wed 10 Jul 2002 09:36 PM (UTC) |
| Message
| All of that is possible if you are willing to implement scripting.
1. An alias and trigger can call the same script subroutine.
2. It is possible to use special script functions to send text to whichever window you want. It would not be too difficult to write a script to respond to a single alias, in the manner you suggested. In order to use the alias in any world, all of your worlds would have to have the same subroutine in thier script file. This is also easier to implement in the latest beta version, as a plugin. |
Get my plugins here: http://www.magnumsworld.com/muds/
Constantly proving I don't know what I am doing...
Magnum. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Wed 10 Jul 2002 11:07 PM (UTC) |
| Message
| There is a simple solution to your first suggestion, that does not even require scripting.
First, set up the "shared" thing that the alias(es) and trigger(s) are going to do as a *variable*.
eg. variable: whattodo = "get golden wand"
The alias can then send: @whattodo
(with expand variables checked).
Similarly with the trigger. That way any common things can be defined once and used in many places. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Poromenos
Greece (1,037 posts) Bio
|
| Date
| Reply #3 on Wed 10 Jul 2002 11:30 PM (UTC) |
| Message
| | That won't work, Nick... I have a 50 line speedwalk alias... Imagine getting it on a variable. |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #4 on Thu 01 Aug 2002 01:09 AM (UTC) |
| Message
| | What is the problem with that, exactly? Variables can be multiple lines. However I think there might be a problem that variables are not evaluated as speedwalks, which is a bug. I'll fix that. |
- 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.
12,363 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top