Jump to content

[LE] Identify Item Highlighted in a Menu?


Recommended Posts

Hi All,

 

I am looking at doing a mod, but in order for it to work, I need to figure out how to identify the item currently highlighted in a menu.

More specifically:

- Barter Menu

- Identify the item currently highlighted (not select to buy/sell, just highlighted so that activating it will buy/sell)

- Change each time a different item is highlighted

 

If you are in the barter menu, and you have an Iron Dagger highlighted, I need a script to run knowing you have an Iron Dagger highlighted before you buy/sell it.

 

I've spent about 4 hours looking and trying to figure out a way to do it in CK, but no luck. Hoping someone here knows a way. TIA

Link to comment
Share on other sites

Something like what you describe can't be done via normal Papyrus scripting. I don't think SKSE or FO4SE can help either. The only way to accomplish something like what you describe would be to work with the Scaleform / Flash menus and modify the code used there.
Link to comment
Share on other sites

Managed to get the bartermenu.swf in JPEXS editor. I think I have even found the object/variable I need (aUpdateObj).

My problem now is I have no idea what to do with it. I can do papyrus, but not familiar with ActionScript at all.

 

New Question: How (or is it possible) to pass this object over to a papyrus script, or to pass a Global Variable over to the SWF code? I imagine the latter would be easiest to prevent issues with getting a papyrus script to fire every time a new item is highlighted.

 

I want to set a Global Variable based on the keywords attached to the highlighted object. For example if the highlighted item is an Iron Dagger, a Global Variable will be set to 1 because the item (Iron Dagger) has the keyword WeaponMaterialIron.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...