BazaarRealmMod/Source/Scripts/BRMerchPrevPageScript.psc

17 lines
654 B
Plaintext
Raw Normal View History

2020-10-13 01:26:16 +00:00
scriptname BRMerchPrevPageScript extends ObjectReference
Keyword property BRLinkMerchShelf auto
Actor property PlayerRef auto
Quest Property BRQuest Auto
event OnActivate(ObjectReference akActionRef)
2020-10-13 01:26:16 +00:00
if akActionRef == PlayerRef
ObjectReference MerchantShelf = self.GetLinkedRef(BRLinkMerchShelf)
BRQuestScript BRScript = BRQuest as BRQuestScript
bool result = BRMerchandiseList.PrevPage(MerchantShelf)
Debug.Trace("BRMerchandiseList.PrevPage result: " + result)
if !result
Debug.MessageBox("Failed to load or clear shop merchandise.\n\n" + BRScript.BugReportCopy)
endif
2020-10-13 01:26:16 +00:00
endif
endEvent