|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Wed Apr 09, 2014 5:26 am
Now a trigger problem with stings |
So am I to assume at this point if it doesnt work just find a work around?
Here's the problem:
THIS WORKS FINE for dropping anything on my @list
1- #trigger {You drop ({@list})} {#sh %1}
But if I want to only trigger to things NOT on the list
2- #trigger {You drop ({^@list})} {#sh %1}
It breaks and does not fire.
#var list {a bag|a burlap sack|A chest}
You drop a paint brush
Should fire and #SHOW "a paint brush"
BUT it doesn't
Am I doing this right? |
|
_________________ megamog75
I will do this.Nothing in my life matters except this.No moment in my life exists except this moment.I am born in this moment, and if I fail, I will die in this moment. Raistlin Majere |
|
|
|
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Wed Apr 09, 2014 1:32 pm |
No you cant match lists like that as far as i know so you would have to do like
Code: |
#trigger {^you drop (*)} {#if (!%ismember(%1,@list)) {#show %1}}
|
|
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Wed Apr 09, 2014 8:33 pm |
Hadar, Thank you for getting back.
Yes that is exactly what I did also.
I just thought I was going nuts.
So why does it even have the option? I mean of coarse it wouldn't match, that's the point of the list.
That was rhetorical btw, lol |
|
_________________ megamog75
I will do this.Nothing in my life matters except this.No moment in my life exists except this moment.I am born in this moment, and if I fail, I will die in this moment. Raistlin Majere |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Apr 09, 2014 11:24 pm |
Does the regex version work as you expect it to? I know regex has a similar exclusion-list thing, but I've never tried using it before.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|