Im trying to make a speedwalk but my mud dosnt accept the command north how would i have it enter N instead of North when doing a speedwalk?
Alias help
Posted by Gurlag on Sat 02 Jul 2011 02:20 AM — 4 posts, 16,749 views.
I vaguely recall we had this problem before, but can't find the solution easily. This will do it, turn off the inbuilt speedwalks, and paste in this alias instead:
Basically this looks for a speedwalk starting with "#", and then uses the script routine EvaluateSpeedwalk to convert the speedwalk. It then takes the results from that and replaces "north" by "n" and so on. Then it echos on the screen where you are going, and sends the speedwalk. Just delete the two ColourNote lines if you don't want to see the speedwalk echoed.
<aliases>
<alias
match="#*"
enabled="y"
send_to="12"
sequence="100"
>
<send>
local s = EvaluateSpeedwalk("%1")
s = string.gsub (s, "%%a+", {
north = "n",
south = "s",
east = "e",
west = "w",
up = "u",
down = "d",
-- others here
} )
ColourNote ("cyan", "", "Speedwalking:")
ColourNote ("cyan", "", s)
Execute (s)
</send>
</alias>
</aliases>
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.
Basically this looks for a speedwalk starting with "#", and then uses the script routine EvaluateSpeedwalk to convert the speedwalk. It then takes the results from that and replaces "north" by "n" and so on. Then it echos on the screen where you are going, and sends the speedwalk. Just delete the two ColourNote lines if you don't want to see the speedwalk echoed.
how do i turn off the inbuild speedwalks?
World configuration -> Input -> Commands -> Speed Walking