Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
dazed-n-confused999
Wanderer


Joined: 03 Aug 2004
Posts: 79

PostPosted: Sat Jul 18, 2009 12:19 am   

help with syntax error please
 
#IF (%ismember( DESPAIR, @POTIONCURES) and (@enemy not= 5)) {CON} {MEG}

trying to get my cure system to change curing methods depending on if Im fighting a certain character class

the single cure method works fine: #IF (%ismember( DESPAIR, @POTIONCURES)) {CON}

ERROR: Syntax error in Alias: potioncure : illegal character in expression: t
thats the error message it gives.

I'm concerned that even if I get the expression to work, it may not work correctly.
For example, If the ismember check comes up false but the enemy check is true, then its going to try to heal via the second method which is undesireable.
If anyone has a suggestion on how to solve this give me a hint will ya.
Just making the original statement work would be a help however, I can create alternate healing aliases or some other pain in the ass way to deal with it.
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Sat Jul 18, 2009 12:40 am   
 
Code:

#IF (%ismember( DESPAIR, @POTIONCURES) and (@enemy != 5)) {CON} {MEG}
_________________
The Proud new owner of CMud.

--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
--------------------------------
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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