Background for Skyrim SE
Member of the Actor script
voidfunctionShowBarterMenu()Native

Description

Wiki Description

Shows the barter menu for this actor.

Documentation Comment

Opens the Barter menu


Caveats

CK Wiki - Notes

  • This function will fail if the actor isn't actually loaded. The barter menu will appear, but it will be empty even if the actor's merchant chest has items in it.
  • The function will also fail and show an empty barter menu if the conditions aren't met for the actor's merchant faction to sell, e.g. she's not near the reference she needs to be.

Examples

BobREF.ShowBarterMenu() ; Shows BobREF's barter menu
ScriptName YourActivatorScript Extends ObjectReference  
 
Actor Property kSomeActor Auto ; Filled with desired merchant Actor
 
Event OnActivate(ObjectReference akActionRef)
    If akActionRef == Game.GetPlayer() ; Only if activated by the player
        kSomeActor.ShowBarterMenu() ; Show this actor's barter menu
    EndIf
EndEvent

Auto-Generated Example

myActor__toCallFunctionOn.ShowBarterMenu()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.