I wanted to do some things that made crafting occaisionally fail under certain conditions,
There is a Condition Function called GetRandomPercent that returns 0-99; but that would only make something not show up in the crafting menu, not actually return a faulty item or a failure message.
if the crafting/forge menu were recognized as a container, there's an OnClose Event I could keep track of what comes out, but that would have to be a script on the player i think which is not feasible. thoughts?
things that don't work:
Spoiler
exiting from the forge menu does not send an OnClose Event call, like a container would.
things that might work:
Spoiler
this looks promising, although I'm unsure how to safely use it on the Player
https://www.creationkit.com/index.php?title=OnGetUp_-_Actor
++++++++++++++++++++++++++
https://www.creationkit.com/index.php?title=RegisterForAnimationEvent_-_Form
https://www.creationkit.com/index.php?title=OnAnimationEventUnregistered_-_Form
maybe the animation for accessing/stepping away from the forge will trigger the above events.
===
since none of the forge or tanning rack furniture is actually being controlled through a papyrus script, there may be an internal script that uses states and those might register with the OnEndState event, although unlikely
https://www.creationkit.com/index.php?title=OnEndState