Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: 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}
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Sat Oct 13, 2007 2:09 pm   
 
Use #NODIR. #PAUSE and #ABORT are different, although I would have expected #STOP to work.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Mon Oct 15, 2007 3:59 pm   
 
Quote:

Charneus

__________________
I do not support bot making.


*wink Charneus* Sorry, couldn't help myself Twisted Evil


Prog
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon Oct 15, 2007 4:03 pm   
 
progonoi wrote:
Quote:

Charneus

__________________
I do not support bot making.


*wink Charneus* Sorry, couldn't help myself Twisted Evil


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
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Mon Oct 15, 2007 5:00 pm   
 
Hoisted by his own petard! Watch him squirm! Twisted Evil

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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net