Aller au contenu

Photo

place a Merchant using scripting?


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
cachx

cachx
  • Members
  • 1 692 messages
Right now, if you save your game, the information about the merchant's inventory and other stuff (like item stats) is stored in the saved game instead of reading the actual resources of your mod.

At the moment I have a savegame just before loading my merchants for the first time for testing purposes. But as you can imagine, whenever a new version is released, users that are upgrading will only see the changes if they start a new game, this is not good...

I'm trying to bypass this by writing a script that destroys and then recreates the objects every time the area with my content loads, this works with creatures, but I can't do it with merchants, according to the wiki:

These objects can not be created with CreateObject:
- Merchant (Store)


So, any way I can get around this problem, or I just need to wait until Bioware fixes this issue?

#2
Craig Graff

Craig Graff
  • Members
  • 608 messages
You can replace the contents of a store easily enough. If you like you should be able to store the updated contents in a placeable, create the placeable with the new stuff as well as an empty one, use MoveAllItems to move the store inventory to the empty placeable and then move the updated inventory to the store.