Stacked movement (for a lack of a better term?)
Stacked movement (for a lack of a better term?)
So I'm a recovering zMUD user, and I've figured how to rekey my numpad to move directionally. But I've encountered another issue: I used to be able to type .20n3ws and it would move me 20 rooms north, 3 west, one south. (I believe it only worked for the four cardinal directions, and up and down... could be wrong though.) Is there some sort of function in Mudlet that also does this, or some script I can find to do so? I honestly have no idea how to even start searching for it...
I was sane once. I got better.
Re: Stacked movement (for a lack of a better term?)
make an alias with the pattern
that runs the code It is not exactly the same .ne will try to go northeast once, instead of north,east, so in your case, instead of writing .20n3ws you have to separate the direction by space or commas: .20n 3w s
If you need a delay between each step you can change the code intoto get a 0.5 second delay
Code: Select all
^\.(.*)$
Code: Select all
speedwalk(matches[2])
If you need a delay between each step you can change the code into
Code: Select all
speedwalk(matches[2],false,0.5)
Re: Stacked movement (for a lack of a better term?)
Um, I assumed you meant to put ^\.(.*)$ in the pattern and speedwalk(matches[2]) for the substitution? I typed .5n and got an input of speedwalk(matches[2]), which resulted (as I'd expect) as a What? in the mud.
I was sane once. I got better.
Re: Stacked movement (for a lack of a better term?)
No, not in the substitution, but in the big box below it where it says "Enter your lua code..."
Re: Stacked movement (for a lack of a better term?)
Well, now that you clarified, it works. But there's no "enter your lua code" notations... just saying.
I'm coming from a very linear zMUD backround (and a mud that forbade speedwalking before I started playing again when they relaxed their rules), and completely unfamiliar with this whole setup; I'm relying on you folks to explain how this works. And to be honest, most of what I learned from coding in zMUD was what others told me.
But now that you've clarified, my skipping around works just dandy. Thank you!
I'm coming from a very linear zMUD backround (and a mud that forbade speedwalking before I started playing again when they relaxed their rules), and completely unfamiliar with this whole setup; I'm relying on you folks to explain how this works. And to be honest, most of what I learned from coding in zMUD was what others told me.
But now that you've clarified, my skipping around works just dandy. Thank you!
I was sane once. I got better.
Re: Stacked movement (for a lack of a better term?)
Really? Might be a difference from my version then, anyway, glad that it works for you now!tincan wrote:Well, now that you clarified, it works. But there's no "enter your lua code" notations... just saying.
-
- Posts: 334
- Joined: Thu Mar 05, 2015 2:53 am
Re: Stacked movement (for a lack of a better term?)
Here's one i've used for quite awhile - It doesn't use the speedwalk command btw, and I have an alias to capture individual movement (you may wish to change expandAlias to send)
tintin . speedwalk
Alias: ^[.]([0-9nsweudNSWEUD]+)
tintin . speedwalk
Alias: ^[.]([0-9nsweudNSWEUD]+)