Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: 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 Smile
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
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: 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}}
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: 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 Smile
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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net