Speedwalk/run in any direction until you cannot

December 08, 2011 07:56PM
This is a bit more involved. Once set up, you can use an alias to walk/run in any direction until you hit a "wall" or closed door. It does *not* involve spamming commands, so if you get in a fight you should (mostly) be fine. However, you still need to use it with care and put in some safeguards and cancellation options.

First, you'll need to create several triggers. There's probably a better way than multiple triggers, but it was faster for me to do it this way versus parsing an exits line. Here's the first one.

Trigger name:


Trigger text (Send to Script):

if speedwalk==1 and speeddir=="%2" then
if "%1" == "[" then -- don't walk into closed doors

Options: Keep Evaluating, Regular Expression

Now you'll want to copy and paste this trigger five times and then go back and change the names of the other five. They should be:


For good measure, add a trigger with the name:

Alas, you cannot go that way.

And the text (Send to Script):


Keep in mind this script is smart enough that you will stop speedwalking when the exit isn't visible in [Exits] or it is closed, but we want the "Alas" trigger there as a safeguard.

Now that the triggers are in place, we need an alias or two. The first one will be the walk alias itself. I'm using w as the alias letter, so I get commands like ww for speedwalk west, wn, ws, etc. The alias name should be:


And the text (Send to Script):

if speedwalk==0 or speeddir~="%1" then
speeddir="%1" -- set direction
if speedwalk==0 then
speedwalk=0 -- toggle off

Check the Regular Expression option. So what this will do is start you walking in the direction you specify and rely on the triggers to keep you walking. What happens if you suddenly need to stop? GOOD question. If you are like me and you leave the previous command in the MUSHclient input, all you need to do is push ENTER when you need to stop. If you have a good reaction time, you will typically only overshoot by one room. IF YOU START FIGHTING, you will want to stop the speedwalk so you don't start walking once you move out of the room. Push ENTER to cancel the speedwalk before inputting your first command.

There are two other safeguards we should implement. First, let's add a generic line to disable speedwalk with the use of some common commands. Add the alias:


With the text:


Check the Regular Expression option. What this will do is cancel speedwalk with a few of the simply 1-letter commands, as well as enable you to do things like ww;n;ww. Notice that if you type ww;ww the second ww will simply cancel out the first. Logically, you shouldn't be able to run west any more if you hit a wall. BUT, if you just moved north, the speedwalk is cancelled and you can go ww again.

The second safeguard you can implement is one that reads your prompt's position and immediately cancels speedwalk if it is "fighting". I've done this, but my prompt reading scripts are a subject for another day.

One other thought I had was adding a timer that automatically cancels speedwalk when it hasn't seen an exits line for 2-3 seconds. But so far what I have is working fine as it is.

If you want to have fun testing this, role a new character and type wd.

Edited 2 time(s). Last edit at 12/08/2011 08:44PM by joecloud.
Subject Author Posted

MUSHclient Tips and Tricks

joecloud December 08, 2011 03:18PM

Re: MUSHclient Tips and Tricks

sketch219 January 27, 2012 06:22PM

Unlimited targeting system

joecloud December 10, 2011 06:41AM

My MUSHclient triggers and aliases are these

DurNominator(VIP) December 09, 2011 11:14AM

Posting my autoexplore here since I can't get a plugin to work

reject-o December 09, 2011 06:42AM

Speedwalk/run in any direction until you cannot

joecloud December 08, 2011 07:56PM

Improved Exits Line

joecloud December 09, 2011 05:30AM

*No way! You are still fighting!

joecloud December 08, 2011 09:02PM

Timer safeguard (recommended addition)

joecloud December 08, 2011 08:15PM

Recommended becomes somewhat required

joecloud December 08, 2011 08:54PM

Prefix any command by where

joecloud December 08, 2011 06:02PM

Add target to any command (single targetting system)

joecloud December 08, 2011 05:52PM

Important fix

joecloud December 10, 2011 06:28AM

Digit Aliases for Quick Shortcuts

joecloud December 08, 2011 05:29PM

Small bug fix

joecloud December 09, 2011 03:13PM

Heh I've actually been working on some stuff for MUSHClient

reject-o December 08, 2011 03:57PM

I'd like to see some of this...

joecloud December 08, 2011 05:06PM

Here ya go..

reject-o December 09, 2011 06:08AM

Use Directions as Aliases

joecloud December 08, 2011 03:44PM

Better Command Stacking (Support Aliases)

joecloud December 08, 2011 03:37PM

OK, the forums stripped the space out of "space star." Don't miss the space. (n/t)

joecloud December 08, 2011 05:11PM

Look and Consider

joecloud December 08, 2011 03:30PM

I use something similar to this - careful if you're playing a transmuter!

Coumidin December 08, 2011 03:55PM

Yeah. I popped out deep in Aran-Gird's dungeon

daurwyn(VIP) December 12, 2011 09:55AM

Slap Self Solution

joecloud December 08, 2011 05:09PM

Just use Send instead of Execute to avoid other aliases firing, it takes less script execution time too (n/t)

Mort December 09, 2011 03:47AM

Good point -- I'm just in the habit of using Execute because I usually want other aliases to fire. In this case you don't. (n/t)

joecloud December 09, 2011 05:31AM

Quick Look/Scan/Unlock/Open

joecloud December 08, 2011 03:24PM

Combo Unlock and Open

joecloud December 08, 2011 03:38PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 32
Record Number of Users: 59 October 25, 2015
Record Number of Guests: 143 August 28, 2015