|
batman2227 Beginner
Joined: 19 Nov 2002 Posts: 25 Location: USA
|
Posted: 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? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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) |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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.
|
|
|
|
|
|