0 of 0

File information

Last updated

Original upload

Created by

RogiVagel

Uploaded by

RogiVagel18

Virus scan

Safe to use

Tags for this mod

Documentation

Readme

View as plain text

RV Slower Restocking Alchemy Ingredients
by RogiVagel

This mod reduces the restocking rate of all merchants selling alchemy ingredients.
Instead of restocking instantly, alchemy ingredients will restock every three to seven days.
Also affects publicans with restocking food. Food at pubs will restock daily.
There are no changes to what is stocked or how much. There are no visible changes to any cells.

Why I made this mod
To reduce the impact of restocking ingredients on training of the alchemy skill by sitting at a merchant and just making potions from restoking ingredients.
While this still make be possible with this mod, having to wait for several days for items to restock is going to put off all but the most determined.

How it Works
A hidden container with attached script has been added to each cell with a restocking merchant.
The script handles removing the restocking ingredients from the merchant and then restocking them at a slower rate.
For publicans who have a restocking levelled list, this has to be removed. Removing a levelled list with a script is not supported even with the current version of Morrowind Code Patch (v 2.4)
The food for publicans is contained in the hidden container rather than the inventory of the NPC so that any food sold to the NPC does not affect the restocking.
Each restocking merchant has a unique script (except the publicans).
Restocking rate is set according to the size of the settlement. Default is 5 days, but in larger settlements this may be four days, and in cites it is 3 days. In Remote places it is 7 days.

Once merchant (Cienne Sintieve) holds her stock in a container. This required some different treatment - i.e. replacing the container (to prevent game same recalling the restocking items),
remove the restocking items through editing the container and stopping the script from working if the container is accessed by the player (to prevent a refilling source or items to steal).

Changing Restocking Rate
Restocking rate can be controlled by a group of global variables. Which variable controls a vendor is set in the script according to location.

RV_StkD_Pub Default 1 (daily)
RV_StkD_City Default 3
RV_StkD_Town Default 4
RV_StkD_Std Default 5
RV_StkD_Remote Default 7

If you prefer a differnt restocking rate, this can be changed through the console.
NB - If you do change the values, make sure RV_StkD_Remote has the highest (or equal highest) value or the stock may not be added at the first visit

Installation
Requires Tribunal and Bloodmoon.
Copy files to Data Files in your Morrowind directory.
Select plug in to use

Acknowledgements
This was inspried by Stuporstar's Scripted Ingredients restocking mod and I have learned some of the scripting from studying and adapting his scrips.

Conflicts
This mod changes 21 NPCs and one container, so will conflict with anything which changes these. It will also interfere with other mods which attempt to alter the stock of ingredient merchants.

Additional resources and how to expand the concept
I have included text files containing the scripts to make adding this to new NPCs easy for any modders who wish to expand this into
expansion mods. Use the Replace function of the Text editor to replace 'actor' with the name of the NPC and edit the stock approriately
before copying it into the TECS script editor. Attach the script to a new unique container, hide it somewhere inaccessible in the NPCs cell
and set ownership of the container to the NPC.
The script has been made so it is possible to insert other restocking ingredient or items. I include an example script of how this is done as well as the base scripts which can be adapted to any other NPCs you might have in your own game.
To affect vendors selling and ingredients added by expansion mods, they need to be inserted into the script RV Vendor Remove Ingredient.

Changes This Version:
Bug corrected which failed to clear the inventory in cells where more than one ingredient selling NPC was present.