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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Malach
Apprentice


Joined: 03 Nov 2007
Posts: 132

PostPosted: Sat Nov 03, 2007 6:42 pm   

[2.10] %numitem(Variable) causing errors when used in expression trigger
 
When I use the following: %numitem(@TestList) > 0 as part of my expression in an expression trigger and then modify TestList with adding and deleting items, it causes list out of bounds errors and then the expression trigger ceases working altogther.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Nov 05, 2007 5:31 pm   
 
I cannot reproduce this. Here is what I did:
Code:
TestList={a|b|c}
#TRIGGER (%numitems(@TestList) > 0) {#SHOW fired}
#ADDITEM TestList d
-> shows "fired"

Note that the name of the function is %numitems with an s at the end. But I'm not getting any bounds errors. So it probably depends upon the exact contents of your string list, and how you are modifying it. So you'll need to show some more details.
Reply with quote
Malach
Apprentice


Joined: 03 Nov 2007
Posts: 132

PostPosted: Mon Nov 05, 2007 5:57 pm   
 
Yeah, I'm starting to think it's just the string lists in general that the problem is with. I'm having a lot of problems when I start modifying them rapidly. I'll have to do some clean testing without my system at some point to try to figure out what it is.
_________________
Intel Core2 Quad CPU @ 2.4 GHZ with Windows Vista Home Premium and 2 GB Ram
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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