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
daemoan
Beginner


Joined: 04 Feb 2008
Posts: 23

PostPosted: Tue Feb 12, 2008 7:25 am   

Sticky Hush Hush Question
 
Embarassed
If This is my pattern:
Code:
 [[North]] @target

witch works only when I have a person target

and this is my trigger:
Code:
 stampede @target north


if tryd this for pattern
Code:
 [[%w]] @target


but it doest not work...... therefore I must have one for each direction atm
this is my problem

my trigger feels the need to fire in random directions, random 2 -4 times including the one its suppose to....

I was also looking into this {nocr} Thing, I couldnt get that to work well wither with the trigger....
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue Feb 12, 2008 7:34 am   
 
#TRIGGER {~[~[(%w)~]~] (@target)} {stampede %2 %1}

But why the "hush hush"? Are you trying to bot when your MUD says it's not allowed? Not cool at all.
Reply with quote
daemoan
Beginner


Joined: 04 Feb 2008
Posts: 23

PostPosted: Tue Feb 12, 2008 7:42 am   LOL
 
Naw, not a bot more like an auto attack...
I just thought the name was catchy...
you?
and on the [[North]] the brackets I had to double up for zmud to just reconize [North] does that still factor into your equation?
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue Feb 12, 2008 1:53 pm   
 
If the MUD output is only [North], then you'll need to change it to:

#TRIGGER {~[(%w)~] ({@target})} {stampede %2 %1}

It's a slight change from the first one. I realized I forgot to surround the @target in brackets. That should work for you. And auto-attacks can be considered bots, especially if used with scan. :P

Charneus
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Tue Feb 12, 2008 5:48 pm   
 
You only need the braces around the @target in the pattern if it's a list of targets, which it doesn't seem to be, given your previous example with stampede @target - if it is a list, though, go ahead.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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