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


Joined: 16 Apr 2003
Posts: 17
Location: USA

PostPosted: Tue May 20, 2003 3:36 pm   

trigger
 
ok, It highlights and the vars work but I cant get the class to activate. I've done stuff manually and it still won't work I test by setting @pw with a2 and @kelp with a2 and it won't activate the class a2 for me.
Could someone tell me why please?
#cw lightblue
#var pb 1
#if ((@stun=0) & (@sleep=0) & (@anorexia=0) & (@pw!="")) {
#var pw %sort( @pw)
#if (%ismember( %item( @pw, 1), @blood)) {#T+ {%item( @blood, 1)}}{
#if (%ismember( %item( @pw, 1), @kelp)) {#T+ {%item( @kelp, 1)}}{
#if (%ismember( %item( @pw, 1), @gold)) {#T+ {%item( @gold, 1)}}{
#if (%ismember( %item( @pw, 1), @ginseng)) {#T+ {%item( @ginseng, 1)}}{
#if (%ismember( %item( @pw, 1), @lobelia)) {#T+ {%item( @lobelia, 1)}}{
#if (%ismember( %item( @pw, 1), @ash)) {#T+ {%item( @ash, 1)}}
}
}
}
}
}
}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue May 20, 2003 5:16 pm   
 
It'sbecauseyoudon'tbelieveinusingspacesbetweenthingssuchas}{.

Wrong:
#if (%ismember( %item( @pw, 1), @blood)) {#T+ {%item( @blood, 1)}}{

Right:
#if (%ismember( %item( @pw, 1), @blood)) {#T+ {%item( @blood, 1)}} {

LightBulb
Advanced Member
Reply with quote
zyran
Beginner


Joined: 16 Apr 2003
Posts: 17
Location: USA

PostPosted: Wed May 21, 2003 4:11 pm   
 
oh duh. Thanks
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