Thanks guys! Didn't work at first, but I'd missed off a closing bracket
Heres the finished script incase anybody is interested...
EDIT - Start the message with a space if you do not want it to be sent using the script to add colour. Also, messages that start with "/" have colours disabled so you can still use commands. I caught that little glitch when I tried to get into my preferences
Before the colour was the same number as the i variable in the For loop