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


Joined: 19 Nov 2002
Posts: 25
Location: USA

PostPosted: Mon Jul 14, 2003 8:11 pm   

Speed Menu Question
 
Is there a way to load data from a variable string list as items in a speed menu. I have checked the forum, and found the great posting on Dynamic Speed Menus, but I would like to dynamically generate the menu from a variable, rather than directly from MUD output.
Example below:
#var elixlist {vial197231:The venom prefarar|vial198799:The venom aconite|vial198838:The venom epseth|vial198901:The venom epteth}

Just want to make each item in the variable elixlist a seperate speed menu item. Any suggestions?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Jul 14, 2003 10:58 pm   
 
The command is #MENU. It's in the helpfile (and easy to get to using the Command Wizard, located in the main window help menu). Off the top of my head, I'm going to guess it has a syntax like this:

#MENU name value class options

Name is required, refers to the text you see when you click on it
Value is not required, but pretty pointless if you don't
Class is optional, but allows you to directly create the menu in a submenu class if needed (ie, for buttons or submenus)
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Jul 14, 2003 11:08 pm   
 
The #MENU command is capable of using a string list to create a menu, however I do not believe it will automatically update when the variable is changed. If I am right about this you will have to assign an ID when creating the menu and then recreate it when you change the variable.
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