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
Solaras
Wanderer


Joined: 11 Mar 2002
Posts: 93

PostPosted: Sun May 29, 2005 10:31 pm   

%var and %ismember
 
I am trying to alter an alias I use to not only check if I am afflicted with things and count how many, but to only check if I am afflicted with this in a certain list.

Code:

#VARIABLE affs ""
#LOOPDB @Afflictions {#IF (%val and %ismember(%i.1 @CureTheseOnly)) {#ADD Affs 1}}
#ALARM +0.5 {
  #IF (@affs>=3) {
    cureunknown
    #ECHO %cr%ansi( 384)Curing random affliction
    }
  }


Unfortunately this doesn't seem to work. Anyone out there know of a way I could do this?
Reply with quote
Solaras
Wanderer


Joined: 11 Mar 2002
Posts: 93

PostPosted: Sun May 29, 2005 10:32 pm   
 
And of course the moment I hit the post button I realise the solution to the problem.

%i.1 should = %key
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