Jump to content

Photo

Workbench Updates From Inside A Crafting Menu?

workbench crafting menu inventory update

  • Please log in to reply
1 reply to this topic

#1
LextalionisRex

LextalionisRex

    Journeyman

  • Supporter
  • Pip
  • 31 posts

So I have a system where the player creates a 'token' misc object in the cooking menu, and the token runs a script as soon as it enters the player's inventory to add a variety of objects and remove itself (crafting recipes that refund non-consumable components or convert one ingredient in the inventory into another). The scripts run fine but after testing, I realized that the crafting menu seems to 'lock in'  the player's inventory when the menu opens, and it can't see anything added to the player's stuff that the menu itself didn't put there. To get expected behavior out of the system, the player has to close the crafting menu then reopen it after every recipe crafted.

 

Is there a way to update a workbench's picture of the player's inventory via script? Perhaps in F4SE? Maybe editing the SWF file's actionscript?

Is there some obscure way to close and reopen a menu automatically? Or are all updates to the workbench menu hard-coded?



#2
skeriphin

skeriphin

    Journeyman

  • Premium Member
  • 42 posts

I have read mods that do 'similar' things; not necessarily what you are trying to make but menu manipulation.

Depending on the scripts - F4SE might be a great start or maybe one of the Keyword Resource Mods on nexus.

 

Additionally you might search "workbench" and see what mods are there and if any of them touch on the ideas you have and reverse engineer them or reach out to the authors.

 

Hope this helps.







Also tagged with one or more of these keywords: workbench, crafting menu, inventory update

IPB skins by Skinbox
Page loaded in: 0.975 seconds