Open main menu

UESPWiki β

MenuMode

                MenuMode

        Type:   Misc

     Returns:   short

     Example:   if ( MenuMode == 1 )

     Scripts:   anoScript
                AzuraEnd

Returns 1 if the player is currently in menu mode (i.e., has any inventory/magic menus open thus pausing the game). It is a good idea to separate your script logic into processing of commands in and out of menumode. Certain actions like using items are done when in menu mode.