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
sepe
Novice


Joined: 09 Feb 2002
Posts: 39
Location: USA

PostPosted: Fri Mar 31, 2006 11:41 pm   

Needing multiple #if's to be true
 
For certain cases, I need more than one #if statement to be true. I remember there use to be a way to do this, but I've been away from gaming for a while nad just now returning. Any help would be great.

For example

#if (%1 < @Basehealth) *This is triggering off my health prompt that comes up every new prompt

and

#if (@PotionDelay = 0) *can only drink potions so often*

and

#if (@vomiting = 0) *If I'm throwing up I can drink anything and this is wasted*


then if all three of these are true I want the alias SipHealPotion to fire.

Also, while here, for the first line, is it possible to do something like
#if(%! < @basehealth - 100) so I'm not taking the potion if I have only lost 1 hp which is a wast, the potion cures up to 500ish hp's

Again thanks for the help, and Zmud is looking great!
_________________
Dazed glazed and having fun
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat Apr 01, 2006 1:06 am   
 
#IF ((%1<@basehealth-100) AND (@PotiondDelay=0) AND (@vomiting=0))
_________________
Zmud Support Library
Zmud Knowledge Base
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