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
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Sat Sep 27, 2003 4:37 am   

Pin pointing who is who in the @friends list...
 
I can't seem to figure out how to extracting a name from the @friends list when they send me a tell... What I want to do is, have this trigger...

{@friends} tells you, 'This is just a test'

And I want to do, tell the_friend_name_that_just_send_me_a_tell Test complete...

For example... I have @friends with the value; Bob, Mike, John...

Mike tells you, 'This is just a test'

Tell Mike Test complete...

I want to have the @friends variable, so that I will only respond to people that I want to...
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Sat Sep 27, 2003 5:02 am   
 
Been digging around helpfiles and boards.. it seem I have to use #IF function... But I can't get it to work.. What I have now is...

(%x) tells you, 'Something here'

With the values of...

#IF (%ismember( @friends)) {tell %1 Something here}
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Sat Sep 27, 2003 5:11 am   
 
Found out the problem

Missing %1,@friends ..

God.. sorry.. I like to talk to myself sometime =p ..
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Sep 27, 2003 5:48 pm   
 
Another method is to enclose the bracketed list in parentheses, so that the matching item is available in the %1-%99 parameters.

Pattern:
({@friends}) tells you, 'This is just a test'
Value
tell %1 test complete
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