AddItem command isn't correctly implemented.

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Post Reply
User avatar
Amenophis
Posts: 320
Joined: 30 Oct 2011, 04:34
Location: Fortaleza - Ceará - Brasil

AddItem command isn't correctly implemented.

Post by Amenophis »

UPDATE -> I've opened a Feature Request
https://gitlab.com/OpenMW/openmw/-/issues/5934

*********************************************

Hello, I'm working in a mod that adds armor boots on containers around Morrowind through a StartScript.
So, I've read on UESP that if you use additem with negative values they will restock only with actors inventories. Of course Morrowind don't work because you have at least have entered a cell with such containers and actors to the StartScript work.
https://en.uesp.net/wiki/Morrowind_Mod:AddItem#Count
UESP
UESP
The AddItem part of script didn't work on OpenMW and after testing the commands on the console this was the result. Besides, even with positive values the StartScript can't add itens on not yet loaded containers.
AddItem Negative Values
AddItem Negative Values
I've read that scripts on OpenMW once affected Dagoth Ur way before him haven't been loaded. The solution was blacklist him to deny his death when killing enough Ash Vampires. But the enhancement still and can affect any other NPCs. Before opening an issue on GitLab I want to know if I can ask for such similar enhancement to containers like the actors have. My mod successfully equips some beast NPCs with boots even ones that my NPCs haven't meet.

As described on UESP using negative values with AddItem on merchant will add restockable items but not on containers. So, I will add an Issue about AddItem with negative values, but can I ask for an enhancement in that behaviour with the AddItem command affecting not yet loaded containers and adding restocking like OpenMW does with Actors?
Post Reply