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
Ill
Newbie


Joined: 22 Sep 2003
Posts: 4
Location: USA

PostPosted: Tue Sep 23, 2003 2:07 am   

problems
 
I have a question.
I'm making a scanning trigger.. like to kill people..
the deal is that, I scan my area.. and get a response like..

::
You quickly scan the area.
You see Stau, Heartsbane, a mangy mutt, Blue, Arna, the blue dragon highlord, the blue gingwatzim and a smurf close by east.
You see the janitor, the green gelatinous blob, the cityguard and the postmaster close by south.
You see DogBoy by west.
::

how do I pick say.. Arna out of that mess of folks?


like usualy I have it send a message to my mud.. like if it was the DogBoy, then it would send ss1 dogboy.. and my alias would be "ss1" w;stun %1;backstab %1

how do I pick him out of a crowd?
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Tue Sep 23, 2003 5:02 am   
 
#trigger {Arna} {ss1 Arna}
Reply with quote
Ill
Newbie


Joined: 22 Sep 2003
Posts: 4
Location: USA

PostPosted: Tue Sep 23, 2003 7:05 am   
 
ummm that's what I already have.. see what if he was like.. off to the south, or what if he was like shouting something? thanks for the effort tho.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Sep 23, 2003 3:36 pm   
 
Is it Arna or Dogboy you're after? Anyway, just change the variable if I pick the wrong one.
#VAR target {Arna}
#TR {^You see* @target* ({close by|off to the}) (%w).} {#IF ("%1" = "close by") {%2;stun @target;%reversedir( %2)} {%2;%2;stun @target;%reversedir( %2);%reversedir( %2)}

Naturally, you'll need to include all the distance modifiers you want to use and the correct number of moves for each one.
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