Ah, I see. You want it to trigger when someone mentions your nickname.
on *:text:*YOURNICKHERE*:#: echo 4 #YOURCHANNEL $nick mentioned me in # saying $1-
You can enter a shorter version of your nick as well. People sometimes refer to me as "Nill" which means I'm using "* Nill*" to match my nickname. The * means that it should match any text, but since there's a space between the * and N it won't trigger on "Snill" for instance. It will however trigger on "Nills, Nille, Nillen, Nillie" since the * is bound to the last L in my case.
Just go ahead and paste this in your scripts editor in the remote section. Alt + R to open it.