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


Joined: 16 Sep 2005
Posts: 5

PostPosted: Sat Sep 17, 2005 1:54 pm   

Help with %pos and NOT.
 
How would I change this so that if @chest is in @knighttemp AND @nervehit is NOT in @knighttemp things are true.

#if (%pos( @chest, @knighttemp) AND %pos( @nervehit, @knighttemp)) {


I've tried AND! and !%pos, but due to other unknown problems I have yet to understand, the whole script itself is not working, and I do not know if AND! or !%pos work.
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Sat Sep 17, 2005 4:16 pm   
 
I did it kinda counter to a normal #if where the 1st one is a true and the 2nd is the false.

#IF (%ismember( @chest, @knighttemp) AND %ismember( @nervehit, @knighttemp)) {#ECHO False} {#ECHO true}
_________________
http://www.Aardwolf.com
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