[TF] refined speedwalk script?
Brought to you by:
kenkeys
|
From: kevin at sb.o. (K. Ballard) - 2003-04-03 05:25:34
|
Before seeing speedwalk.tf I wrote my own speedwalk stuff from scratch, with the command called /go. It supports single-character paths like eeensw (no numbers to designate multiple ones, though, so the speedwalk path n3es3en would be neeeseeen) as well as multi-character paths separated by a non-word character (i.e. things like ne n ne n e e s, or south-west-open door west-west-north). It has a complete description of valid paths in the comments. It also supports saving paths, as well as writing paths to file and loading them again. I like it very much, but since I stopped doing MUDs I haven't used it anymore. It's attached. I hope it's useful! BTW, it can easily be used to automate other tasks as well. If you want to have a macro to create a magic mushroom and eat it, simply save a path like ;cast 'magic mushroom';get mushroom;eat mushroom and save it with the name mushroom, then typing /go +mushroom will create a mushroom and eat it. If you notice, the first character is a ;. That's because the commands themselves contain non-word, non-space characters (single-quote to be specific) in the first command, so without the semicolon (the separation char) first the path would be split by single-quotes. For a more specific description of how it works, it looks for the first non-alphanumeric/non-underscore/non-space character it can find for the separation character. If there are none, it uses spaces (so you can have spaces in commands easily, but you can also use it as the separation character easily). If there are none, it assumes the path is made up of 1-character commands, like neswud and splits it up like that. A full description is in the comments. Note: I called this go.txt instead of go.tf because the .txt ending makes it easy to distinguish the commands I wrote from the built-in commands. Just in case you were wondering :) -------------- next part -------------- Skipped content of type multipart/appledouble-------------- next part -------------- On Wednesday, April 2, 2003, at 09:21 PM, T.C. Shaddox wrote: > Hello, > ? > I am extremely new to TinyFugue and extremely new to writing and > editing script. Not to mention that I havd done close to no > programming at all. > ? > I was just wondering if anyone has refined the speedwalk.tf file to > include semidirectional commands like sw nw ne etc. > ? > As it is with the 4.01 release the speedwalk will only work with a the > straight north west east and south and that just wont work on many > muds. Thanks and hey great program, great mail list. -- Kevin Ballard ke...@sb... http://www.tildesoft.com |