thanks, that really helps, appreciate it. As I said, I'm new so all help is appreciated.

I am now attempting to check whether the person has already said a keyword. (text1, text2, text3 in your example) by writing it to a file and then re-checking it if they say it again, if it's already been said, do not increment the %count.

This works as what I've got, but the flaw is, someone could say 'text1' 'text2' 'text1' and increment the count that way, I need to store all said keywords into a file and then check them all everytime a new keyword is said.
does mIRC have arrays?

What I currently have is the text file keywords.ini populated with nickname=text1,text2

Is there anyway to search this line for the keyword using the comma as a delimiter.

Code:
on *:TEXT:&:#:{
  var %msg

  if ($1 == text1) { %msg = msg1 }
  elseif ($1 == text2) { %msg = msg2 }
  elseif ($1 == text3) { %msg = msg3 }
  else { return }
  msg # %msg 

  var %keyword = $readini(keyword.ini,#,$nick)
  msg # %keyword
  if (%keyword == $1) {
    msg # you already have this keyword! :(
  }
  else {
    var %count = $readini(cookies.ini,#,$nick)
    inc %count
    writeini cookies.ini # $nick %count
    writeini keyword.ini # $nick %keyword $+ , $+ $1
  }
}

Last edited by bugmenot; 09/03/14 03:13 PM.