DxVander Posted yesterday at 12:05 AM Share Posted yesterday at 12:05 AM Hello Context: Oblivion/Construction Set/OBSE .- as you know ...In a Container Menu, the default view is the interior of the container, There is the function: GETContainerMenuView: (returns 1 if the player is viewing his own inventory, or 0 if viewing the container or merchant's inventory), but there is no "SETContainerMenuView" ; to change that view from a script... I´ve used the function: ClickMenuButton "#2" 1035 ; to activate the Exit button in the repair menu, but the numbers change in every menu, I´ve found the code for the "Take all" button and even "Exit" button, but not the id of the button that change the view to the player's inventory, that one with the bag icon... I've tried several numbers in the line: >>>> ClickMenuButton "#______" 1008 ; ...but havent found the one that I want if somebody could give me that id/number ...and well...where to know about other buttons... I´ve found that maybe I could type text and something like Menus\Main\inventory_menu.xml but I haven't found much about xml stuff and I still don't get it . Link to comment Share on other sites More sharing options...
AndalayBay Posted yesterday at 12:18 AM Share Posted yesterday at 12:18 AM Here's the CS wiki page for Oblivion XML. I think DavidJCobb wrote an article about it too. Have a look at the Northern UI mod page. Link to comment Share on other sites More sharing options...
DxVander Posted yesterday at 03:08 AM Author Share Posted yesterday at 03:08 AM Ok thanks @Andalaybay, (visited many times the CS wiki articles but) After 2 days I understood what all that meant, resume (for other newbies like me): I wanted my script to open a container but in the player's inventory view, not the container interior (the default view). The function was just: ClickMenuButton "#42" 1008 1008 = container menu, #42= player's inventory button (the bag icon) another elements of this particular menu: #2 to #5 = main tabs (weapons tab, apparel tab, alchemy tab and misc tab) #32 = "Take all" button #33 = "Exit" button #34 = "Haggle" button if you want to know the #id for another element... 1.-use a BSA extractor (bae.exe or alike) to load the compressed file "Oblivion - Misc.bsa" (that one in the Data folder), and extract the file "container_menu.xml" (or the menu you are interested in) 2.-Open "container_menu.xml" with wordPad or another text editor 3.- search the lines that mention the icon image/button/element you are looking for, then look for the line below: <id> (#) This mod I'm working on is almost finished. You will be able to check it out soon at: https://next.nexusmods.com/profile/DxVander Link to comment Share on other sites More sharing options...
Recommended Posts