Hm... it's funny because I've never seen an event inside a script. I don't think you can do that.

Maybe making the on text commands different commands?