|
AaroNRelentlesS Newbie
Joined: 20 Apr 2005 Posts: 2
|
Posted: Thu Apr 21, 2005 12:17 am
path using variables and triggers - cant figure it out... |
okay, this is the trigger im trying to write, and just cant make it work.
i have the variable @go
i have an alias set up so i type "go n" and it will "#VAR go n"
it fires when something dies. so if im killing gryphons, i kill a gryphon, autokill another, until theyre all dead, when all dead, i get "That person is not here", when that line pops, a trigger fires off of it to enter @go;kill @zombie (which is gryphon, in this case)
now, this is all fine and dandy for hunting one room at a time, but im trying to get it to recognize my movement character within the variable, so, im fighting a gryphon, i type "go .nnen" that will set my var @go to ".nnen", and when the gryphon is dead, the "not here" trigger will fire, and send it to the mud. however, the problem is, its not recognizing the movement char, and sending ".nnen" straight to the mud, so all i get is "Pardon?"
ive tried everything i can think of personally. does anyone know of a way so that i can type "go .<dirs>" and when there are no more mobs in the room (as described above) my char will run that path, then kill @zombie (also, as descriped above)?
please help, this has been driving me NUTS. |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Thu Apr 21, 2005 1:51 am |
I tried the same thing awile back with paths. IE using #STEP and #OKs and #STOP. Did not work as well as I had hoped actually. Occationally during a fight I would automatically flee to a different square. If not everything was a dream. If so my normal mapper triggers detected room movement and finished out the path regardless that it was out of sync with the mapper and mud...
My current strategy works very well so heres what I did. Create a list variable with all your directions (possibly via an alias). When you need to move pop a variable from the front and move that direction. Do your normal fighting triggers and if you get the "That person is not here", repeat the process until your done.
To start off, something like this should work:
#alias go {#VAR go {%subregex("%1","(.)\B","%%1|")}}
Usage:
go nsennnnw
#VAR go=n|s|e|n|n|n|n|w |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Apr 21, 2005 3:52 am |
Have you tried #exec/%exec()? Or, perhaps instead of using the movement character, try #WALK or something similar?
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
luggage Novice
Joined: 20 Jul 2004 Posts: 38 Location: Australia
|
Posted: Fri Apr 22, 2005 12:56 pm |
Well, I had a quick look at the path features, and what you can do is send a path (.ne2sw) to either #STEP or #SLOW. Couldn't find out how to do it with fast speedwalking.
Basically save the path into a variable, like:
#ALIAS go {#VAR testpath {%1}}
then you can:
#SLOW @testpath
#STEP @testpath
And you should get run straight to the other room.
Luggage |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|