Help - Search - Members - Calendar
Full Version: Dumb triggs
BatMUD > BatMUD forums > Regen fodder
Tim
The missing ^


;; That really HURT!
/def -F -p5 -abuCred -mregexp -t"That really HURT!" cbt_really_hurt= \
@party report That really HURT!


The result:

Ghoul chews you.
That really HURT!
hp: 233 (588) [-355] sp: 467 (467) [] ep: 250 (295) cash: [] exp: []
You flee in terror!
You cannot leave, you have been AMBUSHED.
Your legs refuse to obey you!
You cannot leave, you have been AMBUSHED.
Ghoul is in excellent shape.

Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
...
You flee in terror!
...
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!
Tim [report]: That really HURT!

... [continuous spam while running around a bit]

/quit

Ooga
QUOTE(Tim @ Feb 14 2007, 04:04 AM) [snapback]731[/snapback]
The missing ^
;; That really HURT!
/def -F -p5 -abuCred -mregexp -t"That really HURT!" cbt_really_hurt= \
@party report That really HURT!
The result:


Actually, there's a few things you can do to improve that trigger:
* The obvious missing ^
* A $ to match end of pattern can actually speed up the regular expression.
* Change it to -mglob instead of -mregexp, then you don't need to have the ^ or $.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.