Remind me about this trigger...

Post Reply
noblestone
Posts: 154
Joined: Sun Jul 29, 2012 6:50 am

Remind me about this trigger...

Post 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

Jor'Mox
Posts: 1101
Joined: Wed Apr 03, 2013 2:19 am

Re: Remind me about this trigger...

Post 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.

noblestone
Posts: 154
Joined: Sun Jul 29, 2012 6:50 am

Re: Remind me about this trigger...

Post by noblestone »

That worked, thanks!

Post Reply