|
msmamet Newbie
Joined: 14 Jan 2004 Posts: 2
|
Posted: Wed Jan 14, 2004 1:54 pm
Not Moving when Map in Follow Mode |
I have a map and am in follow mode. Sometimes when I spam walk somewhere, I run into something unexpected (a mob hits me, or a door is closed, or i run out of movement points). Even though I'm not moving, my spamwalk commands are going through and the mapper keeps following them. Is there a trigger I can create that will undo a move on the map?
|
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Wed Jan 14, 2004 2:26 pm |
Hm, I have something that might work, if you get some message after you move a direction. First, you have to disable the Directions class.
#oninput {({n|s|w|e|u|d})$} {#var directions {%additem(%1,@directions)}}
#trigger {Move Message} {#move %item(@directions,1);#delnitem directions 1}
#trigger {Invalid move messages} {#delnitem directions 1} |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Sat Jan 17, 2004 8:07 am |
I have something simpler... just use the "#NODIR" command.
#TR {invalid move message}{#NODIR}
Works for me, at least. |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Sat Jan 17, 2004 11:28 am |
That would assume he's typing a new direction only after the previous one has gone through and returned mud output, wouldn't it?
If he got an invalid move direction in the middle of the speedwalk, it would prevent the last speedwalk direction from moving the mapper, but not the one that he would want. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Jan 17, 2004 6:29 pm |
This is a risk you run when using Fast mode. You might need to use Safe or even Slow mode.
|
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Sat Jan 17, 2004 7:00 pm |
I cannot see why my script would not work to eliminate this risk when using fast mode, if you get some message after moving/not moving.
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Jan 17, 2004 7:11 pm |
Yes, it does work, I was replying directly to msmamet's orginal message. However, your script does not provide for the . speedwalk syntax or double-clicking a room in the mapper.
|
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Sat Jan 17, 2004 7:54 pm |
Good point. The #oninput would have to be changed into an alias for each of the 6 directions, into something like this:
#alias u {#var directions {%additem(u,@directions)};#T- directions;u;#T+ directions} directions
#alias d {#var directions {%additem(d,@directions)};#T- directions;d;#T+ directions} directions
#alias w {#var directions {%additem(w,@directions)};#T- directions;w;#T+ directions} directions
#alias e {#var directions {%additem(e,@directions)};#T- directions;e;#T+ directions} directions
#alias n {#var directions {%additem(n,@directions)};#T- directions;n;#T+ directions) directions
#alias s {#var directions {%additem(s,@directions)};#T- directions;s;#T+ directions} directions |
|
|
|
|
|