I've never messed around with $tip code before, but this seems to work from my testing. Replace #kindone with your channel.
on *:text:*:#kindone:{
if (($chan != $active) || (!$appactive)) {
return $tip(name, $chan, $+(<,$nick,>) $1-)
}
}
on *:action:*:#kindone:{
if (($chan != $active) || (!$appactive)) {
return $tip(name, $chan, * $nick $1-)
}
}
Will trigger if you are looking at another channel/query/status window ($chan != $active) or if you tab out (!$appactive).
https://en.wikichip.org/wiki/mirc/identifiers/$tip
https://en.wikichip.org/wiki/mirc/identifiers/$appactive