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


Joined: 17 May 2003
Posts: 20
Location: USA

PostPosted: Sat Aug 02, 2003 9:46 pm   

Comparing Variables
 
I have two variables that I have a script trying to compare, but anytime it tries to compare them, it seems to always come out false.

The Variables are @chp, and @mhp. Other variables and constants appear to compare correctly, but not these two. I just don't get it
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Aug 03, 2003 3:02 am   
 
What's in the variables?
How are you comparing them?
How do you expect anyone to figure this out without providing specifics?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Aug 04, 2003 1:12 pm   
 
#VAR chp 6
#VAR mhp 10
#IF (@chp < @mhp) {#SH Chp is lower than Mhp} {#SH Chp is greater or equal to Mhp}

Your checking syntax similar to the above? What is your #IF syntax that doesn't work?
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