GetActiveMenuObject
This article has been added to the Wiki by CSbot, an automated WikiBot. If you notice anything wrong with this page, please notify DragoonWraith, this bot's operator, by adding a comment to the end of User talk:DragoonWraith. If this article seems to be correct, then you can help the Wiki by removing this message, by editing this page and deleting the {{BotAddedPage}} template from the top of it. Thank you.
A function added by the Oblivion Script Extender.
Syntax:
(menuObject:ref) GetActiveMenuObject menuType:short
Returns the base object from which the active menu is derived
The return type varies based on the active menu type:
Active Menu | Return value | |
Book | Book base object | |
Alchemy | Potion being brewed | |
Message | The formID of the reference whose attached script generated the message, or the quest script which generated it. Returns 0 for game-generated messages such as confirmation boxes |
.
Barter/Container/Inventory Menu Filter Codes
The following values are shorts that are used and/or returned by this function, as indicated by its Syntax. These values correspond to the listed filter or "page" of the barter, container, or inventory menus (note that not all of these menus have each filter; the codes remain the same regardless):
1 Weapons 2 Armor/Clothing 3 Alchemy 4 Miscellaneous 31 All
Magic Menu Filter Codes
The following values are shorts that are used and/or returned by this function, as indicated by its Syntax. These values correspond to the listed filter or "page" of the magic menu:
1 Target 2 Touch 3 Self 7 All 8 Active Effects