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


Joined: 02 Jul 2002
Posts: 2
Location: USA

PostPosted: Tue Jul 02, 2002 8:24 pm   

Fooled by emotes!
 
Hi,

I was hunting a very annoying player who stole from me the other day. I thought he would use a common huntbreak and set a trigger to chase him through it. The problem
is that he emoted the break first and set off my trigger. I ran into the break and he mocked me for the next hour for being such a newbie. The syntax is:

Huntbreak: X fiddles with something on the wall and disappears!

I saw >X fiddles with something on the wall and disappears!

Which set off my trigger: fiddles with something on the wall and disappears! todo push brick

I can't figure out how to make my trigger discern the difference between the emote and the real action!

Shady
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Jul 02, 2002 11:07 pm   
 
Use the fact that the huntbreak has the word Huntbreak in fron to restrict your trigger. You can use the following pattern:
^Huntbreak: %w fiddles with something on the wall and disappears!

Also, if the name can be more than one word, then this should do:
^Huntbreak: * fiddles with something on the wall and disappears!

Kjata
Reply with quote
seamer
Magician


Joined: 26 Feb 2001
Posts: 358
Location: Australia

PostPosted: Tue Jul 02, 2002 11:11 pm   
 
if emotes are prefaced with >,

#act {^~>(%w) fiddles with something on the wall and disappears!$} {say oh, you CHEATER %1!;#abort 1}

edit: changed < to >
Why oh WHY did I have pass door on...
Reply with quote
Shady
Newbie


Joined: 02 Jul 2002
Posts: 2
Location: USA

PostPosted: Wed Jul 03, 2002 1:01 am   
 
Sorry Kjata, the word Huntbreak doesn't preface the other text, i was just labeling the line. So the emote is:

>JoeBob fiddles with something and disappears!

Whereas:

JoeBob fiddles with something and disappears!

Is the actual semote I want to trigger.

So the question is, how do i set a trigger that will fire in the second case and NOT in the first?

Thanks again for your thoughts.

Shady
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Jul 03, 2002 6:27 am   
 
quote:

Sorry Kjata, the word Huntbreak doesn't preface the other text, i was just labeling the line. So the emote is:

>JoeBob fiddles with something and disappears!

Whereas:

JoeBob fiddles with something and disappears!

Is the actual semote I want to trigger.

So the question is, how do i set a trigger that will fire in the second case and NOT in the first?

Thanks again for your thoughts.

Shady



To have it fire in the second case but not the first case, use the beginning-anchor character, ^. Unless you have a problem with prompts, this is the easiest thing you can do to fix your problem.

li'l shmoe of Dragon's Gate MUD
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Jul 03, 2002 6:36 am   
 
As Kjata and Matt pointed out, anchoring is very important.

I'd humbly suggest to most folks that they
should make their triggers as explicit
(well defined) as possible and anchor if possible. Even check for a blank line
where possible to give credibility to the
preceeding line. Saves you grief.

Failing that, you can be spoofed all over
the place, especially if you are in PK and
have a mud with dropable illusions.

Ton Diening
Providing untested answers that tend to be
more complicated than others.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Jul 03, 2002 1:01 pm   
 
Just in case, in summary, the pattern should then be:
^%w fiddles with something and disappears!

maybe even:
^%w fiddles with something and disappears!$

^ matches the beginning of a line
$ matches the end of a line



Kjata
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Sat Jul 13, 2002 3:51 am   
 
are the messages and the emotes the same colors? if not make it color dependant
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