Tyler Hallada
13d4ad31c8
Update scripts to support new shelf and merch loading process. See Plugin code for details.
17 lines
654 B
Plaintext
17 lines
654 B
Plaintext
scriptname BRMerchNextPageScript extends ObjectReference
|
|
|
|
Keyword property BRLinkMerchShelf auto
|
|
Actor property PlayerRef auto
|
|
Quest Property BRQuest Auto
|
|
|
|
event OnActivate(ObjectReference akActionRef)
|
|
if akActionRef == PlayerRef
|
|
ObjectReference MerchantShelf = self.GetLinkedRef(BRLinkMerchShelf)
|
|
BRQuestScript BRScript = BRQuest as BRQuestScript
|
|
bool result = BRMerchandiseList.NextPage(MerchantShelf)
|
|
Debug.Trace("BRMerchandiseList.NextPage result: " + result)
|
|
if !result
|
|
Debug.MessageBox("Failed to load or clear shop merchandise.\n\n" + BRScript.BugReportCopy)
|
|
endif
|
|
endif
|
|
endEvent |