on &*:TEXT:*:#kitemaking:{
var %x $strip($1-) , %i $numtok(%words,44)
while (%i) {
if ($gettok(%words,%i,44) iswm %x) || ($gettok(%words,%i,44) isin %x) {
;;command here
return
}
dec %i
}
}
There's nothing wrong with the code that blk provided in the very first reply to your question. If it's not working, I suggest you tell us how you know it's not working, remembering that you can't initiate your own on text events. They have to be initiated by someone else.