|
TiJayO Newbie
Joined: 07 Mar 2009 Posts: 4
|
Posted: 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.. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|
|
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
|
|