question about persistent stores?
ghowriter
Member Posts: 35
How did BioWare make the Volkeron store persistent across modules and areas? I have attempted the same yet each area opens a new store wiping out all the items previously sold.
0
Comments
Make a vault area and place the store there.
Have any merchant NPC open that store by referring to its tag.
I think this much should allow it to stay persistent across areas.
To keep it persistent across modules and resets I think you need scripts that read and record everything in the store from a campaign database.
OnStoreClosed: this should record the resref of everything and their quantities in the store by using SetCampaignString and SetCampaignInt
OnStoreOpen: this should read the campaign string/int vars from the database and create them in the store.