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


Joined: 08 Sep 2003
Posts: 32
Location: USA

PostPosted: Thu Nov 27, 2003 12:11 am   

no color in the echos, and IF wont work..-sneefle-
 
salve=yes
#if (@anorexia=Yes and @slick=Yes and @asthma=Yes and @focus=1) {focus}
#if (@slick=Yes) {#if (@asthma=No) {sval}}
#if (@anorexia=Yes) {#echo ***** %color( bright, yellow)EPIDERMAL to TORSO *****}
#if (@asthma=Yes AND @herb=yes) {#echo ***** %color( bright, green)KELP *****}
#if (@anorexia=No) {#echo ***** %color( bright, white)CALORIC *****}

Well, even if Asthma or Anorexia is Yes or No, neither of the echos show up. This applies for each one too, and if I remove the #IF and the variables for it and just leave it as the echo it'll show up, but it wont show up in the colors. Help? -beg-
Reply with quote
GooseFire
Novice


Joined: 08 Sep 2003
Posts: 32
Location: USA

PostPosted: Thu Nov 27, 2003 3:49 am   
 
This one might make more sense?:::

Pattern - Hmmmm. Why must everything be so difficult to figure out?

Value -
stupidity=Yes
#if (@anorexia=Yes and @slick=Yes and @asthma=Yes and @focus=1) {focus}
#if (@slick=Yes) {#if (@asthma=No) {sval}}
#if (@anorexia=Yes) {#echo ***** %color( bright, yellow)EPIDERMAL to TORSO *****}
#if (@asthma=Yes AND @herb=yes) {#echo ***** %color( bright, green)KELP *****}
#if (@anorexia=No AND @stupidity=Yes) {#echo ***** %color( bright, gold)GOLDENSEAL *****}

Now, it turns the Stupidity variable to yes, like told, and anorexia is at No, which makes the last IF correct.. How come it doesnt ECHO?
Reply with quote
GooseFire
Novice


Joined: 08 Sep 2003
Posts: 32
Location: USA

PostPosted: Thu Nov 27, 2003 3:54 am   
 
OK! -flap- After messin' with it not long after that last post I managed to get it to #ECHO by:

#if (@anorexia=No AND @stupidity=Yes) {#cw gold} {#echo ***** GOLDENSEAL *****}

Doing that to the last #IF.

umm.. I'm still not getting colors down, but I'll try. :D
Reply with quote
GooseFire
Novice


Joined: 08 Sep 2003
Posts: 32
Location: USA

PostPosted: Thu Nov 27, 2003 4:11 am   
 
ok.. I give up, none of it seemed to be working anyways. Got it to echo, sure, but it still isnt adhereing to the variables.. I'm not sure at all whats wrong. I changed the two other IF's with echos to do what the last one had and they all echo'd. -flop-
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Nov 27, 2003 5:45 am   
 
salve=yes makes @salve equal to "yes" (a string), but not to yes (a boolean value). This is also case-sensitive, so it will equal "yes" but it won't equal "Yes". %color does NOT change colors. %ansi does.

salve = Yes
#IF ((@anorexia = "Yes") AND (@slick = "Yes") AND (@asthma = "Yes") AND (@focus = 1)) {focus}
#IF (@slick = "Yes") {#IF (@asthma = "No") {sval}}
#IF (@anorexia = "Yes") {#ECHO ***** %ansi( bright, yellow)EPIDERMAL to TORSO *****}
#IF ((@asthma = "Yes") AND (@herb = "Yes")) {#ECHO ***** %ansi( bright, green)KELP *****}
#IF (@anorexia = "No") {#ECHO ***** %ansi( bright, white)CALORIC *****}
Reply with quote
GooseFire
Novice


Joined: 08 Sep 2003
Posts: 32
Location: USA

PostPosted: Thu Nov 27, 2003 6:36 am   
 
oh my.. What a tiny error. The smallest things can make the biggest difference. Thanks! Most excellent. -salute-
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