Fix list shops cancel, run maintenance on load
This commit is contained in:
parent
ece73fcf0e
commit
5cf8deea30
BIN
Bazaar Realm.esp
BIN
Bazaar Realm.esp
Binary file not shown.
@ -1,9 +1,12 @@
|
||||
Scriptname BRQuestPlayerAliasScript extends ReferenceAlias
|
||||
|
||||
Quest property BRQuest auto
|
||||
Cell property BREmpty auto
|
||||
|
||||
event OnPlayerLoadGame()
|
||||
Debug.Trace("Player load game")
|
||||
BRQuestScript BRScript = BRQuest as BRQuestScript
|
||||
BRScript.Maintenance()
|
||||
Cell currentCell = self.GetReference().GetParentCell()
|
||||
if currentCell == BREmpty
|
||||
Debug.Trace("Player's loaded cell is BREmpty, resetting merch")
|
||||
|
@ -249,12 +249,12 @@ event OnListShopsSuccess(int[] ids, string[] names, string[] descriptions)
|
||||
int index = 0
|
||||
int selectedIndex = UILib.ShowList("Shop Merchandise", names, 0, 0)
|
||||
ListShopsComplete = true
|
||||
Debug.MessageBox(names[selectedIndex] + " (ID: " + ids[selectedIndex] + ")\n\n" + descriptions[selectedIndex])
|
||||
ActiveShopId = ids[selectedIndex]
|
||||
ActiveShopName = names[selectedIndex]
|
||||
ActiveShopDescription = descriptions[selectedIndex]
|
||||
ShopDetailMessage.SetName(names[selectedIndex])
|
||||
if ShopDetailMessage.Show() == 0
|
||||
Debug.MessageBox(names[selectedIndex] + " (ID: " + ids[selectedIndex] + ")\n\n" + descriptions[selectedIndex])
|
||||
ActiveShopId = ids[selectedIndex]
|
||||
ActiveShopName = names[selectedIndex]
|
||||
ActiveShopDescription = descriptions[selectedIndex]
|
||||
ShopDetailMessage.SetName(names[selectedIndex])
|
||||
bool result = BRInteriorRefList.ClearCell()
|
||||
if !result
|
||||
Debug.MessageBox("Failed to clear existing shop before loading in new shop.\n\n" + BugReportCopy)
|
||||
|
Loading…
Reference in New Issue
Block a user