Jump to content

Recommended Posts

Posted

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
endif
endEvent

 

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?

Posted

RegisterForMenuOpenCloseEvent("BarterMenu")


Event OnMenuOpenCloseEvent(string asMenuName, bool abOpening)
If asMenuName == "BarterMenu" && !abOpening
Actor Merchant = Game.GetPlayer().GetDialogueTarget()

EndIf
EndEvent
  • Recently Browsing   0 members

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