|
aslanthekat Novice
Joined: 17 Sep 2007 Posts: 44 Location: Missouri
|
Posted: Mon Jul 09, 2012 4:39 pm
Can this be done? |
I noticed that you can use string list vars in the pattern of triggers, so I was wondering...
Can I use script 1, to get the same result as script 2
Code: |
1:
#tr {{@greet} tells the group 'hi'} {gt hi}
2:
#tr {(%w) tells the group 'hi'} {#if (%ismember(%1,@greet)) {gt hi %item(@greet,%ismember(%1,@greet))}} |
Don't ask me why I want to do it this way, I have no reason. Just curious if it can be done. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Jul 09, 2012 4:44 pm |
You can.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Mon Jul 09, 2012 4:44 pm |
you mean like this?
Code: |
#tr {^({@greet}) tells the group 'hi'} {gt hi %1}
|
|
|
_________________ if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Last edited by hadar on Mon Jul 09, 2012 4:44 pm; edited 1 time in total |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Mon Jul 09, 2012 4:46 pm |
Try..
#TR {({@greet}) tells the group 'hi'} {gt hi %1}
.ninjad.. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
aslanthekat Novice
Joined: 17 Sep 2007 Posts: 44 Location: Missouri
|
Posted: Mon Jul 09, 2012 4:58 pm |
I swear I tried that, but lo and behold it does work.
Thanks. |
|
|
|
|
|