GetActiveMenuRef

From the Oblivion ConstructionSet Wiki
Revision as of 01:30, 9 August 2010 by imported>CSbot (Automated import of articles)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(menuRef:ref) GetActiveMenuRef menuType:short

Returns the reference from which the active menu is derived

The return type varies depending on the active menu:

Active Menu Return value
Container Container, corpse, or merchant
Dialog Speaking NPC
Book Book reference in the gameworld
SpellPurchase Spell merchant

.


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