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


Joined: 04 Apr 2003
Posts: 94
Location: United Kingdom

PostPosted: Tue Feb 02, 2010 3:47 am   

#IF ! or #IF that is the question
 
Ok am trying something little advanced for me but if it works could help alot ok have an item and alias that produces this

You cast the spell

You have a health of 3000h and a mana of 3000m.
You have mumps
You have smallpox
You have plague
You have a vomit sickness
exits n,s,e,w
balance

Ok so if i have a list of ailments and the lines eg as above (You have mumps etc)

is it possible to trigger a class on when i cast the spell

look through ailments - now i get a problem here - ok if its there its easy a trigger - is it possible some how test to see if "You have mumps" is there between the cast spell and balance - Its easy if the line is there but im also looking to see if it is not there
Reply with quote
stark62
Wanderer


Joined: 04 Apr 2003
Posts: 94
Location: United Kingdom

PostPosted: Tue Feb 02, 2010 5:28 pm   
 
OK no takers on that problem how about this IF also

#IF {%if( (HP1<=800) AND (HD1=1))} {siphealth;play dead;HD1=0} {play dead}

can not get the AND working with HP1 or HD1
Reply with quote
stark62
Wanderer


Joined: 04 Apr 2003
Posts: 94
Location: United Kingdom

PostPosted: Tue Feb 02, 2010 5:50 pm   
 
Wow getting better at this solved it eventually with trial and error error error error

#IF ((@HP1 <= 800) AND (@HD1=1)) {siphealth:play dead;HD1=0} {dead}
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