Difference between revisions of "ShowBarterMenu - Actor"
Jump to navigation
Jump to search
imported>VampireMonkey |
imported>JustinOther m (Formatting/Grammar/Standardized capitalization/Removed native function declaration from example/Objective page is objective (no need to ...sign the page)) |
||
Line 18: | Line 18: | ||
== Examples == | == Examples == | ||
*Standard use. | |||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Shows | BobREF.ShowBarterMenu() ; Shows BobREF's barter menu | ||
</source> | </source> | ||
*Prompt a barter menu via an activator. | |||
<source lang="papyrus"> | <source lang="papyrus"> | ||
ScriptName YourActivatorScript Extends ObjectReference | |||
Actor | 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 | |||
;if | |||
; | |||
EndEvent | EndEvent | ||
</source> | </source> | ||
== See Also == | == See Also == | ||
*[[Actor Script]] | *[[Actor Script]] |
Revision as of 12:00, 10 December 2012
Member of: Actor Script
Shows the barter menu for this actor.
Syntax
Function ShowBarterMenu() native
Parameters
None.
Return Value
None.
Examples
- Standard use.
BobREF.ShowBarterMenu() ; Shows BobREF's barter menu
- Prompt a barter menu via an activator.
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