Post new topic    
Reigning Smash Champion
Send private message
Simple question - set menu item subtype 
 PostThu Apr 08, 2010 4:19 pm
Send private message Reply with quote
Quote:
set menu item subtype(menu item handle, new subtype)
Given a menu item handle (for example, the one returned by selected menu item), Change the subtype of the menu item to new subtype. The meaning of the subtype varies depending on the type of the menu item. For menutype:special you can use constants like: menuspecial:items, menuspecial:spells, menuspecial:status, menuspecial:equip, menuspecial:order, menuspecial:team, menuspecial:orderteam, menuspecial:map, menuspecial:save, menuspecial:load, menuspecial:quit, and menuspecial:volume. For menutype:textbox you can use the textbox's ID number. For menutype:menu you can use the menu's ID number or a menu:name constant from your HSI file. For menutype:script you can use script references in the form @scriptname
I want to use a plotscript as the subtype, but I'm a bit confused as how to get it to work.

Right now, I'm using @myscriptname as the argument for new subtype, but that doesn't work to have the menu item run the script I want. Am I supposed to do something with menutype:script?
<TheGiz> oh hai doggy, oh no that's the straw that broke tjhe came baclsb
Liquid Metal King Slime
Send private message
 
 PostThu Apr 08, 2010 5:01 pm
Send private message Reply with quote
Are you doing something like this?:

Code:

# mi is the menu item handle
set menu item type(mi, menutype:script)
set menu item subtype(mi, @myscriptname)


Do you know what is the type of the menu item before you change it?
Reigning Smash Champion
Send private message
 
 PostThu Apr 08, 2010 5:05 pm
Send private message Reply with quote
Oh, I need to set the menu item type before subtype. That worked, thanks!
<TheGiz> oh hai doggy, oh no that's the straw that broke tjhe came baclsb
Display posts from previous: