Perhaps something like this:
alias talk {
if ($network == network name here) {
var %n = $scon(0)
while %n {
if ($scon(%n).network == second network name here) && ($scon(%n).network == third network name here) {
scon %n amsg Twitters | return
}
dec %n
}
}
}
Then type /talk to trigger the script