Page 1 of 1

Remind me about this trigger...

Posted: Fri Nov 17, 2017 5:56 pm
by noblestone
*Bob* tells the group 'jump'

I use ^(.*) tells the group 'jump'

but if someone else in group says the same thing it triggers off, i want to include * between names due to being leaders, groupies doesnt have * in between.

I am not sure about using this knowing it wont work like ^/*/(.*)/*/ tells the group 'jump'

correct me the fix as soon as possible. Thanks

Re: Remind me about this trigger...

Posted: Sat Nov 18, 2017 12:43 am
by Jor'Mox
I mean, your slashes are all off... but the basic idea should work fine. The pattern should be this: ^\*(.*)\* tells the group 'jump'

Alternately, since you are capturing the name of the person sending the tell, you could check in the trigger with the current pattern, to see if you find an * in the name, like this: string.find(matches[2],"*") -- which returns nil if it isn't found, and the location if it is found, so you can use this in an if statement directly.

Re: Remind me about this trigger...

Posted: Sat Nov 18, 2017 3:40 am
by noblestone
That worked, thanks!