 |
qdly Beginner
Joined: 26 Jun 2009 Posts: 13
|
Posted: Thu Jan 20, 2011 9:42 pm
wildcard string list to variable, in trigger, question |
that's another small problem i'm trying to solve, without result so far, mud ouput can be:
Quote: |
u feel good
u feel bad
u feel whatever... |
i need trigger that will fire for good and bad, but not for 'whatever...' and other output, and will let me use that word in script as %1, so, i thought i will try something like
Code: |
*u feel {bad|good}* |
it fires only when i want it to, but doesn't assign bad/good to %1, any suggestions?
Thanks
edit:typo |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Jan 20, 2011 10:11 pm |
read the help file on pattern matching.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
qdly Beginner
Joined: 26 Jun 2009 Posts: 13
|
Posted: Thu Jan 20, 2011 11:55 pm |
i'v actually checked it, but not much about it ther {a|b|c} is from that help u mentioned, that &{bad|good} will set %1 as 'u feel', not 'good' or 'bad' (v 2.37, maybe it was corrected?)
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Jan 21, 2011 2:05 am |
Quote: |
i'v actually checked it, but not much about it ther {a|b|c} is from that help u mentioned, that &{bad|good} will set %1 as 'u feel', not 'good' or 'bad' (v 2.37, maybe it was corrected?)
|
You know, when someone tells you to go do something it generally means they know the answer and where to find the info in the helpfile. This means that if you STILL cannot figure it out you need to reread the helpfile to figure out what you missed (hint: the answer is used in this very sentence). |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
DraxDrax Apprentice
Joined: 22 Mar 2009 Posts: 149
|
Posted: Fri Jan 21, 2011 4:01 am |
Enclose what you would like to have passed as an argument in brackets ()
In this case, that means the trigger pattern would be:
Code: |
u feel ({bad|good}) |
|
|
|
 |
qdly Beginner
Joined: 26 Jun 2009 Posts: 13
|
Posted: Fri Jan 21, 2011 10:37 am |
thanks :]
|
|
|
 |
|
|