Ok so I am trying to match see if the text keyword is matched the message is shown to the channel, IF a keyword is matched then this also updates a file called cookies.ini, with the persons $nick and increments the count stored against the persons $nick.

I have looked into doing this with /goto and variables, except the if isn't picking up the matchtext variable and then comparing it in the if. As the above post suggested, I literally picked up mIRC scripting yesterday evening, so everything I've written and learned so far if from wiki and googling.

Quote:
on *:TEXT:%keyword:#:{
if ($1 == bighorner) { /goto bighorner }
:bighorner
/msg $chan Looks like meat's back on the menu, boys!
/goto count
return
:count
inc %count
writeini cookies.ini $chan $nick %count
return
}

Last edited by bugmenot; 08/03/14 12:00 PM.