Yeah, you can use an alias... something like this probably:

Code:
on *:text:*:#: {
  Watch $1-
  if ((what you're looking for isin $1-) && (%watch)) { do something }
}

alias Watch {
  if ($1- == original trigger) { set %watch 1 }
  else inc %watch 1
  if (%watch > 5) { unset %watch }
}


This should give you the idea of how to do it for what you need. It may need some tweaking depending on what you're doing, if course.