|
Ill Newbie
Joined: 22 Sep 2003 Posts: 4 Location: USA
|
Posted: 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? |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Tue Sep 23, 2003 5:02 am |
#trigger {Arna} {ss1 Arna}
|
|
|
|
Ill Newbie
Joined: 22 Sep 2003 Posts: 4 Location: USA
|
Posted: 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.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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. |
|
|
|
|
|