DrPharmDawg Posted June 23, 2019 Share Posted June 23, 2019 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 More sharing options...
Reneer Posted June 23, 2019 Share Posted June 23, 2019 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 More sharing options...
DrPharmDawg Posted June 23, 2019 Author Share Posted June 23, 2019 Thanks for the reply.I went through SKSE functions with no luck. I will take a look at the Scaleform / Flash menus as you mention and see if I can figure it out.Thanks! Link to comment Share on other sites More sharing options...
DrPharmDawg Posted June 23, 2019 Author Share Posted June 23, 2019 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 More sharing options...
Oblivionaddicted Posted June 23, 2019 Share Posted June 23, 2019 You should better post in Skyrim's forums, this forum isn't about the mods creation. Link to comment Share on other sites More sharing options...
Recommended Posts