Background for Skyrim SE
Member of the DbSkseEvents script
eventOnUiItemMenuEvent(stringmenuName, FormakSelectedForm, inteventType, intcount, boolplayerInventory, boolstolen)

Description

Documentation Comment

menuName is the item menu that's currently open.
akSelectedForm can be none if nothing is currently selected / highlighted.
eventTypes are: -1 = all types, 0 = selection changed, 1 = item selected, 2 = r button (drop, take all ect), 3 = f button (favorite ect).
count is the count of the item selected or highlighted, this is before the ui event is processed.
So for example if the inventory menu is open and eventType is 2 (r button for dropped) to get the number of items dropped use: int dropped items = (count - Game.GetPlayer().GetItemCount(akSelectedForm))
playerInventory is if the item was selected from the player's inventory and not the open container in the case of container menu, barter menu, gift menu ect.


Parameters

  1. stringmenuName

  2. FormakSelectedForm

  3. inteventType

  4. intcount

  5. boolplayerInventory

  6. boolstolen


Examples

Auto-Generated Example

Scriptname MyCoolScript extends DbSkseEvents

event OnUiItemMenuEvent(string menuName, Form akSelectedForm, int eventType, int count, bool playerInventory, bool stolen)
    Debug.trace("Event received - OnUiItemMenuEvent: menuName = " + menuName + " akSelectedForm = " + akSelectedForm + " eventType = " + eventType + " count = " + count + " playerInventory = " + playerInventory + " stolen = " + stolen)
endEvent
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.