|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: Sat Oct 13, 2007 4:24 am
#walk interupted. #abort #stop #pause trigger |
I have made several triggers for whenever my #walk is interupted to stop zmud from sending in anymore commands.
But none of them work when they are in a trigger but the trigger is firing. Issues anyone? I may be wrong about #pause, but #stop and #abort don't work.
#trigger {(*)is here, fighting YOU!$} {#echo ABORT;#abort} |
|
|
|
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: Sat Oct 13, 2007 2:09 pm |
Use #NODIR. #PAUSE and #ABORT are different, although I would have expected #STOP to work.
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Mon Oct 15, 2007 3:51 pm |
Heh. Depends on what you're using it for. On a MUD I used to play, I had a path walker for me. It'd walk to every single room with a mob and I could choose to kill it or ignore it. The script went like this:
Code: |
#PATH exppath1 {3n4es5e3n ... #T- {No monster here!}}
#ALIAS exp1 {#T+ {No monster here!};#SLOW exppath1;#STEP;#PAUSE;consider monster}
#TRIGGER {No monster here!} {#STEP;#PAUSE;consider monster}
#TRIGGER {drops dead before you.} {consider monster}
|
What that did was start me on a path, and every room, it would consider monsters. If there were no monsters to be found, it'd move on to the next room. If there was something in the room, then the path would halt and wait for me to type in some command (usually "backstab monster"). After the monster was dead, it'd resume the path. Change it to your liking. Or if you give something more to work with, I can try to help out even further.
Charneus |
|
|
|
Progonoi Magician
Joined: 28 Jan 2007 Posts: 430
|
Posted: Mon Oct 15, 2007 3:59 pm |
Quote: |
Charneus
__________________
I do not support bot making.
|
*wink Charneus* Sorry, couldn't help myself
Prog |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Mon Oct 15, 2007 4:03 pm |
progonoi wrote: |
Quote: |
Charneus
__________________
I do not support bot making.
|
*wink Charneus* Sorry, couldn't help myself
Prog |
Haha. I figured that would come up. However, my script was not a bot. A bot is completely automated. Mine, I still had to enter in commands to kill the monster. Also, if you'll notice the second part, it -does- say I will help build a script that could ultimately become a bot. ;) Disclaimers everywhere!
Charneus |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Oct 15, 2007 5:00 pm |
Hoisted by his own petard! Watch him squirm!
Back on topic, I don't think #nodir is what you're after - that just removes the topmost direction from the mapper queue (if it's not empty), and #abort is used to stop the execution of a script, not for stopping paths. Your alias #echo Abort;#abort echoes the string "Abort" and then aborts the alias, which would of course have exited normally anyway.
#pause is what you're after, as in Charneus' example. |
|
|
|
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: Mon Oct 15, 2007 7:22 pm |
Well I suggest he tries #NODIR, since he's already tried the other ones. I use #NODIR with speedwalking and it works just fine for me.
|
|
|
|
|
|