17 lines
518 B
Plaintext
17 lines
518 B
Plaintext
|
scriptname BRVendorScript extends Actor
|
||
|
|
||
|
ObjectReference property BRMerchChest auto
|
||
|
|
||
|
event OnActivate(ObjectReference akActionRef)
|
||
|
debug.Trace("BRVendorScript OnActivate")
|
||
|
BRMerchChest.RegisterForMenu("BarterMenu")
|
||
|
RegisterForMenu("Dialogue Menu")
|
||
|
endEvent
|
||
|
|
||
|
event OnMenuClose(string menuName)
|
||
|
if menuName == "Dialogue Menu"
|
||
|
debug.Trace("BRVendorScript OnMenuClose Dialogue Menu")
|
||
|
BRMerchChest.UnregisterForMenu("BarterMenu")
|
||
|
UnregisterForMenu("Dialogue Menu")
|
||
|
endif
|
||
|
endEvent
|