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


Joined: 30 Jan 2002
Posts: 7

PostPosted: Mon Feb 04, 2002 12:31 am   

List and if
 
Can I make list of string and check later
if (%W) is in that list. If yes then how?

Goggi
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Mon Feb 04, 2002 12:41 am   
 
Well, you can just check the list in the trigger itself:

#var people {Bob|Joe|Amy}

#trigger {({@people}) tells you, "hi"} {reply hi there %1}

Or you can do this:

#trigger {(%w) tells you, "hi"} {#if (%ismember(%1, @poeple)) {reply hi there %1} {reply go away %1}}

Iljhar
Reply with quote
IceSoft
Newbie


Joined: 30 Jan 2002
Posts: 7

PostPosted: Mon Feb 04, 2002 12:42 am   
 
Thanx.
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