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
evil_choci
Newbie


Joined: 29 Feb 2004
Posts: 1
Location: United Kingdom

PostPosted: Sun Feb 29, 2004 12:34 am   

Variable Lists
 
Hi am trying to do a trigger / aliase for mudding. Got a friend variable which asignes name to a list. This is to trigger aliases off a tell for my friends. I need something in an aliase that checks who the tells from see if they are in the list if so then then act on that any help?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Feb 29, 2004 1:26 am   
 
First I would reccommend using the list variable in the trigger pattern for the tell. This is done by using braces in the pattern. For example:

#TR {^({@friends}) tells you, '(*)'$} {#NOOP friend that sent tell is in %1 and request is in %2--do something}

Next suggestion is use the %ismemeber function. An example of that would be:
#TR {^(%w) tells you, '(*)'$} {#IF (%ismember("%1",@friends)) {#NOOP tell was sent from friend in %1 and request is in %2--do something} {#NOOP wasn't a friend too bad}}

The first method is generally better.
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