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


Joined: 07 Mar 2009
Posts: 4

PostPosted: Thu Sep 16, 2010 8:59 pm   

User Input for Variable
 
Ok, so I figured out the menu building, kudos to me, but I can't remember how to assign a variable from a speedmenu

Here's what I got:

#CLASS FBArrow {menu}
#menu Piercing {@Var fmissile arrow;@var ftype piercing}
#menu Splinter {@var fmissile arrow;@var ftype splinter}
#Class FletchBot {menu}
#menu Arrow {} {} {FBArrow}
#CLASS FBBolt {menu}
#menu Piercing {@var fmissile bolt;@var ftype piercing}
#menu Splinter {@var fmissile bolt;@var ftype splinter}
#class FletchBot {menu}
#menu Bolt {} {} {FBBolt}
#Class 0
#menu FletchBot {} {} {FletchBot}


Rt. Click > FletchBot > Arrow|Bolt > Piercing|Splinter

My problem is I want to pop up with a window that asks how many missiles you want to fletch, and store that as a variable fgoal

I know there IS a way, I just can't remember it..
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Sep 16, 2010 11:07 pm   
 
#until ((@fgoal != "") and %isnumber(@fgoal)) {fgoal = %prompt(,"How many arrows do you want to fletch?")}
_________________
EDIT: I didn't like my old signature
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