Elsidia1 Posted March 12, 2020 Share Posted March 12, 2020 Ok first i try to explain what need to do.I need catch moment when player close trade menu with NPC (Setller or Companion after unequiping some items) I think i need do something like it: RegisterForMenuOpenCloseEvent("ContainerMenu") Event OnMenuOpenCloseEvent(string asMenuName, bool abOpening) if (asMenuName== "CointainerMenu") if (!abOpening) Debug.Trace("menu is close!") Menu now is close i need catch NPC reference to do some modifications with him something like this: akactor.[some functions] endif endifendEvent Can you explain me what exactly variables or names i need to use and i'm on right way or not?And how i can know that this container is trade menu between player and NPC? Or that closing moment can't be catch? Link to comment Share on other sites More sharing options...
DieFeM Posted March 12, 2020 Share Posted March 12, 2020 RegisterForMenuOpenCloseEvent("BarterMenu") Event OnMenuOpenCloseEvent(string asMenuName, bool abOpening) If asMenuName == "BarterMenu" && !abOpening Actor Merchant = Game.GetPlayer().GetDialogueTarget() EndIf EndEvent Link to comment Share on other sites More sharing options...
Recommended Posts