Zazza Posted November 4, 2012 Share Posted November 4, 2012 Greetings,as the topic says, I wonder if it's possible to add some other properties (for example, the "Value to Weight ratio") to the Weapon menu? Is scripting required or can this be done thru XLM menu editing? Thanks... Link to comment Share on other sites More sharing options...
CaptMitch Posted November 5, 2012 Share Posted November 5, 2012 Wish i could help.I could tell you how to script it but im not real familiar with the weapons menu Link to comment Share on other sites More sharing options...
Zazza Posted November 11, 2012 Author Share Posted November 11, 2012 Wish i could help.I could tell you how to script it but im not real familiar with the weapons menuWell, adding this information in the main HUD is no problem; in fact, a little script I wrote just suits the needs. The problem is adding (duplicate) an inventory box (for example) in this position: http://img820.imageshack.us/img820/7787/pipboyi.jpg and modify the inventory_menu.xml and items_stat_display_inventory.xml consequently to show the variable that stores the calculated value in the script. So, two questions come into my mind: 1) Is it possible to add another box element the inventory menu? and 2) Suppose I have my newly created box in the menu, will it update its value even while hovering the mouse on the inventory item (like shown in the above image)? Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted November 11, 2012 Share Posted November 11, 2012 Well, your script that outputs to your menu could be made to run in the pipboy menu mode Begin MenuMode 1002which would allow it to update while in the menu. Then you just output your variable, either every time the weapon changes, or just every frame. Of course, I'm not sure how you get the item under the cursor while in the menu. Link to comment Share on other sites More sharing options...
Zazza Posted November 11, 2012 Author Share Posted November 11, 2012 Well, your script that outputs to your menu could be made to run in the pipboy menu mode Begin MenuMode 1002which would allow it to update while in the menu. Then you just output your variable, either every time the weapon changes, or just every frame. Of course, I'm not sure how you get the item under the cursor while in the menu.Greetings,I was able to add a box in the inventory and to update the "Value to Weight" ratio (obviously) only when clicking to equip a weapon in the inventory. I wonder if there's some way through NVSE to detect the item under the pointer... Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted November 13, 2012 Share Posted November 13, 2012 Check in Weapon Mod Menu by Pelinor. He has some method of detecting that, as you can mod any weapon in your inventory, it just equips it when you go to mod it due to the way the NVSE weapon mod functions work. But, perhaps what he's doing to detect the item could be used without equipping if all you want is the value and weight. One issue you might run into are item stacks. According to Ian, the way the game stores inventory info is really....inefficient. And they never fully decoded item stack information. So they might give you trouble. Obviously, the game engine detects them now, as Misc items and ammo report the weight of the stack in the weight field when looking at them. What you want to do might be possible in that regard if you can find the xml value for the item weight and count (if count is in the xml) and then use the NVSE functions to get the UI values back from the xml, which you could then do your math on, which would give appropriate weight and value. Link to comment Share on other sites More sharing options...
Recommended Posts