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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
nostra
Wanderer


Joined: 23 May 2001
Posts: 68
Location: Sweden

PostPosted: Thu Aug 21, 2003 4:22 pm   

%ismember question
 
I just don't understand why this trigger refuse to work, someone please help me before I'm going insane [}:)]

Problem:
My %ismember trigger only fires on a stringlist but not on a record variable list.

Example:
Pattern: (%w) is here
Trigger: %ismember( %2, @temp_list)

@temp_list (as a stringlist)
name1
name2
name3

If I receive mud output: name1 is here the trigger fires

@temp_list (as a record variable)
name1 location1
name2 location1
name3 location4

The trigger will NOT fire (same mud output).

Any ideas why[?] *sigh*
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Aug 21, 2003 5:40 pm   
 
%ismember is a list function. It works with list-variables because they are lists. It doesn't work with record-variables, because they aren't lists.

%iskey is a database (record) function. It works with record-variables because they are records. It doesn't work with list-variables, because they aren't records.

Use the appropriate function.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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