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
Moorthon
Newbie


Joined: 29 Sep 2005
Posts: 5

PostPosted: Thu Sep 29, 2005 11:41 am   

"Nested(?)" #YESNOs? *Self-Solved!*
 
This may seem sloppy or confusing but, I can't seem to get this to work correctly.

Code:
#YESNO "Normal or Auto Mode?" {
  Normal:#ECHO Activating: NormHolo Mode
  #T- AutoHolo
  #T+ NormHolo
  #YESNO "Pick Your Attack." {Fire:NormFire} {Normal:NormAtks} {Special:NormSpec} {Focus:Rage}
  }
 Auto:#ECHO Activating: AutoHolo Mode
 #T- NormHolo
 #T+ AutoHolo
 #YESNO "Pick Your Attack." {
  Fire:AutoFire
  #VAR AutoType {AutoFire} {}
  } {
  Normal:AutoNorm
  #VAR AutoType {AutoNorm} {}
  } {
  Special:AutoSpec
  #VAR AutoType {AutoSpec} {}
  } {
  Focus:AutoFocus
  #VAR AutoType {AutoFocus} {}
  }


While I am pretty confident that it's written out correctly, to work, it comes up with. "Normal" "No" when it's supposed to ask. "Normal" or "Auto"

If I pick. "No" It does absolutely nothing. But if I pick "Normal" the rest of the sequence finishes perfectly.

All help is appreciated.

-EDIT-

I know what I changed, not sure why I didn't catch it sooner. The "Auto" selection wasn't in {}'s...

Code:
#YESNO "Normal or Auto Mode?" {
  Normal:#ECHO Activating: NormHolo Mode
  #T- AutoHolo
  #T+ NormHolo
  #YESNO "Pick Your Attack." {Fire:NormFire} {Normal:NormAtks} {Special:NormSpec} {Focus:Rage}
  } {
  Auto:#ECHO Activating: AutoHolo Mode
  #T- NormHolo
  #T+ AutoHolo
  #YESNO "Pick Your Attack." {
    Fire:AutoFire
    #VAR AutoType {AutoFire} {}
    } {
    Normal:AutoNorm
    #VAR AutoType {AutoNorm} {}
    } {
    Special:AutoSpec
    #VAR AutoType {AutoSpec} {}
    } {
    Focus:AutoFocus
    #VAR AutoType {AutoFocus} {}
    }
  }


Anyways!
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