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
layzee
Beginner


Joined: 10 Feb 2003
Posts: 11
Location: United Kingdom

PostPosted: Fri Feb 28, 2003 12:56 am   

Filtering
 
Hi, i have a trigger if someone tells me bless, i cast bless on them. What if i wanted to filter out people that shouldnt have a bless? i.e. a list of players that are gagged from the spell... could that be done?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Feb 28, 2003 1:11 am   
 
Yes, it can. Put all of the restricted player names into a stringlist and then use %ismember to decide if the person should get a bless or not. Example:
#IF (!%ismember(%1, @nobless)) {cast bless %1}

Kjata
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