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 suggestion
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Rob
(12 posts) Bio
|
Date
| Fri 14 Sep 2001 07:12 PM (UTC) |
Message
| Okay, I'm sure you're sick and tired of me... but, I have somewhat of a request.
While triggers can't call aliases, it would be really nice if aliases could call aliases, for the following reason: (and really, the same would be true for triggers)
I asked how to insert a delay into things, and the current only way to effectively do what I want is to move everything into a script. This somewhat hampers the ability to add functionality to the client. As an example, with my wait function.. if it were frequently required, I could simply make an alias, call it /wait, pass it an argument which was a length of time, then have my other aliases, etc, call that alias to insert a pause into them. This makes it alot easier to make movement aliases (something which is required sometimes when it would take more effort then its worth to make a speedwalk). Since this is something that comes up very frequently for me, and I'm sure some others, it would be really nice. Not that I have a problem writting a script to do it, but it's annoying to have to generate speedwalks using the mapper, then pulling them out and putting them into a script, its tedious. (not to mention that _all_ my speedwalks would have to be pulled out, yikes. I would run into this problem with nearly any lpmud, most likely)
Anyways, it might not be feasible, but hey, can't blame a guy for trying :) | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 15 Sep 2001 01:39 AM (UTC) |
Message
| How often do you need to do the wait? Can you give an example?
Turning a speedwalk into a script shouldn't be a big deal, as you can use EvaluateSpeedwalk to convert a speedwalk into commands, eg.
world.send world.EvaluateSpeedwalk ("4n3esuwdLW")
You could also make a generalised script that does a delay, and just use that when you need it.
For example:
sub DoWait (seconds, command)
World.addtimer "timer_" & world.GetUniqueNumber, 0, 0, seconds, command, 5, ""
end sub
Then if your alias script wants to go a certain number of steps, pause and then do some more, it could look like this:
sub On_MyAlias (strName, strOutput, wildcards)
world.send world.EvaluateSpeedwalk ("4n3esuwdLW")
DoWait 10, world.EvaluateSpeedwalk ("3s4e2n")
end sub
This alias would speedwalk the first set of directions, wait 10 seconds, and then do the second set.
That isn't particularly tedious to code.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Thu 03 Apr 2003 05:33 AM (UTC) |
Message
|
Quote:
While triggers can't call aliases, it would be really nice if aliases could call aliases, for the following reason: (and really, the same would be true for triggers)
Implemented in version 3.35 - see the release notes.
|
- 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.
10,474 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top